-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add telemetry reporting on VS analysis engine usage #1382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1382 +/- ##
=========================================
Coverage ? 71.06%
=========================================
Files ? 269
Lines ? 12430
Branches ? 2199
=========================================
Hits ? 8833
Misses ? 3464
Partials ? 133
Continue to review full report at Codecov.
|
@@ -80,6 +90,7 @@ export class AnalysisExtensionActivator implements IExtensionActivator { | |||
} catch (ex) { | |||
if (await this.isDotNetInstalled()) { | |||
this.appShell.showErrorMessage(`.NET Runtime appears to be installed but the language server did not start. Error ${ex}`); | |||
reporter.sendTelemetryEvent(PYTHON_ANALYSIS_ENGINE_ERROR, { error: 'Failed to start (MSIL)' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -108,6 +121,7 @@ export class AnalysisExtensionActivator implements IExtensionActivator { | |||
let disposable: Disposable | undefined; | |||
const deferred = createDeferred<void>(); | |||
try { | |||
const sw = new StopWatch(); | |||
lc.clientOptions.errorHandler = new LanguageServerStartupErrorHandler(deferred); | |||
|
|||
disposable = lc.start(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disposable = lc.start();
lc.onReady()
.then(() => deferred.resolve())
.catch(ex => deferred.reject());
await deferred.promise;
You might want to change to .catch(deferred.reject);
This way the error is rethrown.
Fixes #1016
This pull request: