We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a4bd7d commit 0f38c43Copy full SHA for 0f38c43
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
- if (textLine.text.includes('predicate')) {
+ const regex = new RegExp(/\w+\(\s*.*(?:,\s*\S+)*\s*\)/g);
19
+ if (textLine.text.match(regex)) {
20
const uri = document.uri;
- const regex = new RegExp(/predicate/);
21
const startIndex = textLine.text.search(regex);
22
const range: Range = new Range(
23
- textLine.range.start.line, startIndex + 10,
24
- textLine.range.end.line, startIndex + 11
+ textLine.range.start.line, startIndex,
+ textLine.range.end.line, startIndex + 1
25
);
26
27
const command: Command = {
0 commit comments