()
| 111 | } |
| 112 | |
| 113 | public GoOffline() { |
| 114 | if (this.isServerBusy) return; |
| 115 | if (!this.IsServerRunning) { |
| 116 | this.showPopUpMsg(`Server is not already running`); |
| 117 | return; |
| 118 | } |
| 119 | this.goOfflineEvent.fire({ runningPort: this.runningPort }); |
| 120 | this.isServerBusy = true; |
| 121 | StatusbarUi.Working('Disposing...'); |
| 122 | LiveServerHelper.StopServer(this.LiveServerInstance, () => { |
| 123 | this.showPopUpMsg('Server is now offline.'); |
| 124 | this.isServerBusy = false; |
| 125 | this.ToggleStatusBar(); |
| 126 | this.LiveServerInstance = null; |
| 127 | this.runningPort = null; |
| 128 | this.previousWorkspacePath = null; |
| 129 | }); |
| 130 | } |
| 131 | |
| 132 | changeWorkspaceRoot() { |
| 133 | setOrChangeWorkspace() |
no test coverage detected