Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jun 30, 2021
1 parent 8a1381b commit 628b4d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/contrib/debug/browser/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { ICodeEditor, isCodeEditor } from 'vs/editor/browser/editorBrowser';
import { memoize } from 'vs/base/common/decorators';
import { dispose, IDisposable, Disposable } from 'vs/base/common/lifecycle';
import { EditorContextKeys } from 'vs/editor/common/editorContextKeys';
import { SuggestController } from 'vs/editor/contrib/suggest/suggestController';
import { CodeEditorWidget } from 'vs/editor/browser/widget/codeEditorWidget';
import { IDebugService, DEBUG_SCHEME, CONTEXT_IN_DEBUG_REPL, IDebugSession, State, IReplElement, IDebugConfiguration, REPL_VIEW_ID, CONTEXT_MULTI_SESSION_REPL, CONTEXT_DEBUG_STATE, getStateLabel } from 'vs/workbench/contrib/debug/common/debug';
import { HistoryNavigator } from 'vs/base/common/history';
Expand Down Expand Up @@ -738,6 +739,7 @@ class AcceptReplInputAction extends EditorAction {
}

run(accessor: ServicesAccessor, editor: ICodeEditor): void | Promise<void> {
SuggestController.get(editor).cancelSuggestWidget();
const repl = getReplView(accessor.get(IViewsService));
repl?.acceptReplInput();
}
Expand Down

0 comments on commit 628b4d4

Please sign in to comment.