MCPcopy
hub / github.com/srcbookdev/srcbook / mount

Function mount

packages/web/src/components/cells/hover.ts:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 return {
52 dom: tooltipContainer,
53 mount() {
54 channel.on('tsserver:cell:quickinfo:response', callback);
55 channel.push('tsserver:cell:quickinfo:request', {
56 cellId: cell.id,
57 request: { location: mapCMLocationToTsServer(cell.source, pos) },
58 });
59 },
60 destroy() {
61 channel.off('tsserver:cell:quickinfo:response', callback);
62 },

Callers

nothing calls this directly

Calls 3

mapCMLocationToTsServerFunction · 0.90
onMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected