提交 b59e3a6f 编写于 作者: A Andre Weinand

range returned from extension API is off by one; fix #91406

上级 65976ac7
...@@ -209,7 +209,7 @@ export class DebugHoverWidget implements IContentWidget { ...@@ -209,7 +209,7 @@ export class DebugHoverWidget implements IContentWidget {
if (!matchingExpression) { if (!matchingExpression) {
const lineContent = model.getLineContent(pos.lineNumber); const lineContent = model.getLineContent(pos.lineNumber);
matchingExpression = lineContent.substring(rng.startColumn - 1, rng.endColumn); matchingExpression = lineContent.substring(rng.startColumn - 1, rng.endColumn - 1);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册