Skip to content

Commit

Permalink
Remove LSP telementry event setting microsoft#15727
Browse files Browse the repository at this point in the history
  • Loading branch information
djplt committed Mar 21, 2021
1 parent c91b414 commit 827a66d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/client/activation/languageClientMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ export class LanguageClientMiddleware implements Middleware {
this.willSave = this.willSave.bind(this);
this.willSaveWaitUntil = this.willSaveWaitUntil.bind(this);

if (serverType === LanguageServerType.Microsoft) {
this.eventName = EventName.PYTHON_LANGUAGE_SERVER_REQUEST;
} else if (serverType === LanguageServerType.Node) {
this.eventName = EventName.LANGUAGE_SERVER_REQUEST;
} else if (serverType === LanguageServerType.JediLSP) {
this.eventName = EventName.JEDI_LANGUAGE_SERVER_REQUEST;
} else {
if (
serverType !== LanguageServerType.Microsoft &&
serverType !== LanguageServerType.Node &&
serverType !== LanguageServerType.JediLSP
) {
return;
}

Expand Down

0 comments on commit 827a66d

Please sign in to comment.