Skip to content

Commit

Permalink
Debug ext: Fix lens positioning for Kani C
Browse files Browse the repository at this point in the history
  • Loading branch information
NatKarmios committed Dec 23, 2023
1 parent 1def906 commit 04a3ae7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions debugger-vscode-extension/src/activateCodeLens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class DebugCodeLensProvider implements CodeLensProvider {
break;
}

const reProcedureName = /(.+?)\(/g;

const lensKinds = getLensKinds();
const lenses: CodeLens[] = [];
while (pattern.exec(text) !== null) {
Expand Down Expand Up @@ -97,9 +95,10 @@ class DebugCodeLensProvider implements CodeLensProvider {
const lenses: CodeLens[] = [];
let match = pattern.exec(text);
while (match !== null) {
const ix = match.index + 'int main'.length;
for (const [execMode, commandPrefix] of lensKinds) {
const codeLens = this.makeCodeLens(
match.index,
ix,
'main',
document,
execMode,
Expand Down

0 comments on commit 04a3ae7

Please sign in to comment.