MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / ensureServiceExtensionValue

Function ensureServiceExtensionValue

src/test/debug_helpers.ts:386–389  ·  view source on GitHub ↗
(id: VmServiceExtension, expected: unknown, dc: DartDebugClient)

Source from the content-addressed store, hash-verified

384}
385
386export async function ensureServiceExtensionValue(id: VmServiceExtension, expected: unknown, dc: DartDebugClient) {
387 const value = await privateApi.debugCommands.vmServices.getCurrentServiceExtensionValue(dc.currentSession, id);
388 assert.equal(value, expected);
389}
390
391export function sdkPathForFile(file: string) {
392 return path.join(privateApi.workspaceContext.sdks.dart, isWin ? file.replace(/\//g, "\\") : file);

Callers 1

Calls 1

Tested by

no test coverage detected