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

Function waitForNextAnalysis

src/test/helpers.ts:1151–1160  ·  view source on GitHub ↗
(action: () => void | Thenable<void>, timeoutSeconds?: number)

Source from the content-addressed store, hash-verified

1149}
1150
1151export async function waitForNextAnalysis(action: () => void | Thenable<void>, timeoutSeconds?: number): Promise<void> {
1152 logger.info("Waiting for any in-progress analysis to complete");
1153 await privateApi.currentAnalysis();
1154 // Get a new completer for the next analysis.
1155 const nextAnalysis = privateApi.nextAnalysis();
1156 logger.info("Running requested action");
1157 await action();
1158 logger.info(`Waiting for analysis to complete`);
1159 await withTimeout(nextAnalysis, "Analysis did not complete within specified timeout", timeoutSeconds);
1160}
1161
1162export async function getResolvedDebugConfiguration(extraConfiguration?: { program: string | undefined, [key: string]: any }): Promise<(vs.DebugConfiguration & DartLaunchArgs)> {
1163 const debugConfig: vs.DebugConfiguration = Object.assign({}, {

Callers 3

add.test.tsFile · 0.90

Calls 2

withTimeoutFunction · 0.90
infoMethod · 0.65

Tested by

no test coverage detected