提交 13aff1ef 编写于 作者: M Matt Bierner

Add workaround for TS not supporting providePrefixAndSuffixTextForRename not...

Add workaround for TS not supporting providePrefixAndSuffixTextForRename not being supported per-file

Workaround for https://github.com/Microsoft/TypeScript/issues/29585
上级 e9708716
......@@ -183,7 +183,7 @@ export default class FileConfigurationManager extends Disposable {
allowTextChangesInNewFiles: document.uri.scheme === 'file',
providePrefixAndSuffixTextForRename: true,
allowRenameOfImportPath: true,
} as Proto.UserPreferences;
};
}
}
......
......@@ -423,6 +423,10 @@ export default class TypeScriptServiceClient extends Disposable implements IType
private serviceStarted(resendModels: boolean): void {
const configureOptions: Proto.ConfigureRequestArguments = {
hostInfo: 'vscode',
preferences: {
providePrefixAndSuffixTextForRename: true,
allowRenameOfImportPath: true,
}
};
this.executeWithoutWaitingForResponse('configure', configureOptions);
this.setCompilerOptionsForInferredProjects(this._configuration);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册