forked from external/vscode-xml
Remove Format XML Command
This commit is contained in:
parent
41bf728061
commit
cc796ed26e
3 changed files with 0 additions and 11 deletions
|
@ -33,10 +33,6 @@
|
|||
"main": "./src/Extension",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "xmlTools.formatXml",
|
||||
"title": "XML Tools: Format XML"
|
||||
},
|
||||
{
|
||||
"command": "xmlTools.minifyXml",
|
||||
"title": "XML Tools: Minify XML"
|
||||
|
@ -115,7 +111,6 @@
|
|||
"activationEvents": [
|
||||
"onLanguage:xml",
|
||||
"onLanguage:xquery",
|
||||
"onCommand:xmlTools.formatXml",
|
||||
"onCommand:xmlTools.minifyXml",
|
||||
"onCommand:xmlTools.evaluateXPath",
|
||||
"onCommand:xmlTools.executeXQuery"
|
||||
|
|
|
@ -12,11 +12,6 @@ const CFG_SECTION: string = 'xmlTools';
|
|||
const CFG_REMOVE_COMMENTS: string = 'removeCommentsOnMinify';
|
||||
|
||||
export class TextEditorCommands {
|
||||
static formatXml(editor: vsc.TextEditor, edit: vsc.TextEditorEdit): void {
|
||||
// alias for editor.action.format
|
||||
vsc.commands.executeCommand('editor.action.format');
|
||||
}
|
||||
|
||||
static minifyXml(editor: vsc.TextEditor, edit: vsc.TextEditorEdit): void {
|
||||
let removeComments: boolean = vsc.workspace.getConfiguration(CFG_SECTION).get<boolean>(CFG_REMOVE_COMMENTS, false);
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ export function activate(ctx: vsc.ExtensionContext) {
|
|||
// register palette commands
|
||||
ctx.subscriptions.push(
|
||||
vsc.commands.registerTextEditorCommand('xmlTools.minifyXml', TextEditorCommands.minifyXml),
|
||||
vsc.commands.registerTextEditorCommand('xmlTools.formatXml', TextEditorCommands.formatXml),
|
||||
vsc.commands.registerTextEditorCommand('xmlTools.evaluateXPath', TextEditorCommands.evaluateXPath),
|
||||
|
||||
vsc.commands.registerTextEditorCommand('xmlTools.executeXQuery', TextEditorCommands.executeXQuery)
|
||||
|
|
Loading…
Add table
Reference in a new issue