Skip to content

Commit 95128f1

Browse files
committed
XML Minify support
Fixes redhat-developer#609 Signed-off-by: azerr <azerr@redhat.com>
1 parent 03578bc commit 95128f1

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/commands/clientCommandConstants.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,9 @@ export const EXECUTE_WORKSPACE_COMMAND = 'xml.workspace.executeCommand';
7474

7575
export const REFACTOR_SURROUND_WITH_COMMENTS = 'xml.refactor.surround.with.comments';
7676

77-
export const REFACTOR_SURROUND_WITH_CDATA = 'xml.refactor.surround.with.cdata';
77+
export const REFACTOR_SURROUND_WITH_CDATA = 'xml.refactor.surround.with.cdata';
78+
79+
/**
80+
* Command to minify XML document.
81+
*/
82+
export const MINIFY_DOCUMENT = 'xml.minify';

src/commands/registerCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function registerClientServerCommands(context: ExtensionContext, la
3232
registerCodeLensReferencesCommands(context, languageClient);
3333
registerValidationCommands(context);
3434
registerRefactorCommands(context, languageClient);
35+
registerMinifyCommand(context, languageClient);
3536
registerAssociationCommands(context, languageClient);
3637
registerRestartLanguageServerCommand(context, languageClient);
3738
registerConfigurationUpdateCommand();

src/commands/serverCommandConstants.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,9 @@ export const CHECK_FILE_PATTERN = "xml.check.file.pattern";
3434
/**
3535
* Command to surround with tags, comments, cdata
3636
*/
37-
export const REFACTOR_SURROUND_WITH = "xml.refactor.surround.with";
37+
export const REFACTOR_SURROUND_WITH = "xml.refactor.surround.with";
38+
39+
/**
40+
* Command to minify XML document
41+
*/
42+
export const MINIFY_DOCUMENT = "xml.minify.document";

0 commit comments

Comments
 (0)