(config: WorkspaceConfiguration)
| 1 | import type { WorkspaceConfiguration } from "vscode"; |
| 2 | |
| 3 | export const generateClientAction = (config: WorkspaceConfiguration) => { |
| 4 | const customClientAction = config.get("clientAction"); |
| 5 | if (customClientAction) { |
| 6 | return `${customClientAction}\n`; |
| 7 | } |
| 8 | return [ |
| 9 | "export const clientAction = async ({ request }: ClientActionFunctionArgs) => {", |
| 10 | " return null;", |
| 11 | "};", |
| 12 | ].join("\n"); |
| 13 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected