mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +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
|
column: range.endColumn
|
||||||
});
|
});
|
||||||
const worker = await this._worker(resource);
|
const worker = await this._worker(resource);
|
||||||
|
if (model.isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const edits = await worker.getFormattingEditsForRange(
|
const edits = await worker.getFormattingEditsForRange(
|
||||||
resource.toString(),
|
resource.toString(),
|
||||||
startOffset,
|
startOffset,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue