This commit is contained in:
Johannes Rieken 2020-09-25 16:26:52 +02:00
parent 0a914e0e61
commit b241d4cd1f
3 changed files with 5 additions and 9 deletions

View file

@ -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(

View file

@ -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.

View file

@ -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}`);
}