We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e454429 + a6d34bc commit 3c05e90Copy full SHA for 3c05e90
src/codelens/CustomCodeLensProvider.ts
@@ -22,8 +22,8 @@ export class CustomCodeLensProvider implements vscode.CodeLensProvider {
22
return;
23
}
24
25
- const fileName: string = document.fileName.trim();
26
- const matchResult: RegExpMatchArray | null = fileName.match(/\d+\..*\.(.+)/);
+ const content: string = document.getText();
+ const matchResult: RegExpMatchArray | null = content.match(/@lc app=.* id=.* lang=.*/);
27
if (!matchResult) {
28
return undefined;
29
0 commit comments