(mode: WidgetMode, kind: ToolWidgetKind)
| 113 | } |
| 114 | |
| 115 | function 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 | |
| 126 | function toolWidgetDescriptorMeta( |
| 127 | config: ServerConfig, |
no outgoing calls
no test coverage detected