(config: WorkspaceConfiguration)
| 1 | import type { WorkspaceConfiguration } from "vscode"; |
| 2 | |
| 3 | export const generateHeaders = (config: WorkspaceConfiguration) => { |
| 4 | const customHeaders = config.get("headers"); |
| 5 | if (customHeaders) { |
| 6 | return customHeaders + "\n"; |
| 7 | } |
| 8 | return [`export const headers: HeadersFunction = () => (`, ` {`, ` // your headers here`, ` }`, `);`].join("\n"); |
| 9 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected