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