pull/200251/head
Aiday Marlen Kyzy 2023-12-07 17:30:32 +01:00
parent 66c869c41f
commit 797f78fb64
No known key found for this signature in database
GPG Key ID: 24A8B53DBD26FF4E
3 changed files with 10 additions and 0 deletions

View File

@ -343,6 +343,8 @@
"--vscode-inputValidation-warningBackground",
"--vscode-inputValidation-warningBorder",
"--vscode-inputValidation-warningForeground",
"--vscode-interactive-activeCodeBorder",
"--vscode-interactive-inactiveCodeBorder",
"--vscode-keybindingLabel-background",
"--vscode-keybindingLabel-border",
"--vscode-keybindingLabel-bottomBorder",

View File

@ -67,6 +67,10 @@
background-color: var(--vscode-editorStickyScroll-background);
}
.monaco-editor .sticky-widget.output {
background-color: var(--vscode-outputViewEditorStickyScroll-background);
}
.monaco-editor .sticky-widget.peek {
background-color: var(--vscode-peekViewEditorStickyScroll-background);
}

View File

@ -73,7 +73,11 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
this._linesDomNodeScrollable.className = 'sticky-widget-lines-scrollable';
this._linesDomNodeScrollable.appendChild(this._linesDomNode);
const isOutput = this._editor.getModel()?.uri.scheme === 'output';
this._rootDomNode.className = 'sticky-widget';
this._rootDomNode.classList.toggle('peek', _editor instanceof EmbeddedCodeEditorWidget);
this._rootDomNode.appendChild(this._lineNumbersDomNode);
this._rootDomNode.appendChild(this._linesDomNodeScrollable);