Add play/debug buttons to editor title bar for single file debugging (#856)
* Add play/debug buttons to editor title bar for single file debugging Signed-off-by: Jinbo Wang <jinbwan@microsoft.com> * address review comments Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
This commit is contained in:
parent
d5d85a65f2
commit
68b012bc68
|
@ -5,4 +5,5 @@ node_modules
|
||||||
.vscode-test/
|
.vscode-test/
|
||||||
vscode-java-debug-*.vsix
|
vscode-java-debug-*.vsix
|
||||||
packages/
|
packages/
|
||||||
dist
|
dist
|
||||||
|
.DS_Store
|
|
@ -17,4 +17,5 @@ tslint.json
|
||||||
packages
|
packages
|
||||||
package-lock.json
|
package-lock.json
|
||||||
node_modules
|
node_modules
|
||||||
webpack.config.js
|
webpack.config.js
|
||||||
|
.DS_Store
|
|
@ -49,9 +49,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/vscode": {
|
"@types/vscode": {
|
||||||
"version": "1.42.0",
|
"version": "1.47.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.42.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.47.0.tgz",
|
||||||
"integrity": "sha512-ds6TceMsh77Fs0Mq0Vap6Y72JbGWB8Bay4DrnJlf5d9ui2RSe1wis13oQm+XhguOeH1HUfLGzaDAoupTUtgabw==",
|
"integrity": "sha512-nJA37ykkz9FYA0ZOQUSc3OZnhuzEW2vUhUEo4MiduUo82jGwwcLfyvmgd/Q7b0WrZAAceojGhZybg319L24bTA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@webassemblyjs/ast": {
|
"@webassemblyjs/ast": {
|
||||||
|
|
22
package.json
22
package.json
|
@ -14,7 +14,7 @@
|
||||||
"debugger"
|
"debugger"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.42.0"
|
"vscode": "^1.47.3"
|
||||||
},
|
},
|
||||||
"license": "SEE LICENSE IN LICENSE.txt",
|
"license": "SEE LICENSE IN LICENSE.txt",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -60,11 +60,13 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "java.debug.runJavaFile",
|
"command": "java.debug.runJavaFile",
|
||||||
"title": "Run"
|
"title": "Run",
|
||||||
|
"icon": "$(play)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "java.debug.debugJavaFile",
|
"command": "java.debug.debugJavaFile",
|
||||||
"title": "Debug"
|
"title": "Debug",
|
||||||
|
"icon": "$(debug-alt-small)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "java.debug.continueAll",
|
"command": "java.debug.continueAll",
|
||||||
|
@ -108,6 +110,18 @@
|
||||||
"group": "javadebug@2"
|
"group": "javadebug@2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"editor/title": [
|
||||||
|
{
|
||||||
|
"command": "java.debug.runJavaFile",
|
||||||
|
"when": "resourceExtname == .java",
|
||||||
|
"group": "1_run@10"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "java.debug.debugJavaFile",
|
||||||
|
"when": "resourceExtname == .java",
|
||||||
|
"group": "1_run@20"
|
||||||
|
}
|
||||||
|
],
|
||||||
"debug/toolBar": [
|
"debug/toolBar": [
|
||||||
{
|
{
|
||||||
"command": "java.debug.hotCodeReplace",
|
"command": "java.debug.hotCodeReplace",
|
||||||
|
@ -686,7 +700,7 @@
|
||||||
"@types/lodash": "^4.14.137",
|
"@types/lodash": "^4.14.137",
|
||||||
"@types/mocha": "^5.2.7",
|
"@types/mocha": "^5.2.7",
|
||||||
"@types/node": "^8.10.51",
|
"@types/node": "^8.10.51",
|
||||||
"@types/vscode": "1.42.0",
|
"@types/vscode": "1.47.0",
|
||||||
"cross-env": "^5.2.0",
|
"cross-env": "^5.2.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-tslint": "^8.1.4",
|
"gulp-tslint": "^8.1.4",
|
||||||
|
|
Loading…
Reference in New Issue