Skip to content

Commit 50b6204

Browse files
committed
fix(vscode): Remove languages key
1 parent 198059e commit 50b6204

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

vscode/package.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,12 @@
1919
"engines": {
2020
"vscode": "^1.105.0"
2121
},
22-
"activationEvents": [],
22+
"activationEvents": [
23+
"onLanguage:bash",
24+
"onLanguage:shellscript"
25+
],
2326
"main": "./out/extension.js",
2427
"contributes": {
25-
"languages": [
26-
{
27-
"id": "bash",
28-
"aliases": [
29-
"Bash",
30-
"bash",
31-
"sh"
32-
],
33-
"extensions": [
34-
".sh",
35-
".bash"
36-
],
37-
"configuration": "./language-configuration.json"
38-
}
39-
],
4028
"configuration": {
4129
"type": "object",
4230
"title": "bashd",

vscode/src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
let client: LanguageClient;
1010

1111
export function activate(context: vscode.ExtensionContext) {
12+
console.log("bashd extention activated");
1213
const config = vscode.workspace.getConfiguration("bashd");
1314
const serverPath = config.get("path", "bashd");
1415

@@ -17,7 +18,10 @@ export function activate(context: vscode.ExtensionContext) {
1718
};
1819

1920
const clientOptions: LanguageClientOptions = {
20-
documentSelector: [{ scheme: "file", language: "bash" }],
21+
documentSelector: [
22+
{ scheme: "file", language: "bash" },
23+
{ scheme: "file", language: "shellscript" },
24+
],
2125
synchronize: {
2226
configurationSection: "bashd",
2327
},

0 commit comments

Comments
 (0)