()
| 2 | import { generateCommand } from "./vscode"; |
| 3 | |
| 4 | export 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 | |
| 14 | export const setStatusBarToRunning = (statusBarItem: vscode.StatusBarItem) => { |
| 15 | statusBarItem.text = "$(stop) Remix Dev Tools"; |
no test coverage detected