Skip to content

Commit 39d64a2

Browse files
committed
Add configured projects to the list of projects when searching
1 parent 5ed6f30 commit 39d64a2

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

src/server/editorServices.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ namespace ts.server {
919919
configuredProject.updateGraph();
920920
if (configuredProject.getSourceFile(info)) {
921921
info.defaultProject = configuredProject;
922+
referencingProjects.push(configuredProject);
922923
}
923924
}
924925
return referencingProjects;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference path="../fourslash.ts"/>
2+
3+
// Global class reference.
4+
5+
// @Filename: referencesForGlobals_1.ts
6+
////class /*2*/globalClass {
7+
//// public f() { }
8+
////}
9+
10+
// @Filename: referencesForGlobals_2.ts
11+
////var c = /*1*/globalClass();
12+
13+
// @Filename: tsconfig.json
14+
////{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] }
15+
16+
goTo.marker("1");
17+
verify.referencesCountIs(2);
18+
19+
goTo.marker("2");
20+
verify.referencesCountIs(2);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/// <reference path="../fourslash.ts"/>
2+
3+
// @Filename: referencesForGlobals_1.ts
4+
////var [|globalName|] = 0;
5+
6+
// @Filename: referencesForGlobals_2.ts
7+
////var y = /*1*/[|globalName|];
8+
9+
// @Filename: tsconfig.json
10+
////{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] }
11+
12+
goTo.marker("1");
13+
verify.renameLocations(/*findInStrings:*/ true, /*findInComments:*/ true);

0 commit comments

Comments
 (0)