提交 dfbd59cf 编写于 作者: J Johannes Rieken

fix #83975

上级 5d4e856d
......@@ -26,7 +26,7 @@ export class CommitCharacterController {
this._disposables.add(widget.onDidHide(this.reset, this));
this._disposables.add(editor.onWillType(text => {
if (this._active) {
if (this._active && !widget.isFrozen()) {
const ch = text.charCodeAt(text.length - 1);
if (this._active.acceptCharacters.has(ch) && editor.getOption(EditorOption.acceptSuggestionOnCommitCharacter)) {
accept(this._active.item);
......
......@@ -1074,6 +1074,10 @@ export class SuggestWidget implements IContentWidget, IListVirtualDelegate<Compl
return SuggestWidget.ID;
}
isFrozen(): boolean {
return this.state === State.Frozen;
}
private updateListHeight(): number {
let height = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册