Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jan 24, 2025
1 parent 119b1d1 commit 7980594
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vs/code/electron-sandbox/workbench/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
}
}

// part: auxiliary sidebar (only when width > 0)
// part: auxiliary sidebar
if (layoutInfo.auxiliarySideBarWidth > 0) {
const auxSideDiv = document.createElement('div');
auxSideDiv.style.position = 'absolute';
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/theme/common/themeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,6 @@ export interface IPartsSplash {

export interface IPartsSplashWorkspaceOverride {
layoutInfo: {
auxiliarySideBarWidth: [number, string[] /* workspace ID */];
auxiliarySideBarWidth: [number, string[] /* workspace identifier the override applies to */];
};
}
6 changes: 3 additions & 3 deletions src/vs/platform/theme/electron-main/themeMainService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class ThemeMainService extends Disposable implements IThemeMainService {
}
} else {
const index = workspaceIds.indexOf(workspace.id);
if (index !== -1) {
if (index > -1) {
workspaceIds.splice(index, 1);
changed = true;
}
Expand Down Expand Up @@ -244,13 +244,13 @@ export class ThemeMainService extends Disposable implements IThemeMainService {

return {
...partSplash,
layoutInfo: partSplash.layoutInfo ? {
layoutInfo: {
...partSplash.layoutInfo,
// Only apply an auxiliary bar width when we have a workspace specific
// override. Auxiliary bar is not visible by default unless explicitly
// opened in a workspace.
auxiliarySideBarWidth: typeof auxiliarySideBarWidthOverride === 'number' ? auxiliarySideBarWidthOverride : 0
} : undefined
}
};
}

Expand Down

0 comments on commit 7980594

Please sign in to comment.