@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
17 lines (16 loc) • 828 B
TypeScript
/**
* FormatDocumentCommand - Hint about format-on-save behavior
*
* Informational only. Explains that format-on-save is now off by
* default, that switching back to a visual editor mode reformats
* the document automatically, and how to re-enable
* `formatBeforeSave` from the Settings panel.
*/
import type { IToolCommandMetadata, IToolCommandResult } from "../IToolCommand";
import { ToolCommandBase } from "../IToolCommand";
import type { IToolCommandContext } from "../IToolCommandContext";
export declare class FormatDocumentCommand extends ToolCommandBase {
readonly metadata: IToolCommandMetadata;
execute(context: IToolCommandContext, _args: string[], _flags: Record<string, string | boolean | string[]>): Promise<IToolCommandResult>;
}
export declare const formatDocumentCommand: FormatDocumentCommand;