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

Method changeWorkspaceRoot

src/appModel.ts:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131
132 changeWorkspaceRoot() {
133 setOrChangeWorkspace()
134 .then(workspaceName => {
135 if (workspaceName === undefined) return;
136 window.showInformationMessage(`Success! '${workspaceName}' workspace is now root of Live Server`);
137 // If server is running, Turn off the server.
138 if (this.IsServerRunning)
139 this.GoOffline();
140 });
141 }
142
143
144 private isCorrectWorkspace(workspacePath: string) {

Callers 1

activateFunction · 0.95

Calls 2

GoOfflineMethod · 0.95
setOrChangeWorkspaceFunction · 0.90

Tested by

no test coverage detected