mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
address cr feedback
This commit is contained in:
1 parent
bf5faa04a6
commit
09fc3b3a18
3 files changed
+15
-12
No files matched your search
@@ -713,14 +713,14 @@ namespace ts.server {
|
||||
})();
|
||||
|
||||
private _isJsInferredProject = false;
|
||||
set isJsInferredProject(newValue: boolean) {
|
||||
if (newValue && !this._isJsInferredProject) {
|
||||
this.setCompilerOptions(this.getCompilerOptions());
|
||||
}
|
||||
this._isJsInferredProject = newValue;
|
||||
|
||||
setAsJsInferredProject() {
|
||||
this._isJsInferredProject = true;
|
||||
this.setCompilerOptions();
|
||||
}
|
||||
|
||||
setCompilerOptions(newOptions: CompilerOptions) {
|
||||
setCompilerOptions(newOptions?: CompilerOptions) {
|
||||
newOptions = newOptions ? newOptions : this.getCompilerOptions();
|
||||
if (!newOptions) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user