Skip to content

Commit

Permalink
fix(vscode): handle non-atomized file paths gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Dec 17, 2024
1 parent 68fccde commit bd55813
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export class AtomizedFileCodelensProvider implements NxCodeLensProvider {
token: CancellationToken
): ProviderResult<CodeLens[]> {
const path = document.uri.fsPath;
if (!this.sourceFilesToAtomizedTargetsMap[path]) {
return [];
}
const [project, target] = this.sourceFilesToAtomizedTargetsMap[path];
if (project && target) {
const location = this.getCodeLensLocation(document);
Expand Down

0 comments on commit bd55813

Please sign in to comment.