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

Function getVSCodeWithConfig

test/fakes.ts:330–338  ·  view source on GitHub ↗
(vscodeAdapter: vscode.vscode = getFakeVsCode())

Source from the content-addressed store, hash-verified

328}
329
330export function getVSCodeWithConfig(vscodeAdapter: vscode.vscode = getFakeVsCode()) {
331 const _vscodeAdapterConfig = getWorkspaceConfiguration();
332
333 vscodeAdapter.workspace.getConfiguration = (_section, _resource) => {
334 return _vscodeAdapterConfig;
335 };
336
337 return vscodeAdapter;
338}
339
340export async function updateConfig(
341 vscode: vscode.vscode,

Callers 3

resetMocksFunction · 0.90
resetMocksFunction · 0.90

Calls 2

getFakeVsCodeFunction · 0.85

Tested by 2

resetMocksFunction · 0.72
resetMocksFunction · 0.72