Skip to content

Commit 9e072d5

Browse files
committed
Add tooltip and executing spinner to devmode status bar item
1 parent b233e67 commit 9e072d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/terminalContrib/developer/browser/terminal.developer.contribution.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,12 @@ class DevModeContribution extends Disposable implements ITerminalContribution {
246246
const promptInputModel = commandDetection.promptInputModel;
247247
if (promptInputModel) {
248248
const name = localize('terminalDevMode', 'Terminal Dev Mode');
249+
const isExecuting = promptInputModel.cursorIndex === -1;
249250
this._statusbarEntry = {
250251
name,
251-
text: `$(terminal) ${promptInputModel.getCombinedString()}`,
252+
text: `$(${isExecuting ? 'loading~spin' : 'terminal'}) ${promptInputModel.getCombinedString()}`,
252253
ariaLabel: name,
254+
tooltip: 'The detected terminal prompt input',
253255
kind: 'prominent'
254256
};
255257
if (!this._statusbarEntryAccessor.value) {

0 commit comments

Comments
 (0)