MCPcopy Index your code
hub / github.com/Waishnav/devspace / shouldAttachWidget

Function shouldAttachWidget

src/server.ts:115–124  ·  view source on GitHub ↗
(mode: WidgetMode, kind: ToolWidgetKind)

Source from the content-addressed store, hash-verified

113}
114
115function shouldAttachWidget(mode: WidgetMode, kind: ToolWidgetKind): boolean {
116 switch (mode) {
117 case "off":
118 return false;
119 case "changes":
120 return kind === "workspace" || kind === "show_changes";
121 case "full":
122 return true;
123 }
124}
125
126function toolWidgetDescriptorMeta(
127 config: ServerConfig,

Callers 1

toolWidgetDescriptorMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected