( wsp: typeof workspace, key: K, folder?: WorkspaceFolder, )
| 176 | * Typed guard for reading a contributed config. |
| 177 | */ |
| 178 | export const readConfig = <K extends keyof IConfigurationTypes>( |
| 179 | wsp: typeof workspace, |
| 180 | key: K, |
| 181 | folder?: WorkspaceFolder, |
| 182 | ) => wsp.getConfiguration(undefined, folder).get<IConfigurationTypes[K]>(key); |
| 183 | |
| 184 | /** |
| 185 | * Typed guard for updating a contributed config. |
no test coverage detected