(exampleName: string)
| 39 | } |
| 40 | |
| 41 | async open(exampleName: string) { |
| 42 | const config = await this.getConfig(exampleName); |
| 43 | |
| 44 | return sdk.openProject( |
| 45 | { |
| 46 | title: config.name, |
| 47 | description: config.description, |
| 48 | template: 'node', |
| 49 | files: { |
| 50 | ...config.files, |
| 51 | }, |
| 52 | }, |
| 53 | { |
| 54 | openFile: config.open, |
| 55 | } |
| 56 | ); |
| 57 | } |
| 58 | |
| 59 | async extractSnippet(path: string, region?: string): Promise<string> { |
| 60 | try { |
no test coverage detected