|
3 | 3 |
|
4 | 4 | import { inject, injectable, unmanaged } from 'inversify'; |
5 | 5 | import * as path from 'path'; |
6 | | -import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient'; |
| 6 | +import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient/node'; |
7 | 7 |
|
8 | 8 | import { EXTENSION_ROOT_DIR, PYTHON_LANGUAGE } from '../../common/constants'; |
9 | 9 | import { IConfigurationService, Resource } from '../../common/types'; |
@@ -40,7 +40,7 @@ export class DotNetDownloadedLanguageClientFactory implements ILanguageClientFac |
40 | 40 | run: { command: serverModule, args: [], options }, |
41 | 41 | debug: { command: serverModule, args: ['--debug'], options } |
42 | 42 | }; |
43 | | - const vscodeLanguageClient = require('vscode-languageclient') as typeof import('vscode-languageclient'); |
| 43 | + const vscodeLanguageClient = require('vscode-languageclient/node') as typeof import('vscode-languageclient/node'); |
44 | 44 | return new vscodeLanguageClient.LanguageClient( |
45 | 45 | PYTHON_LANGUAGE, |
46 | 46 | languageClientName, |
@@ -69,7 +69,7 @@ export class DotNetSimpleLanguageClientFactory implements ILanguageClientFactory |
69 | 69 | run: { command: dotNetCommand, args: [serverModule], options }, |
70 | 70 | debug: { command: dotNetCommand, args: [serverModule, '--debug'], options } |
71 | 71 | }; |
72 | | - const vscodeLanguageClient = require('vscode-languageclient') as typeof import('vscode-languageclient'); |
| 72 | + const vscodeLanguageClient = require('vscode-languageclient/node') as typeof import('vscode-languageclient/node'); |
73 | 73 | return new vscodeLanguageClient.LanguageClient( |
74 | 74 | PYTHON_LANGUAGE, |
75 | 75 | languageClientName, |
|
0 commit comments