We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59a11f2 commit cdaf47dCopy full SHA for cdaf47d
1 file changed
extensions/ql-vscode/src/CodeLensProvider.ts
@@ -15,13 +15,13 @@ class MyCodeLensProvider implements CodeLensProvider {
15
16
for (let index = 0; index < document.lineCount; index++) {
17
const textLine = document.lineAt(index);
18
- const regex = new RegExp(/(?=(\w+\(\s*.*(?:,\s*)*\)))\1/g);
+ const regex = new RegExp(/(?=(\w+\(\s*.*(?:,\s*)*\)\s*\{))\1/g);
19
if (textLine.text.match(regex)) {
20
const uri = document.uri;
21
const startIndex = textLine.text.search(regex);
22
const range: Range = new Range(
23
textLine.range.start.line, startIndex,
24
- textLine.range.end.line, startIndex + 1
+ textLine.range.end.line, startIndex - 1
25
);
26
27
const command: Command = {
0 commit comments