Skip to content

Commit a49fa3a

Browse files
committed
Emergency include resolution
1 parent f13f18a commit a49fa3a

File tree

1 file changed

+5
-0
lines changed
  • packages/cli/src/languagePlugins/c/includeResolver

1 file changed

+5
-0
lines changed

packages/cli/src/languagePlugins/c/includeResolver/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export class CIncludeResolver {
3030
if (corresponding2) {
3131
return this.symbolRegistry.get(corresponding2);
3232
}
33+
// 3. Check wherever
34+
const corresponding3 = filepaths.find((f) => f.endsWith(filepath));
35+
if (corresponding3) {
36+
return this.symbolRegistry.get(corresponding3);
37+
}
3338
return undefined;
3439
}
3540

0 commit comments

Comments
 (0)