Merge pull request #193392 from microsoft/merogge/css

quick fix clean up
This commit is contained in:
Megan Rogge 2023-09-18 14:16:56 -07:00 committed by GitHub
commit a6403e4552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 14 deletions

View file

@ -285,10 +285,6 @@
border-style: solid;
}
.xterm-screen .xterm-decoration-container .xterm-decoration.quick-fix {
z-index: 7;
}
.monaco-workbench .part.sidebar > .title > .title-actions .switch-terminal {
display: flex;
align-items: center;
@ -484,15 +480,6 @@
pointer-events: none;
color: var(--vscode-terminalCommandDecoration-defaultBackground);
}
.monaco-workbench .terminal .terminal-command-decoration.quick-fix {
color: var(--vscode-editorLightBulb-foreground) !important;
background-color: var(--vscode-terminal-background, var(--vscode-panel-background));
}
.monaco-workbench .terminal .terminal-command-decoration.quick-fix.explainOnly {
/* Use success background to blend in with the terminal better as it's lower priority. We will
* probably want to add an explicit color for this eventually. */
color: var(--vscode-terminalCommandDecoration-successBackground) !important;
}
.terminal-scroll-highlight {
left: 0;

View file

@ -0,0 +1,19 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.xterm-screen .xterm-decoration-container .xterm-decoration.quick-fix {
z-index: 7;
}
.monaco-workbench .terminal .terminal-command-decoration.quick-fix {
color: var(--vscode-editorLightBulb-foreground) !important;
background-color: var(--vscode-terminal-background, var(--vscode-panel-background));
}
.monaco-workbench .terminal .terminal-command-decoration.quick-fix.explainOnly {
/* Use success background to blend in with the terminal better as it's lower priority. We will
* probably want to add an explicit color for this eventually. */
color: var(--vscode-terminalCommandDecoration-successBackground) !important;
}

View file

@ -283,7 +283,7 @@ export class TerminalQuickFixAddon extends Disposable implements ITerminalAddon,
updateLayout(this._configurationService, e);
this._audioCueService.playAudioCue(AudioCue.terminalQuickFix);
const parentElement = e.parentElement?.parentElement?.parentElement?.parentElement;
const parentElement = e.closest('.xterm') as HTMLElement;
if (!parentElement) {
return;
}

View file

@ -3,6 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import 'vs/css!./media/terminalQuickFix';
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import { DisposableStore } from 'vs/base/common/lifecycle';
import { localize } from 'vs/nls';