mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix sml formatting (#9510)
This commit is contained in:
@@ -582,6 +582,7 @@ export abstract class GridTableBase<T> extends Disposable implements IView {
|
|||||||
let content = value.displayValue;
|
let content = value.displayValue;
|
||||||
|
|
||||||
const input = this.untitledEditorService.create({ mode: column.isXml ? 'xml' : 'json', initialValue: content });
|
const input = this.untitledEditorService.create({ mode: column.isXml ? 'xml' : 'json', initialValue: content });
|
||||||
|
await input.load();
|
||||||
await this.instantiationService.invokeFunction(formatDocumentWithSelectedProvider, input.textEditorModel, FormattingMode.Explicit, Progress.None, CancellationToken.None);
|
await this.instantiationService.invokeFunction(formatDocumentWithSelectedProvider, input.textEditorModel, FormattingMode.Explicit, Progress.None, CancellationToken.None);
|
||||||
return this.editorService.openEditor(input);
|
return this.editorService.openEditor(input);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user