Skip to content

Commit

Permalink
Console UI/brighter console prompt (#4645)
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarenerd authored Sep 11, 2024
1 parent b3ac5df commit 50e2f07
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Schemas } from 'vs/base/common/network';
import { KeyCode } from 'vs/base/common/keyCodes';
import { generateUuid } from 'vs/base/common/uuid';
import { isMacintosh } from 'vs/base/common/platform';
import { getActiveElement } from 'vs/base/browser/dom';
import { HistoryNavigator2 } from 'vs/base/common/history';
import { ISelection } from 'vs/editor/common/core/selection';
import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent';
Expand Down Expand Up @@ -621,6 +620,7 @@ export const ConsoleInput = (props: ConsoleInputProps) => {
fixedOverflowWidgets: true,
lineDecorationsWidth: '1.0ch',
renderLineHighlight: 'none',
renderFinalNewline: 'on',
wordWrap: 'bounded',
wordWrapColumn: 2048,
scrollbar: {
Expand Down Expand Up @@ -762,7 +762,7 @@ export const ConsoleInput = (props: ConsoleInputProps) => {
// Only take focus if there is no focused editor to avoid stealing
// focus when the user could be actively working in an editor

const ctxt = positronConsoleContext.contextKeyService.getContext(getActiveElement());
const ctxt = positronConsoleContext.contextKeyService.getContext(DOM.getActiveElement());

// Sensitive to all editor contexts, simple (e.g. git commit textbox) or not (e.g. code editor)
const inTextInput = ctxt.getValue(EditorContextKeys.textInputFocus.key);
Expand Down

0 comments on commit 50e2f07

Please sign in to comment.