mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Allow configuring TS Server watch options through VS Code
Fixes #89381 Given that these are advanced options, we require editing them in the json file instead of using our settings UI
This commit is contained in:
@@ -477,12 +477,17 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
private serviceStarted(resendModels: boolean): void {
|
||||
this.bufferSyncSupport.reset();
|
||||
|
||||
const watchOptions = this.apiVersion.gte(API.v380)
|
||||
? vscode.workspace.getConfiguration('typescript').get<Proto.WatchOptions | undefined>('tsserver.watchOptions')
|
||||
: undefined;
|
||||
|
||||
const configureOptions: Proto.ConfigureRequestArguments = {
|
||||
hostInfo: 'vscode',
|
||||
preferences: {
|
||||
providePrefixAndSuffixTextForRename: true,
|
||||
allowRenameOfImportPath: true,
|
||||
}
|
||||
},
|
||||
watchOptions
|
||||
};
|
||||
this.executeWithoutWaitingForResponse('configure', configureOptions);
|
||||
this.setCompilerOptionsForInferredProjects(this._configuration);
|
||||
|
||||
Reference in New Issue
Block a user