mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
This commit is contained in:
parent
1be8b30e74
commit
803466d050
1 changed files with 4 additions and 0 deletions
|
|
@ -926,6 +926,10 @@ export class FormatAdapter
|
|||
column: range.endColumn
|
||||
});
|
||||
const worker = await this._worker(resource);
|
||||
if (model.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const edits = await worker.getFormattingEditsForRange(
|
||||
resource.toString(),
|
||||
startOffset,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue