Skip to content

Commit

Permalink
[Add] Updated to vscode api 1.56.0 (KreativJos#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
KreativJos authored May 21, 2021
1 parent 722fb7d commit 44071d8
Show file tree
Hide file tree
Showing 9 changed files with 1,294 additions and 1,295 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
out
dist
node_modules
*.vsix
/yarn-error.log
ovsx.key
.vscode-test/
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
23 changes: 16 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,31 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/src/*"],
"preLaunchTask": "npm"
"outFiles": [
"${workspaceRoot}/out/src/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/index"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/test/*"],
"preLaunchTask": "npm"
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"search.exclude": {
"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.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
}
55 changes: 20 additions & 35 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
// 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
// A task runner that calls a custom npm script that compiles the extension.
{
"version": "2.0.0",
// we want to run npm
"command": "npm",
// the command is a shell script
// "isShellCommand": true,
"type": "shell",
// show the output window only if unrecognized errors occur.
// "showOutput": "silent",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
// we run the custom script "compile" as defined in package.json
"args": [
"run",
"compile",
"--loglevel",
"silent"
],
// The tsc compiler is started in watching mode
// "isWatching": true,
"isBackground": true,
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
6 changes: 5 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ test/**
src/**
**/*.map
.gitignore
tsconfig.json
.yarnrc
vsc-extension-quickstart.md
*.vsix
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--ignore-engines true
43 changes: 25 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"version": "1.3.6",
"publisher": "kreativ-software",
"engines": {
"vscode": "^1.42.0"
"vscode": "^1.56.0"
},
"repository": "https://github.com/kreativjos/csharpextensions",
"icon": "logo.png",
Expand Down Expand Up @@ -76,21 +76,28 @@
}
},
"scripts": {
"vscode:prepublish": "node node_modules/typescript/bin/tsc -p ./",
"compile": "node node_modules/typescript/bin/tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "mocha --require ts-node/register test/*.ts"
},
"devDependencies": {
"typescript": "^2.0.3",
"vscode": "^1.0.0",
"mocha": "^2.3.3",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32",
"ts-node": "^8.10.2"
},
"dependencies": {
"find-up-glob": "^1.0.0",
"xml2js": "^0.4.23"
}
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.56.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"eslint": "^7.19.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
},
"dependencies": {
"find-up-glob": "^1.0.0",
"xml2js": "^0.4.23"
}
}
Loading

0 comments on commit 44071d8

Please sign in to comment.