提交 11787931 编写于 作者: I isidor

Disable history navigation because up and down are used to navigate through the suggest widget

fixes #52381
上级 c1773768
......@@ -174,6 +174,8 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
modes.SuggestRegistry.register({ scheme: DEBUG_SCHEME, hasAccessToAllModels: true }, {
triggerCharacters: ['.'],
provideCompletionItems: (model: ITextModel, position: Position, _context: modes.SuggestContext, token: CancellationToken): Thenable<modes.ISuggestResult> => {
// Disable history navigation because up and down are used to navigate through the suggest widget
historyNavigationEnablement.set(false);
const word = this.replInput.getModel().getWordAtPosition(position);
const overwriteBefore = word ? word.word.length : 0;
const text = this.replInput.getModel().getLineContent(position.lineNumber);
......@@ -198,7 +200,6 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
historyNavigationEnablement.set(this.replInput.getModel().getLineCount() === 1);
}));
this.toUnbind.push(dom.addStandardDisposableListener(this.replInputContainer, dom.EventType.FOCUS, () => dom.addClass(this.replInputContainer, 'synthetic-focus')));
this.toUnbind.push(dom.addStandardDisposableListener(this.replInputContainer, dom.EventType.BLUR, () => dom.removeClass(this.replInputContainer, 'synthetic-focus')));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册