File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 32
32
"type" : " boolean" ,
33
33
"default" : true ,
34
34
"description" : " Enable elixir extension"
35
+ },
36
+ "elixir.pathToElixirLS" : {
37
+ "type" : " string" ,
38
+ "default" : " " ,
39
+ "description" : " Custom path for elixirLS, use this options if you don't want use bundled elixirLS"
35
40
}
36
41
}
37
42
}
Original file line number Diff line number Diff line change @@ -9,7 +9,16 @@ exports.activate = (context: ExtensionContext) => {
9
9
return ;
10
10
}
11
11
12
- const command = context . asAbsolutePath ( './els-release/language_server.sh' ) ;
12
+ const getElsPath = ( ) => {
13
+ const { pathToElixirLS } = config ;
14
+ if ( pathToElixirLS && pathToElixirLS . length > 0 ) {
15
+ return pathToElixirLS ;
16
+ }
17
+
18
+ return context . asAbsolutePath ( './els-release/language_server.sh' ) ;
19
+ } ;
20
+
21
+ const command = getElsPath ( ) ;
13
22
const serverOptions = {
14
23
command,
15
24
} ;
You can’t perform that action at this time.
0 commit comments