MCPcopy
hub / github.com/wavetermdev/waveterm / createWindowForWorkspace

Function createWindowForWorkspace

emain/emain-window.ts:686–696  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

684}
685
686export async function createWindowForWorkspace(workspaceId: string) {
687 const newWin = await WindowService.CreateWindow(null, workspaceId);
688 if (!newWin) {
689 console.log("error creating new window", this.waveWindowId);
690 }
691 const newBwin = await createBrowserWindow(newWin, await RpcApi.GetFullConfigCommand(ElectronWshClient), {
692 unamePlatform,
693 isPrimaryStartupWindow: false,
694 });
695 newBwin.show();
696}
697
698// note, this does not *show* the window.
699// to show, await win.readyPromise and then win.show()

Callers 2

switchWorkspaceMethod · 0.85
createWorkspaceFunction · 0.85

Calls 3

createBrowserWindowFunction · 0.85
GetFullConfigCommandMethod · 0.65
CreateWindowMethod · 0.45

Tested by

no test coverage detected