(action: () => Thenable<void>)
| 1141 | |
| 1142 | |
| 1143 | export async function waitForEditorChange(action: () => Thenable<void>): Promise<void> { |
| 1144 | const doc = currentDoc(); |
| 1145 | const oldVersion = doc.version; |
| 1146 | await action(); |
| 1147 | await waitFor(() => doc.version !== oldVersion, 20, 2000); |
| 1148 | await delay(1); |
| 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"); |
no test coverage detected