mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
update service and support retrigger
This commit is contained in:
parent
aedb82f709
commit
3853c7d360
2 changed files with 6 additions and 1 deletions
|
|
@ -31,7 +31,7 @@
|
|||
"requirejs": "^2.3.6",
|
||||
"typescript": "4.3.2",
|
||||
"terser": "^5.7.0",
|
||||
"vscode-css-languageservice": "5.1.3",
|
||||
"vscode-css-languageservice": "^5.1.4",
|
||||
"vscode-languageserver-types": "3.16.0",
|
||||
"vscode-languageserver-textdocument": "^1.0.1"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -239,6 +239,10 @@ function toTextEdit(textEdit: cssService.TextEdit): editor.ISingleEditOperation
|
|||
};
|
||||
}
|
||||
|
||||
function toCommand(c: cssService.Command | undefined): languages.Command {
|
||||
return c && c.command === 'editor.action.triggerSuggest' ? { id: c.command, title: c.title, arguments: c.arguments } : undefined
|
||||
}
|
||||
|
||||
export class CompletionAdapter implements languages.CompletionItemProvider {
|
||||
constructor(private _worker: WorkerAccessor) {}
|
||||
|
||||
|
|
@ -278,6 +282,7 @@ export class CompletionAdapter implements languages.CompletionItemProvider {
|
|||
filterText: entry.filterText,
|
||||
documentation: entry.documentation,
|
||||
detail: entry.detail,
|
||||
command: toCommand(entry.command),
|
||||
range: wordRange,
|
||||
kind: toCompletionItemKind(entry.kind)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue