mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
Remove region diagnostics setting
Part of #292934 This is an implementation detail. Was only really added in 5.6 in case the new behavior caused issues. Should be safe to remove now
This commit is contained in:
@@ -133,7 +133,6 @@ export interface TypeScriptServiceConfiguration {
|
||||
readonly localNodePath: string | null;
|
||||
readonly globalNodePath: string | null;
|
||||
readonly workspaceSymbolsExcludeLibrarySymbols: boolean;
|
||||
readonly enableRegionDiagnostics: boolean;
|
||||
}
|
||||
|
||||
export function areServiceConfigurationsEqual(a: TypeScriptServiceConfiguration, b: TypeScriptServiceConfiguration): boolean {
|
||||
@@ -176,7 +175,6 @@ export abstract class BaseServiceConfigurationProvider implements ServiceConfigu
|
||||
localNodePath: this.readLocalNodePath(configuration),
|
||||
globalNodePath: this.readGlobalNodePath(configuration),
|
||||
workspaceSymbolsExcludeLibrarySymbols: this.readWorkspaceSymbolsExcludeLibrarySymbols(configuration),
|
||||
enableRegionDiagnostics: this.readEnableRegionDiagnostics(configuration),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -307,8 +305,4 @@ export abstract class BaseServiceConfigurationProvider implements ServiceConfigu
|
||||
private readWebTypeAcquisition(configuration: vscode.WorkspaceConfiguration): boolean {
|
||||
return configuration.get<boolean>('typescript.tsserver.web.typeAcquisition.enabled', true);
|
||||
}
|
||||
|
||||
private readEnableRegionDiagnostics(configuration: vscode.WorkspaceConfiguration): boolean {
|
||||
return configuration.get<boolean>('typescript.tsserver.enableRegionDiagnostics', true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ class GetErrRequest {
|
||||
}
|
||||
|
||||
private areRegionDiagnosticsEnabled(): boolean {
|
||||
return this.client.configuration.enableRegionDiagnostics && this.client.apiVersion.gte(API.v560);
|
||||
return this.client.apiVersion.gte(API.v560);
|
||||
}
|
||||
|
||||
public cancel(): void {
|
||||
|
||||
Reference in New Issue
Block a user