diff --git a/completions-sample/.vscode/extensions.json b/completions-sample/.vscode/extensions.json new file mode 100644 index 00000000..ee71911b --- /dev/null +++ b/completions-sample/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "eg2.tslint" + ] +} \ No newline at end of file diff --git a/completions-sample/.vscode/launch.json b/completions-sample/.vscode/launch.json new file mode 100644 index 00000000..e9e60976 --- /dev/null +++ b/completions-sample/.vscode/launch.json @@ -0,0 +1,22 @@ +// A launch configuration that compiles the extension and then opens it inside a new window +// Use IntelliSense to learn about possible attributes. +// Hover to view descriptions of existing attributes. +// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: watch" + } + ] +} diff --git a/completions-sample/.vscode/settings.json b/completions-sample/.vscode/settings.json new file mode 100644 index 00000000..e46111f1 --- /dev/null +++ b/completions-sample/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.insertSpaces": false +} \ No newline at end of file diff --git a/completions-sample/.vscode/tasks.json b/completions-sample/.vscode/tasks.json new file mode 100644 index 00000000..241aa6d9 --- /dev/null +++ b/completions-sample/.vscode/tasks.json @@ -0,0 +1,20 @@ +// See https://go.microsoft.com/fwlink/?LinkId=733558 +// for the documentation about the tasks.json format +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/completions-sample/package.json b/completions-sample/package.json index 190c8299..03a498ce 100644 --- a/completions-sample/package.json +++ b/completions-sample/package.json @@ -21,10 +21,10 @@ ], "main": "./out/extension", "scripts": { - "vscode:prepublish": "tsc -p ./", - "compile": "tsc -watch -p ./", - "postinstall": "node ./node_modules/vscode/bin/install", - "tslint": "tslint -c tslint.json src/extension.ts" + "vscode:prepublish": "npm run compile", + "compile": "tsc -p ./", + "watch": "tsc -watch -p ./", + "postinstall": "node ./node_modules/vscode/bin/install" }, "devDependencies": { "typescript": "^2.1.4", diff --git a/completions-sample/tsconfig.json b/completions-sample/tsconfig.json index 43668414..c67e69b2 100644 --- a/completions-sample/tsconfig.json +++ b/completions-sample/tsconfig.json @@ -1,11 +1,16 @@ { "compilerOptions": { "module": "commonjs", - "target": "es5", + "target": "es6", "outDir": "out", - "lib": ["es6"], + "lib": [ + "es6" + ], "sourceMap": true, "rootDir": "src" }, - "exclude": ["node_modules"] + "exclude": [ + "node_modules", + ".vscode-test" + ] } diff --git a/completions-sample/tslint.json b/completions-sample/tslint.json new file mode 100644 index 00000000..0ab0ca6e --- /dev/null +++ b/completions-sample/tslint.json @@ -0,0 +1,6 @@ +{ + "rules": { + "indent": [true, "tabs"], + "semicolon": [true, "always"] + } +} \ No newline at end of file