File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,15 @@ export function activate(context: ExtensionContext) {
309
309
// Create the language client and start the client.
310
310
let languageClient =
311
311
new LanguageClient ( 'cquery' , 'cquery' , serverOptions , clientOptions ) ;
312
- let disposable = languageClient . start ( ) ;
313
- context . subscriptions . push ( disposable ) ;
312
+ let command = serverOptions . command
313
+ languageClient . onReady ( ) . catch ( e => {
314
+ // TODO: remove cquery.launch.workingDirectory after July 2018
315
+ window . showErrorMessage (
316
+ 'cquery.launch.command has changed; either add cquery to your PATH ' +
317
+ 'or make cquery.launch.command an absolute path. Current value: "' +
318
+ command + '" cquery.launch.workingDirectory has been removed.' ) ;
319
+ } ) ;
320
+ context . subscriptions . push ( languageClient . start ( ) ) ;
314
321
315
322
return languageClient ;
316
323
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments