File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 99let client : LanguageClient ;
1010
1111export 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 } ,
You can’t perform that action at this time.
0 commit comments