(section: string, defaultValue?: T)
| 65 | |
| 66 | const configuration: vscode.WorkspaceConfiguration = { |
| 67 | get<T>(section: string, defaultValue?: T): T | undefined { |
| 68 | const result = values[section]; |
| 69 | if (result?.globalValue !== undefined) { |
| 70 | return result.globalValue; |
| 71 | } else if (result?.workspaceValue !== undefined) { |
| 72 | return result.workspaceValue; |
| 73 | } else if (result?.workspaceFolderValue !== undefined) { |
| 74 | return result.workspaceFolderValue; |
| 75 | } else { |
| 76 | return defaultValue; |
| 77 | } |
| 78 | }, |
| 79 | has: (section: string) => { |
| 80 | return values[section] !== undefined; |
| 81 | }, |
nothing calls this directly
no outgoing calls
no test coverage detected