feat: Language support for Vala, SQF, GoDot, Zig

This commit is contained in:
iCrawl 2020-07-02 23:22:44 +02:00
parent 895dfe0164
commit a90542dcc9
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
5 changed files with 290 additions and 725 deletions

937
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -194,26 +194,29 @@
"register-scheme": "devsnek/node-register-scheme"
},
"devDependencies": {
"@types/node": "^14.0.5",
"@types/vscode": "^1.45.1",
"@typescript-eslint/eslint-plugin": "^3.0.0",
"@typescript-eslint/parser": "^3.0.0",
"@types/node": "^14.0.14",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.5.0",
"clean-webpack-plugin": "^3.0.0",
"eslint": "^7.1.0",
"eslint": "^7.3.1",
"eslint-config-marine": "^7.1.2",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.0.5",
"terser-webpack-plugin": "^3.0.1",
"ts-loader": "^7.0.4",
"typescript": "^3.9.3",
"terser-webpack-plugin": "^3.0.6",
"ts-loader": "^7.0.5",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
"webpack-cli": "^3.3.12"
},
"engines": {
"vscode": "^1.45.0"
"vscode": "^1.46.0"
},
"eslintConfig": {
"extends": "marine/prettier/node"
"extends": "marine/prettier/node",
"rules": {
"@typescript-eslint/naming-convention": 0
}
}
}

View file

@ -2,7 +2,7 @@ export const LIVE_SHARE_BASE_URL = 'insiders.liveshare.vsengsaas.visualstudio.co
export const VSLS_EXTENSION_ID = 'ms-vsliveshare.vsliveshare';
export const LIVE_SHARE_COMMANDS = {
START: 'liveshare.start',
END: 'liveshare.end',
JOIN: 'liveshare.join',
Start: 'liveshare.start',
End: 'liveshare.end',
Join: 'liveshare.join',
};

View file

@ -1,8 +1,12 @@
{
"knownLanguages": [
"as",
"angular",
"android",
"asp",
"assembly",
"arduino",
"gruntfile",
"ahk",
"applescript",
"appveyor",
@ -15,16 +19,28 @@
"circleci",
"cargo",
"cpp",
"codeclimate",
"npm",
"nodemon",
"csharp",
"cshtml",
"clojure",
"cmake",
"coffee",
"livescript",
"crystal",
"css",
"less",
"stylus",
"scss",
"cuda",
"flowconfig",
"prisma",
"prettier",
"heroku",
"editorconfig",
"ponylang",
"jsmap",
"d",
"dart",
"denizen",
@ -41,6 +57,7 @@
"fsharp",
"git",
"go",
"godot",
"gradle",
"graphql",
"groovy",
@ -49,6 +66,8 @@
"handlebars",
"haskell",
"html",
"hjson",
"http",
"haxe",
"ini",
"pug",
@ -88,6 +107,7 @@
"scala",
"shell",
"sql",
"sqf",
"svg",
"svelte",
"swift",
@ -112,7 +132,10 @@
"yarn",
"bat",
"wasm",
"webpack"
"webpack",
"v",
"vala",
"zig"
],
"knownExtentions": {
".swf": {
@ -553,6 +576,9 @@
".go": {
"image": "go"
},
".gd": {
"image": "godot"
},
".gradle": {
"image": "gradle"
},
@ -583,6 +609,9 @@
".lhs": {
"image": "haskell"
},
".hjson": {
"image": "hjson"
},
"/\\.x?html?$/i": {
"image": "html"
},
@ -1051,6 +1080,9 @@
".db2": {
"image": "sql"
},
".sqf": {
"image": "sqf"
},
".svg": {
"image": "svg"
},
@ -1200,6 +1232,15 @@
},
".vh": {
"image": "v"
},
".vala": {
"image": "vala"
},
".vapi": {
"image": "vala"
},
".zig": {
"image": "zig"
}
}
}

View file

@ -109,7 +109,7 @@ export async function activate(context: ExtensionContext) {
Logger.log(`Encountered following error after trying to login:\n${error as string}`);
await rpc.dispose();
if (!config.get('silent')) {
if (error.message.includes('ENOENT')) void window.showErrorMessage('No Discord Client detected!');
if (error?.message?.includes('ENOENT')) void window.showErrorMessage('No Discord Client detected!');
else void window.showErrorMessage(`Couldn't connect to Discord via RPC: ${error as string}`);
}
rpc.statusBarIcon.text = '$(pulse) Reconnect to Discord';