* Removes single-line JSON comments (// ...) from a string to allow parsing * VS Code style JSON files that may contain comments.
(content: string)
| 39 | * VS Code style JSON files that may contain comments. |
| 40 | */ |
| 41 | function stripJsonComments(content: string): string { |
| 42 | // Remove single-line comments (// ...) |
| 43 | return content.replace(/^\s*\/\/.*$/gm, ''); |
| 44 | } |
| 45 | |
| 46 | export interface TerminalSetupResult { |
| 47 | success: boolean; |
no outgoing calls
no test coverage detected