mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
This commit is contained in:
parent
0a914e0e61
commit
b241d4cd1f
|
@ -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(
|
||||
|
|
2
src/vs/vscode.proposed.d.ts
vendored
2
src/vs/vscode.proposed.d.ts
vendored
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue