mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 21:11:38 +01:00
Use explicit flag to enable TS server project wide intellisense (#171208)
This commit is contained in:
@@ -10,7 +10,7 @@ import { ClientCapabilities, ClientCapability, ServerType } from '../typescriptS
|
||||
import API from '../utils/api';
|
||||
import { SyntaxServerConfiguration, TsServerLogLevel, TypeScriptServiceConfiguration } from '../utils/configuration';
|
||||
import { Logger } from '../utils/logger';
|
||||
import { isWeb } from '../utils/platform';
|
||||
import { isWeb, isWebAndHasSharedArrayBuffers } from '../utils/platform';
|
||||
import { TypeScriptPluginPathsProvider } from '../utils/pluginPathsProvider';
|
||||
import { PluginManager } from '../utils/plugins';
|
||||
import { TelemetryReporter } from '../utils/telemetry';
|
||||
@@ -261,6 +261,10 @@ export class TypeScriptServerSpawner {
|
||||
|
||||
args.push('--validateDefaultNpmLocation');
|
||||
|
||||
if (isWebAndHasSharedArrayBuffers()) {
|
||||
args.push('--enableProjectWideIntelliSenseOnWeb');
|
||||
}
|
||||
|
||||
return { args, tsServerLogFile, tsServerTraceDirectory };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user