File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3434 "astGrep.serverPath" : {
3535 "scope" : " window" ,
3636 "type" : " string" ,
37+ "default" : " sg" ,
3738 "description" : " Specify the language server binary path."
3839 },
3940 "astGrep.configPath" : {
Original file line number Diff line number Diff line change @@ -14,18 +14,16 @@ const languageClientId = 'ast-grep-client'
1414const languageClientName = 'ast-grep language client'
1515
1616function getExecutable ( isDebug : boolean ) : Executable {
17- const defaultExecutable = 'sg'
18- const command =
19- workspace . getConfiguration ( 'astGrep' ) . get < string > ( 'serverPath' ) ||
20- defaultExecutable
17+ const command = workspace . getConfiguration ( 'astGrep' ) . get ( 'serverPath' , 'sg' )
2118 return {
2219 command,
2320 args : [ 'lsp' ] ,
2421 options : {
2522 env : {
2623 ...process . env ,
2724 ...( isDebug ? { RUST_LOG : 'debug' } : { } )
28- }
25+ } ,
26+ shell : true
2927 }
3028 }
3129}
You can’t perform that action at this time.
0 commit comments