MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getWebContentsByWorkspaceOrBuilderId

Function getWebContentsByWorkspaceOrBuilderId

emain/emain-menu.ts:408–420  ·  view source on GitHub ↗
(workspaceOrBuilderId: string)

Source from the content-addressed store, hash-verified

406}
407
408function getWebContentsByWorkspaceOrBuilderId(workspaceOrBuilderId: string): electron.WebContents {
409 const ww = getWaveWindowByWorkspaceId(workspaceOrBuilderId);
410 if (ww) {
411 return ww.activeTabView?.webContents;
412 }
413
414 const bw = getBuilderWindowById(workspaceOrBuilderId);
415 if (bw) {
416 return bw.webContents;
417 }
418
419 return null;
420}
421
422function convertMenuDefArrToMenu(
423 webContents: electron.WebContents,

Callers 2

makeFullAppMenuFunction · 0.85
emain-menu.tsFile · 0.85

Calls 2

getBuilderWindowByIdFunction · 0.90

Tested by

no test coverage detected