(command: string, ...args: any[])
| 645 | |
| 646 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 647 | export function makeWebviewCommandUriString(command: string, ...args: any[]): string { |
| 648 | const argString = encodeURIComponent(JSON.stringify(args)); |
| 649 | return `command:${command}?${argString}`; |
| 650 | } |
| 651 | |
| 652 | // Tries to read a file, returns undefined if an error occurs (e.g. the file does not exist) |
| 653 | export function readFileSyncSafe( |