提交 d53d2d7e 编写于 作者: J Joao Moreno

fixes #28393

上级 e7fc27d7
......@@ -81,7 +81,7 @@ export class ParameterHintsModel extends Disposable {
}
trigger(delay = ParameterHintsModel.DELAY): void {
if (!this.enabled || !SignatureHelpProviderRegistry.has(this.editor.getModel())) {
if (!SignatureHelpProviderRegistry.has(this.editor.getModel())) {
return;
}
......@@ -132,8 +132,11 @@ export class ParameterHintsModel extends Disposable {
}
this.triggerCharactersListeners.push(this.editor.onDidType((text: string) => {
let lastCharCode = text.charCodeAt(text.length - 1);
if (triggerChars.has(lastCharCode)) {
if (!this.enabled) {
return;
}
if (triggerChars.has(text.charCodeAt(text.length - 1))) {
this.trigger();
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册