MCPcopy
hub / github.com/ritwickdey/vscode-live-server / GoOffline

Method GoOffline

src/appModel.ts:113–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()

Callers 3

changeWorkspaceRootMethod · 0.95
disposeMethod · 0.95
activateFunction · 0.95

Calls 4

showPopUpMsgMethod · 0.95
ToggleStatusBarMethod · 0.95
WorkingMethod · 0.80
StopServerMethod · 0.80

Tested by

no test coverage detected