| 1881 | }, |
| 1882 | |
| 1883 | getConfiguration(section?: string): WorkspaceConfiguration { |
| 1884 | if (section) { |
| 1885 | // Return a scoped configuration for the specific section |
| 1886 | const scopedConfig = new MockWorkspaceConfiguration(); |
| 1887 | // Copy relevant config values that start with the section |
| 1888 | for (const [key, value] of (mockState.configuration as any)._config) { |
| 1889 | if (key.startsWith(`${section}.`)) { |
| 1890 | const sectionKey = key.substring(section.length + 1); |
| 1891 | (scopedConfig as any)._config.set(sectionKey, value); |
| 1892 | } |
| 1893 | } |
| 1894 | return scopedConfig; |
| 1895 | } |
| 1896 | return mockState.configuration; |
| 1897 | }, |
| 1898 | |
| 1899 | async findFiles( |
| 1900 | include: string, |