mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Merge pull request #193392 from microsoft/merogge/css
quick fix clean up
This commit is contained in:
commit
a6403e4552
|
@ -285,10 +285,6 @@
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xterm-screen .xterm-decoration-container .xterm-decoration.quick-fix {
|
|
||||||
z-index: 7;
|
|
||||||
}
|
|
||||||
|
|
||||||
.monaco-workbench .part.sidebar > .title > .title-actions .switch-terminal {
|
.monaco-workbench .part.sidebar > .title > .title-actions .switch-terminal {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -484,15 +480,6 @@
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
color: var(--vscode-terminalCommandDecoration-defaultBackground);
|
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 {
|
.terminal-scroll-highlight {
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -283,7 +283,7 @@ export class TerminalQuickFixAddon extends Disposable implements ITerminalAddon,
|
||||||
updateLayout(this._configurationService, e);
|
updateLayout(this._configurationService, e);
|
||||||
this._audioCueService.playAudioCue(AudioCue.terminalQuickFix);
|
this._audioCueService.playAudioCue(AudioCue.terminalQuickFix);
|
||||||
|
|
||||||
const parentElement = e.parentElement?.parentElement?.parentElement?.parentElement;
|
const parentElement = e.closest('.xterm') as HTMLElement;
|
||||||
if (!parentElement) {
|
if (!parentElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* 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 { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
|
||||||
import { DisposableStore } from 'vs/base/common/lifecycle';
|
import { DisposableStore } from 'vs/base/common/lifecycle';
|
||||||
import { localize } from 'vs/nls';
|
import { localize } from 'vs/nls';
|
||||||
|
|
Loading…
Reference in a new issue