MCPcopy
hub / github.com/dotnet/vscode-csharp / get

Function get

test/fakes.ts:67–78  ·  view source on GitHub ↗
(section: string, defaultValue?: T)

Source from the content-addressed store, hash-verified

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 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected