(action: () => void | Thenable<void>, timeoutSeconds?: number)
| 1149 | } |
| 1150 | |
| 1151 | export 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 | |
| 1162 | export async function getResolvedDebugConfiguration(extraConfiguration?: { program: string | undefined, [key: string]: any }): Promise<(vs.DebugConfiguration & DartLaunchArgs)> { |
| 1163 | const debugConfig: vs.DebugConfiguration = Object.assign({}, { |
no test coverage detected