forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanalysisOptions.ts
More file actions
27 lines (22 loc) · 1.1 KB
/
analysisOptions.ts
File metadata and controls
27 lines (22 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { LanguageClientOptions } from 'vscode-languageclient';
import { IWorkspaceService } from '../../common/application/types';
import { LanguageServerAnalysisOptionsBase } from '../common/analysisOptions';
import { ILanguageServerOutputChannel } from '../types';
export class NodeLanguageServerAnalysisOptions extends LanguageServerAnalysisOptionsBase {
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
constructor(lsOutputChannel: ILanguageServerOutputChannel, workspace: IWorkspaceService) {
super(lsOutputChannel, workspace);
}
protected getConfigSectionsToSynchronize(): string[] {
return [...super.getConfigSectionsToSynchronize(), 'jupyter.runStartupCommands'];
}
// eslint-disable-next-line class-methods-use-this
protected async getInitializationOptions(): Promise<LanguageClientOptions> {
return {
experimentationSupport: true,
trustedWorkspaceSupport: true,
} as unknown as LanguageClientOptions;
}
}