8000
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.
1 parent ff9e364 commit a6d34bcCopy full SHA for a6d34bc
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