提交 3d3167ac 编写于 作者: I isidor

fix typo

上级 40498b09
......@@ -467,7 +467,7 @@ export class Thread implements IThread {
let source = new Source(rsf.source, rsf.source ? rsf.source.presentationHint : rsf.presentationHint);
if (this.process.sources.has(source.uri.toString())) {
const alreadyCreatedSource = this.process.sources.get(source.uri.toString());
alreadyCreatedSource.presenationHint = source.presenationHint;
alreadyCreatedSource.presentationHint = source.presentationHint;
source = alreadyCreatedSource;
} else {
this.process.sources.set(source.uri.toString(), source);
......@@ -1039,7 +1039,7 @@ export class Model implements IModel {
public deemphasizeSource(uri: uri): void {
this.processes.forEach(p => {
if (p.sources.has(uri.toString())) {
p.sources.get(uri.toString()).presenationHint = 'deemphasize';
p.sources.get(uri.toString()).presentationHint = 'deemphasize';
}
});
this._onDidChangeCallStack.fire();
......
......@@ -13,7 +13,7 @@ export class Source {
public uri: uri;
constructor(public raw: DebugProtocol.Source, public presenationHint: string) {
constructor(public raw: DebugProtocol.Source, public presentationHint: string) {
if (!raw) {
this.raw = { name: UNKNOWN_SOURCE_LABEL };
}
......
......@@ -544,9 +544,9 @@ export class CallStackRenderer implements IRenderer {
}
private renderStackFrame(stackFrame: debug.IStackFrame, data: IStackFrameTemplateData): void {
dom.toggleClass(data.stackFrame, 'disabled', stackFrame.source.presenationHint === 'deemphasize');
dom.toggleClass(data.stackFrame, 'label', stackFrame.source.presenationHint === 'label');
dom.toggleClass(data.stackFrame, 'subtle', stackFrame.source.presenationHint === 'subtle');
dom.toggleClass(data.stackFrame, 'disabled', stackFrame.source.presentationHint === 'deemphasize');
dom.toggleClass(data.stackFrame, 'label', stackFrame.source.presentationHint === 'label');
dom.toggleClass(data.stackFrame, 'subtle', stackFrame.source.presentationHint === 'subtle');
data.file.title = stackFrame.source.raw.path || stackFrame.source.name;
if (stackFrame.source.raw.origin) {
......
......@@ -17,7 +17,7 @@ suite('Debug - Source', () => {
};
const source = new Source(rawSource, 'label');
assert.equal(source.presenationHint, 'label');
assert.equal(source.presentationHint, 'label');
assert.equal(source.name, rawSource.name);
assert.equal(source.inMemory, false);
assert.equal(source.reference, rawSource.sourceReference);
......@@ -31,7 +31,7 @@ suite('Debug - Source', () => {
};
const source = new Source(rawSource, 'deemphasize');
assert.equal(source.presenationHint, 'deemphasize');
assert.equal(source.presentationHint, 'deemphasize');
assert.equal(source.name, rawSource.name);
assert.equal(source.inMemory, true);
assert.equal(source.reference, rawSource.sourceReference);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册