mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Passing command line argument --useSingleInferredProject
This commit is contained in:
@@ -873,7 +873,7 @@ export interface OpenExternalProjectRequest extends Request {
|
||||
/**
|
||||
* Arguments to OpenExternalProjectRequest request
|
||||
*/
|
||||
type OpenExternalProjectArgs = ExternalProject;
|
||||
export type OpenExternalProjectArgs = ExternalProject;
|
||||
|
||||
/**
|
||||
* Request to open multiple external projects
|
||||
|
||||
@@ -454,7 +454,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||
options.execArgv = [`--debug=${port}`];
|
||||
}
|
||||
}
|
||||
electron.fork(modulePath, [], options, (err: any, childProcess: cp.ChildProcess) => {
|
||||
electron.fork(modulePath, ['--useSingleInferredProject'], options, (err: any, childProcess: cp.ChildProcess) => {
|
||||
if (err) {
|
||||
this.lastError = err;
|
||||
this.error('Starting TSServer failed with error.', err);
|
||||
@@ -492,8 +492,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||
|
||||
private serviceStarted(resendModels: boolean): void {
|
||||
let configureOptions: Proto.ConfigureRequestArguments = {
|
||||
hostInfo: 'vscode',
|
||||
useOneInferredProject: true
|
||||
hostInfo: 'vscode'
|
||||
};
|
||||
if (this._experimentalAutoBuild && this.storagePath) {
|
||||
try {
|
||||
@@ -506,9 +505,9 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||
this.execute('configure', configureOptions);
|
||||
let compilerOptions: Proto.ExternalProjectCompilerOptions = {
|
||||
module: Proto.ModuleKind.CommonJS,
|
||||
target: Proto.ScriptTarget.ES5,
|
||||
target: Proto.ScriptTarget.ES6,
|
||||
allowSyntheticDefaultImports: true,
|
||||
allowJs: true,
|
||||
allowSyntheticDefaultImports: true
|
||||
};
|
||||
let args: Proto.SetCompilerOptionsForInferredProjectsArgs = {
|
||||
options: compilerOptions
|
||||
|
||||
Reference in New Issue
Block a user