13 lines
No EOL
442 B
TypeScript
13 lines
No EOL
442 B
TypeScript
'use strict';
|
|
|
|
import { commands, ExtensionContext } from 'vscode';
|
|
import { formatXml, linearizeXml } from './features/xmlFormatting';
|
|
|
|
export function activate(ctx: ExtensionContext) {
|
|
// check for update
|
|
//...
|
|
|
|
// register pallete commands
|
|
ctx.subscriptions.push(commands.registerTextEditorCommand('xmltools.formatXml', formatXml));
|
|
ctx.subscriptions.push(commands.registerTextEditorCommand('xmltools.linearizeXml', linearizeXml));
|
|
} |