Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/vs/code/browser/workbench/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ type Writeable<T> = { -readonly [P in keyof T]: T[P] };
config.configurationDefaults = {
...config.configurationDefaults,
'window.commandCenter': false, // Hide command center
'editor.scrollbar.verticalScrollbarSize': 6,
'editor.scrollbar.horizontalScrollbarSize': 6,
};


Expand Down
9 changes: 5 additions & 4 deletions src/vs/editor/common/config/editorOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4121,10 +4121,11 @@ class EditorScrollbar extends BaseEditorOption<EditorOption.scrollbar, IEditorSc
useShadows: true,
verticalHasArrows: false,
horizontalHasArrows: false,
horizontalScrollbarSize: 12,
horizontalSliderSize: 12,
verticalScrollbarSize: 14,
verticalSliderSize: 14,
// MEMBRANE: thinner than upstream (12/14)
horizontalScrollbarSize: 6,
horizontalSliderSize: 6,
verticalScrollbarSize: 6,
verticalSliderSize: 6,
handleMouseWheel: true,
alwaysConsumeMouseWheel: true,
scrollByPage: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,22 @@ export class MembraneEditorMetricsContribution extends Disposable implements IWo
contentLeft: layoutInfo.contentLeft,
contentWidth: layoutInfo.contentWidth,
charWidth: fontInfo.typicalHalfwidthCharacterWidth,
editorTop: this._editorTopInWorkbench(editor),
lineCount,
linePositions,
...(selectionData && { selection: selectionData }),
};
}

/** Monaco widget top relative to the workbench hole Gaze sizes (tabs/breadcrumbs sit above it). */
private _editorTopInWorkbench(editor: ICodeEditor): number {
const editorDom = editor.getDomNode();
if (!editorDom) {
return 0;
}
const workbench = editorDom.closest('.monaco-workbench') ?? editorDom;
return editorDom.getBoundingClientRect().top - workbench.getBoundingClientRect().top;
}
}

registerWorkbenchContribution2(
Expand Down
Loading