mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Update to respond to PR feedback
This commit is contained in:
1 parent
82e9a7595b
commit
d64f2483e4
5 files changed
+57
-65
No files matched your search
@@ -304,7 +304,7 @@ namespace ts.server {
|
||||
const isNew = !this.isAttached(project);
|
||||
if (isNew) {
|
||||
this.containingProjects.push(project);
|
||||
project.hasMoreOrLessScriptInfos = true;
|
||||
project.setHasMoreOrLessFiles();
|
||||
if (!project.getCompilerOptions().preserveSymlinks) {
|
||||
this.ensureRealPath();
|
||||
}
|
||||
@@ -329,23 +329,23 @@ namespace ts.server {
|
||||
return;
|
||||
case 1:
|
||||
if (this.containingProjects[0] === project) {
|
||||
project.hasMoreOrLessScriptInfos = true;
|
||||
project.setHasMoreOrLessFiles();
|
||||
this.containingProjects.pop();
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (this.containingProjects[0] === project) {
|
||||
project.hasMoreOrLessScriptInfos = true;
|
||||
project.setHasMoreOrLessFiles();
|
||||
this.containingProjects[0] = this.containingProjects.pop();
|
||||
}
|
||||
else if (this.containingProjects[1] === project) {
|
||||
project.hasMoreOrLessScriptInfos = true;
|
||||
project.setHasMoreOrLessFiles();
|
||||
this.containingProjects.pop();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (unorderedRemoveItem(this.containingProjects, project)) {
|
||||
project.hasMoreOrLessScriptInfos = true;
|
||||
project.setHasMoreOrLessFiles();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user