提交 69e82dfe 编写于 作者: I isidor

debug: deemphesizeSource no longer needed in process

上级 ad43a5b3
......@@ -585,19 +585,6 @@ export class Process implements debug.IProcess {
}
}
public deemphasizeSource(uri: uri): void {
this.threads.forEach(thread => {
const callStack = thread.getCallStack();
if (callStack) {
callStack.forEach(stackFrame => {
if (stackFrame.source.uri.toString() === uri.toString()) {
stackFrame.source.deemphasize = true;
}
});
}
});
}
public completions(frameId: number, text: string, position: Position, overwriteBefore: number): TPromise<ISuggestion[]> {
if (!this.session.capabilities.supportsCompletionsRequest) {
return TPromise.as([]);
......@@ -975,7 +962,11 @@ export class Model implements debug.IModel {
}
public deemphasizeSource(uri: uri): void {
this.processes.forEach(p => p.deemphasizeSource(uri));
this.processes.forEach(p => {
if (p.sources.has(uri.toString())) {
p.sources.get(uri.toString()).deemphasize = true;
}
});
this._onDidChangeCallStack.fire();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册