File tree
Expand file treeCollapse file tree1 file changed
+2
-2
lines changed Expand file treeCollapse file tree1 file changed
+2
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -22,8 +22,8 @@ export class CustomCodeLensProvider implements vscode.CodeLensProvider {
|
22 | 22 | return;
|
23 | 23 | }
|
24 | 24 |
|
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=.*/); |
27 | 27 | if (!matchResult) {
|
28 | 28 | return undefined;
|
29 | 29 | }
|
|
You can’t perform that action at this time.
0 commit comments