提交 24300d5f 编写于 作者: J Johannes Rieken

fix #41852

上级 16909577
......@@ -67,6 +67,7 @@ export class ParameterHintsModel extends Disposable {
this._register(this.editor.onDidChangeModel(e => this.onModelChanged()));
this._register(this.editor.onDidChangeModelLanguage(_ => this.onModelChanged()));
this._register(this.editor.onDidChangeCursorSelection(e => this.onCursorChange(e)));
this._register(this.editor.onDidChangeModelContent(e => this.onModelContentChange()));
this._register(SignatureHelpProviderRegistry.onDidChange(this.onModelChanged, this));
this.onEditorConfigurationChange();
......@@ -162,6 +163,12 @@ export class ParameterHintsModel extends Disposable {
}
}
private onModelContentChange(): void {
if (this.isTriggered()) {
this.trigger();
}
}
private onEditorConfigurationChange(): void {
this.enabled = this.editor.getConfiguration().contribInfo.parameterHints;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册