提交 b241d4cd 编写于 作者: J Johannes Rieken
上级 0a914e0e
......@@ -254,13 +254,9 @@ export class Resource implements SourceControlResourceState {
}
get resourceDecoration(): FileDecoration {
return {
propagte: this.type !== Status.DELETED && this.type !== Status.INDEX_DELETED,
tooltip: this.tooltip,
badge: this.letter,
color: this.color,
priority: this.priority
};
const res = new FileDecoration(this.letter, this.tooltip, this.color);
res.propagate = this.type !== Status.DELETED && this.type !== Status.INDEX_DELETED;
return res;
}
constructor(
......
......@@ -739,7 +739,7 @@ declare module 'vscode' {
* A flag expressing that this decoration should be
* propagated to its parents.
*/
propagte?: boolean;
propagate?: boolean;
/**
* Creates a new decoration.
......
......@@ -71,7 +71,7 @@ export class ExtHostDecorations implements ExtHostDecorationsShape {
}
try {
FileDecoration.validate(data);
result[id] = <DecorationData>[data.propagte, data.tooltip, data.badge, data.color];
result[id] = <DecorationData>[data.propagate, data.tooltip, data.badge, data.color];
} catch (e) {
this._logService.warn(`INVALID decoration from extension '${extensionId.value}': ${e}`);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册