Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/commands/clientCommandConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,9 @@ export const EXECUTE_WORKSPACE_COMMAND = 'xml.workspace.executeCommand';

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

export const REFACTOR_SURROUND_WITH_CDATA = 'xml.refactor.surround.with.cdata';
export const REFACTOR_SURROUND_WITH_CDATA = 'xml.refactor.surround.with.cdata';

/**
* Command to minify XML document.
*/
export const MINIFY_DOCUMENT = 'xml.minify';
1 change: 1 addition & 0 deletions src/commands/registerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
registerCodeLensReferencesCommands(context, languageClient);
registerValidationCommands(context);
registerRefactorCommands(context, languageClient);
registerMinifyCommand(context, languageClient);
registerAssociationCommands(context, languageClient);
registerRestartLanguageServerCommand(context, languageClient);
registerConfigurationUpdateCommand();
Expand All @@ -39,7 +40,7 @@
// Register client command to execute custom XML Language Server command
context.subscriptions.push(commands.registerCommand(ClientCommandConstants.EXECUTE_WORKSPACE_COMMAND, (command, ...rest) => {
let token: CancellationToken;
let commandArgs: any[] = rest;

Check warning on line 43 in src/commands/registerCommands.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
if (rest && rest.length && CancellationToken.is(rest[rest.length - 1])) {
token = rest[rest.length - 1];
commandArgs = rest.slice(0, rest.length - 1);
Expand Down
7 changes: 6 additions & 1 deletion src/commands/serverCommandConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ export const CHECK_FILE_PATTERN = "xml.check.file.pattern";
/**
* Command to surround with tags, comments, cdata
*/
export const REFACTOR_SURROUND_WITH = "xml.refactor.surround.with";
export const REFACTOR_SURROUND_WITH = "xml.refactor.surround.with";

/**
* Command to minify XML document
*/
export const MINIFY_DOCUMENT = "xml.minify.document";
Loading