Skip to content

Commit 4aba2dc

Browse files
committed
Add notification that cquery.launch.workingDirectory has been removed
1 parent 25b4e27 commit 4aba2dc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/extension.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,15 @@ export function activate(context: ExtensionContext) {
309309
// Create the language client and start the client.
310310
let languageClient =
311311
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());
314321

315322
return languageClient;
316323
})();

0 commit comments

Comments
 (0)