Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3c05e90

Browse files
authored
Merge branch 'master' into cs/0.15.4
2 parents e454429 + a6d34bc commit 3c05e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codelens/CustomCodeLensProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export class CustomCodeLensProvider implements vscode.CodeLensProvider {
2222
return;
2323
}
2424

25-
const fileName: string = document.fileName.trim();
26-
const matchResult: RegExpMatchArray | null = fileName.match(/\d+\..*\.(.+)/);
25+
const content: string = document.getText();
26+
const matchResult: RegExpMatchArray | null = content.match(/@lc app=.* id=.* lang=.*/);
2727
if (!matchResult) {
2828
return undefined;
2929
}

0 commit comments

Comments
 (0)