Skip to content

Commit

Permalink
range returned from extension API is off by one; fix #91406
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Feb 26, 2020
1 parent 65976ac commit b59e3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/browser/debugHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class DebugHoverWidget implements IContentWidget {

if (!matchingExpression) {
const lineContent = model.getLineContent(pos.lineNumber);
matchingExpression = lineContent.substring(rng.startColumn - 1, rng.endColumn);
matchingExpression = lineContent.substring(rng.startColumn - 1, rng.endColumn - 1);
}
}

Expand Down

0 comments on commit b59e3a6

Please sign in to comment.