Skip to content

Commit 34a5839

Browse files
akaromlfbricon
authored andcommitted
Add setting for revealing build status on startup
Signed-off-by: Rome Li <rome.li@microsoft.com>
1 parent bc4cd1a commit 34a5839

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@
400400
"default": true,
401401
"description": "Enable/disable Smart Selection support for Java. Disabling this option will not affect the VS Code built-in word-based and bracket-based smart selection.",
402402
"scope": "window"
403+
},
404+
"java.showBuildStatusOnStart.enabled": {
405+
"type": "boolean",
406+
"description": "Automatically show build status on startup.",
407+
"default": false,
408+
"scope": "window"
403409
}
404410
}
405411
},

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
196196
item.command = Commands.SHOW_SERVER_TASK_STATUS;
197197
item.show();
198198

199-
commands.executeCommand(Commands.SHOW_SERVER_TASK_STATUS);
199+
if (workspace.getConfiguration().get("java.showBuildStatusOnStart.enabled")) {
200+
commands.executeCommand(Commands.SHOW_SERVER_TASK_STATUS);
201+
}
200202

201203
serverStatus.initialize();
202204
serverStatus.onServerStatusChanged(status => {

0 commit comments

Comments
 (0)