Skip to content

Commit 68b012b

Browse files
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 <[email protected]> * address review comments Signed-off-by: Jinbo Wang <[email protected]>
1 parent d5d85a6 commit 68b012b

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_modules
55
.vscode-test/
66
vscode-java-debug-*.vsix
77
packages/
8-
dist
8+
dist
9+
.DS_Store

.vscodeignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ tslint.json
1717
packages
1818
package-lock.json
1919
node_modules
20-
webpack.config.js
20+
webpack.config.js
21+
.DS_Store

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+18-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"debugger"
1515
],
1616
"engines": {
17-
"vscode": "^1.42.0"
17+
"vscode": "^1.47.3"
1818
},
1919
"license": "SEE LICENSE IN LICENSE.txt",
2020
"repository": {
@@ -60,11 +60,13 @@
6060
},
6161
{
6262
"command": "java.debug.runJavaFile",
63-
"title": "Run"
63+
"title": "Run",
64+
"icon": "$(play)"
6465
},
6566
{
6667
"command": "java.debug.debugJavaFile",
67-
"title": "Debug"
68+
"title": "Debug",
69+
"icon": "$(debug-alt-small)"
6870
},
6971
{
7072
"command": "java.debug.continueAll",
@@ -108,6 +110,18 @@
108110
"group": "javadebug@2"
109111
}
110112
],
113+
"editor/title": [
114+
{
115+
"command": "java.debug.runJavaFile",
116+
"when": "resourceExtname == .java",
117+
"group": "1_run@10"
118+
},
119+
{
120+
"command": "java.debug.debugJavaFile",
121+
"when": "resourceExtname == .java",
122+
"group": "1_run@20"
123+
}
124+
],
111125
"debug/toolBar": [
112126
{
113127
"command": "java.debug.hotCodeReplace",
@@ -686,7 +700,7 @@
686700
"@types/lodash": "^4.14.137",
687701
"@types/mocha": "^5.2.7",
688702
"@types/node": "^8.10.51",
689-
"@types/vscode": "1.42.0",
703+
"@types/vscode": "1.47.0",
690704
"cross-env": "^5.2.0",
691705
"gulp": "^4.0.2",
692706
"gulp-tslint": "^8.1.4",

0 commit comments

Comments
 (0)