mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
deco - use correct/overwrite decorations in scm viewlet because the same URI can have multiple decorations
This commit is contained in:
@@ -182,7 +182,7 @@ class MainThreadSCMProvider implements ISCMProvider {
|
||||
|
||||
for (const [start, deleteCount, rawResources] of groupSlices) {
|
||||
const resources = rawResources.map(rawResource => {
|
||||
const [handle, sourceUri, icons, tooltip, strikeThrough, faded] = rawResource;
|
||||
const [handle, sourceUri, icons, tooltip, strikeThrough, faded, source, letter, color] = rawResource;
|
||||
const icon = icons[0];
|
||||
const iconDark = icons[1] || icon;
|
||||
const decorations = {
|
||||
@@ -190,7 +190,11 @@ class MainThreadSCMProvider implements ISCMProvider {
|
||||
iconDark: iconDark && URI.parse(iconDark),
|
||||
tooltip,
|
||||
strikeThrough,
|
||||
faded
|
||||
faded,
|
||||
|
||||
source,
|
||||
letter,
|
||||
color: color.id
|
||||
};
|
||||
|
||||
return new MainThreadSCMResource(
|
||||
|
||||
Reference in New Issue
Block a user