We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e492a4 + 7ecf90e commit f431c82Copy full SHA for f431c82
1 file changed
src/server/editorServices.ts
@@ -1268,11 +1268,15 @@ namespace ts.server {
1268
if (info.isOpen) {
1269
if (this.openFileRoots.indexOf(info) >= 0) {
1270
this.openFileRoots = copyListRemovingItem(info, this.openFileRoots);
1271
+ if (info.defaultProject && !info.defaultProject.isConfiguredProject()) {
1272
+ this.removeProject(info.defaultProject);
1273
+ }
1274
}
1275
if (this.openFilesReferenced.indexOf(info) >= 0) {
1276
this.openFilesReferenced = copyListRemovingItem(info, this.openFilesReferenced);
1277
1278
this.openFileRootsConfigured.push(info);
1279
+ info.defaultProject = project;
1280
1281
1282
project.addRoot(info);
0 commit comments