2
2
// Licensed under the MIT License.
3
3
4
4
import '../../common/extensions' ;
5
- import {
6
- DidChangeConfigurationNotification ,
7
- Disposable ,
8
- LanguageClient ,
9
- LanguageClientOptions ,
10
- } from 'vscode-languageclient/node' ;
5
+ import { Disposable , LanguageClient , LanguageClientOptions } from 'vscode-languageclient/node' ;
11
6
12
7
import { ChildProcess } from 'child_process' ;
13
- import { IInterpreterPathService , Resource } from '../../common/types' ;
8
+ import { Resource } from '../../common/types' ;
14
9
import { PythonEnvironment } from '../../pythonEnvironments/info' ;
15
10
import { captureTelemetry } from '../../telemetry' ;
16
11
import { EventName } from '../../telemetry/constants' ;
@@ -27,10 +22,7 @@ export class JediLanguageServerProxy implements ILanguageServerProxy {
27
22
28
23
private lsVersion : string | undefined ;
29
24
30
- constructor (
31
- private readonly factory : ILanguageClientFactory ,
32
- private readonly interpreterPathService : IInterpreterPathService ,
33
- ) { }
25
+ constructor ( private readonly factory : ILanguageClientFactory ) { }
34
26
35
27
private static versionTelemetryProps ( instance : JediLanguageServerProxy ) {
36
28
return {
@@ -112,17 +104,5 @@ export class JediLanguageServerProxy implements ILanguageServerProxy {
112
104
private registerHandlers ( client : LanguageClient ) {
113
105
const progressReporting = new ProgressReporting ( client ) ;
114
106
this . disposables . push ( progressReporting ) ;
115
-
116
- this . disposables . push (
117
- this . interpreterPathService . onDidChange ( ( ) => {
118
- // Manually send didChangeConfiguration in order to get the server to re-query
119
- // the workspace configurations (to then pick up pythonPath set in the middleware).
120
- // This is needed as interpreter changes via the interpreter path service happen
121
- // outside of VS Code's settings (which would mean VS Code sends the config updates itself).
122
- client . sendNotification ( DidChangeConfigurationNotification . type , {
123
- settings : null ,
124
- } ) ;
125
- } ) ,
126
- ) ;
127
107
}
128
108
}
0 commit comments