mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
use ColorIdentifier instead of Color, define some git colors for untracked, modifed, and ignored
This commit is contained in:
@@ -357,7 +357,8 @@ export type SCMRawResource = [
|
||||
string[] /*icons: light, dark*/,
|
||||
string /*tooltip*/,
|
||||
boolean /*strike through*/,
|
||||
boolean /*faded*/
|
||||
boolean /*faded*/,
|
||||
{ id: string } /*ThemeColor*/
|
||||
];
|
||||
|
||||
export type SCMRawResourceSplice = [
|
||||
|
||||
@@ -243,8 +243,9 @@ class ExtHostSourceControlResourceGroup implements vscode.SourceControlResourceG
|
||||
const tooltip = (r.decorations && r.decorations.tooltip) || '';
|
||||
const strikeThrough = r.decorations && !!r.decorations.strikeThrough;
|
||||
const faded = r.decorations && !!r.decorations.faded;
|
||||
const color = r.decorations && r.decorations.color;
|
||||
|
||||
return [handle, sourceUri, icons, tooltip, strikeThrough, faded] as SCMRawResource;
|
||||
return [handle, sourceUri, icons, tooltip, strikeThrough, faded, color] as SCMRawResource;
|
||||
});
|
||||
|
||||
handlesToDelete.push(...this._handlesSnapshot.splice(start, deleteCount, ...handles));
|
||||
|
||||
Reference in New Issue
Block a user