mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
This commit is contained in:
parent
f53b683f37
commit
0b66311655
1 changed files with 2 additions and 5 deletions
|
|
@ -45,11 +45,8 @@ export class HTMLWorker {
|
||||||
options: htmlService.FormattingOptions
|
options: htmlService.FormattingOptions
|
||||||
): Promise<htmlService.TextEdit[]> {
|
): Promise<htmlService.TextEdit[]> {
|
||||||
let document = this._getTextDocument(uri);
|
let document = this._getTextDocument(uri);
|
||||||
let textEdits = this._languageService.format(
|
let formattingOptions = { ...this._languageSettings.format, ...options };
|
||||||
document,
|
let textEdits = this._languageService.format(document, range, formattingOptions);
|
||||||
range,
|
|
||||||
this._languageSettings && this._languageSettings.format
|
|
||||||
);
|
|
||||||
return Promise.resolve(textEdits);
|
return Promise.resolve(textEdits);
|
||||||
}
|
}
|
||||||
async doHover(uri: string, position: htmlService.Position): Promise<htmlService.Hover> {
|
async doHover(uri: string, position: htmlService.Position): Promise<htmlService.Hover> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue