Remove expect error
This commit is contained in:
parent
d21ff5b1c3
commit
a3e37dc103
2 changed files with 3 additions and 4 deletions
|
@ -532,7 +532,6 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||||
preferences: {
|
preferences: {
|
||||||
providePrefixAndSuffixTextForRename: true,
|
providePrefixAndSuffixTextForRename: true,
|
||||||
allowRenameOfImportPath: true,
|
allowRenameOfImportPath: true,
|
||||||
// @ts-expect-error, remove after 4.0 protocol update
|
|
||||||
includePackageJsonAutoImports: this._configuration.includePackageJsonAutoImports,
|
includePackageJsonAutoImports: this._configuration.includePackageJsonAutoImports,
|
||||||
},
|
},
|
||||||
watchOptions
|
watchOptions
|
||||||
|
|
|
@ -66,7 +66,7 @@ export class TypeScriptServiceConfiguration {
|
||||||
public readonly maxTsServerMemory: number;
|
public readonly maxTsServerMemory: number;
|
||||||
public readonly enablePromptUseWorkspaceTsdk: boolean;
|
public readonly enablePromptUseWorkspaceTsdk: boolean;
|
||||||
public readonly watchOptions: protocol.WatchOptions | undefined;
|
public readonly watchOptions: protocol.WatchOptions | undefined;
|
||||||
public readonly includePackageJsonAutoImports: string | undefined;
|
public readonly includePackageJsonAutoImports: 'auto' | 'on' | 'off' | undefined;
|
||||||
|
|
||||||
public static loadFromWorkspace(): TypeScriptServiceConfiguration {
|
public static loadFromWorkspace(): TypeScriptServiceConfiguration {
|
||||||
return new TypeScriptServiceConfiguration();
|
return new TypeScriptServiceConfiguration();
|
||||||
|
@ -181,8 +181,8 @@ export class TypeScriptServiceConfiguration {
|
||||||
return configuration.get<protocol.WatchOptions>('typescript.tsserver.watchOptions');
|
return configuration.get<protocol.WatchOptions>('typescript.tsserver.watchOptions');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readIncludePackageJsonAutoImports(configuration: vscode.WorkspaceConfiguration): string | undefined {
|
private static readIncludePackageJsonAutoImports(configuration: vscode.WorkspaceConfiguration): 'auto' | 'on' | 'off' | undefined {
|
||||||
return configuration.get<string>('typescript.preferences.includePackageJsonAutoImports');
|
return configuration.get<'auto' | 'on' | 'off'>('typescript.preferences.includePackageJsonAutoImports');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readMaxTsServerMemory(configuration: vscode.WorkspaceConfiguration): number {
|
private static readMaxTsServerMemory(configuration: vscode.WorkspaceConfiguration): number {
|
||||||
|
|
Loading…
Reference in a new issue