diff --git a/configuration-sample/.vscode/extensions.json b/configuration-sample/.vscode/extensions.json new file mode 100644 index 00000000..607e9e52 --- /dev/null +++ b/configuration-sample/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "eg2.tslint" + ] +} \ No newline at end of file diff --git a/configuration-sample/.vscode/launch.json b/configuration-sample/.vscode/launch.json index d0aa1a18..9b05b66b 100644 --- a/configuration-sample/.vscode/launch.json +++ b/configuration-sample/.vscode/launch.json @@ -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" ] } ] diff --git a/configuration-sample/.vscode/settings.json b/configuration-sample/.vscode/settings.json index 66ed94c5..c89394a5 100644 --- a/configuration-sample/.vscode/settings.json +++ b/configuration-sample/.vscode/settings.json @@ -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, } \ No newline at end of file diff --git a/configuration-sample/package.json b/configuration-sample/package.json index 6e4039cb..7cd8f65a 100644 --- a/configuration-sample/package.json +++ b/configuration-sample/package.json @@ -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" }, diff --git a/configuration-sample/tsconfig.json b/configuration-sample/tsconfig.json index 384ad19e..f782f289 100644 --- a/configuration-sample/tsconfig.json +++ b/configuration-sample/tsconfig.json @@ -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" + ] +} \ No newline at end of file diff --git a/configuration-sample/tslint.json b/configuration-sample/tslint.json new file mode 100644 index 00000000..522458b3 --- /dev/null +++ b/configuration-sample/tslint.json @@ -0,0 +1,12 @@ +{ + "rules": { + "indent": [ + true, + "tabs" + ], + "semicolon": [ + true, + "always" + ] + } +} \ No newline at end of file