MCPcopy
hub / github.com/foambubble/foam / getConfiguration

Function getConfiguration

packages/foam-vscode/src/test/vscode-mock.ts:1883–1897  ·  view source on GitHub ↗
(section?: string)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected