mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
limit commands to retrigger
This commit is contained in:
parent
af1e5fb993
commit
d5515f3fae
1 changed files with 2 additions and 2 deletions
|
|
@ -157,8 +157,8 @@ function toTextEdit(textEdit: htmlService.TextEdit): editor.ISingleEditOperation
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function toCommand(c: htmlService.Command | undefined): languages.Command {
|
function toCommand(c: cssService.Command | undefined): languages.Command {
|
||||||
return c ? { id: c.command, title: c.title, arguments: c.arguments } : undefined
|
return c && c.command === 'editor.action.triggerSuggest' ? { id: c.command, title: c.title, arguments: c.arguments } : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CompletionAdapter implements languages.CompletionItemProvider {
|
export class CompletionAdapter implements languages.CompletionItemProvider {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue