Update configuration sample

This commit is contained in:
Sandeep Somavarapu
2018-11-19 12:43:10 +01:00
parent 6996a68735
commit 06fcb03ae2
6 changed files with 36 additions and 27 deletions

View File

@ -0,0 +1,5 @@
{
"recommendations": [
"eg2.tslint"
]
}

View File

@ -1,6 +1,6 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
@ -17,32 +17,15 @@
],
"preLaunchTask": "npm: watch"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Extension Host",
"protocol": "legacy",
"protocol": "inspector",
"port": 5870,
"sourceMaps": true,
"restart": true,
"outFiles": [
"${workspaceRoot}/out/src/**/*.js"
"${workspaceRoot}/out/src"
]
}
]

View File

@ -7,5 +7,6 @@
"out": true // set this to false to include "out" folder in search results
},
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
"typescript.tsc.autoDetect": "off"
"typescript.tsc.autoDetect": "off",
"editor.insertSpaces": false,
}

View File

@ -11,7 +11,9 @@
"Other"
],
"activationEvents": [
"*"
"onCommand:config.commands.configureViewOnWindowOpen",
"onCommand:config.commands.configureEmptyLastLineCurrentFile",
"onCommand:config.commands.configureEmptyLastLineFiles"
],
"main": "./out/src/extension",
"keywords": [
@ -63,7 +65,8 @@
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},

View File

@ -3,9 +3,14 @@
"module": "commonjs",
"target": "es6",
"outDir": "out",
"lib": ["es6"],
"lib": [
"es6"
],
"sourceMap": true,
"rootDir": "."
"rootDir": "src"
},
"exclude": ["node_modules", ".vscode-test"]
}
"exclude": [
"node_modules",
".vscode-test"
]
}

View File

@ -0,0 +1,12 @@
{
"rules": {
"indent": [
true,
"tabs"
],
"semicolon": [
true,
"always"
]
}
}