Debug Configs

This commit is contained in:
Josh Johnson 2015-11-22 01:48:40 -05:00
parent 704f6c9a36
commit 30e8222717
4 changed files with 49 additions and 1 deletions

18
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "out",
"preLaunchTask": "npm"
}
]
}

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.js": {"when": "$(basename).ts"}
}
}

17
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,17 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"showOutput": "silent",
"args": ["run", "compile"],
"isWatching": true,
"problemMatcher": "$tsc-watch"
}

View File

@ -1,7 +1,12 @@
'use strict';
import { ExtensionContext } from 'vscode';
import { commands, ExtensionContext } from 'vscode';
import { formatXml } from './features/xmlFormatting';
export function activate(ctx: ExtensionContext) {
// check for update
//...
// register pallete commands
ctx.subscriptions.push(commands.registerTextEditorCommand('xmltools.formatXml', formatXml));
}