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