MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / createStatusBar

Function createStatusBar

src/utils/statusBar.ts:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { generateCommand } from "./vscode";
3
4export const createStatusBar = () => {
5 const statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);
6 statusBarItem.text = "$(play) Remix Dev Tools";
7 statusBarItem.tooltip = "Click to start Remix Dev Tools";
8 statusBarItem.command = generateCommand("devTools"); // Command to be executed when the button is clicked
9 // Simulating a state change (e.g., button is running)
10
11 return statusBarItem;
12};
13
14export const setStatusBarToRunning = (statusBarItem: vscode.StatusBarItem) => {
15 statusBarItem.text = "$(stop) Remix Dev Tools";

Callers 1

activateFunction · 0.90

Calls 1

generateCommandFunction · 0.90

Tested by

no test coverage detected