(state: State)
| 211 | } |
| 212 | |
| 213 | function updateStatusBar(state: State): void { |
| 214 | switch (state) { |
| 215 | case State.Running: |
| 216 | showStatusBar("$(check) Smali LSP", "Smali Language Server ready"); |
| 217 | break; |
| 218 | case State.Starting: |
| 219 | showStatusBar( |
| 220 | "$(sync~spin) Smali: Starting...", |
| 221 | "Starting Smali Language Server", |
| 222 | ); |
| 223 | break; |
| 224 | case State.Stopped: |
| 225 | if (statusBarItem) { |
| 226 | statusBarItem.dispose(); |
| 227 | statusBarItem = undefined; |
| 228 | } |
| 229 | break; |
| 230 | } |
| 231 | } |
no test coverage detected