提交 7ad42e10 编写于 作者: I isidor

debug: do not use scope ranges for hover since they are unreliable

fixes #37838
上级 249a796a
......@@ -237,7 +237,8 @@ export class DebugHoverWidget implements IContentWidget {
}
private findExpressionInStackFrame(namesToFind: string[], expressionRange: Range): TPromise<IExpression> {
return this.debugService.getViewModel().focusedStackFrame.getMostSpecificScopes(expressionRange)
return this.debugService.getViewModel().focusedStackFrame.getScopes()
.then(scopes => scopes.filter(s => !s.expensive))
.then(scopes => TPromise.join(scopes.map(scope => this.doFindExpression(scope, namesToFind))))
.then(expressions => expressions.filter(exp => !!exp))
// only show if all expressions found have the same value
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册