adds optional appReadyMessage property to RunAppOptions and DebugAppOptions
specify an appReadyMessage of 'Application startup complete' for FastAPI and Shiny apps, which leverage uvicorn and output that message when the app is ready
delete empty DebugConfiguration object from the positron-run-app.d.ts files, as I think they are unused?
modified the logging level in api.ts for a few messages
previewUrlInExecutionOutput now checks for both the app url and the appReadyMessage if provided,
an app is considered ready if:
the appReadyMessage was not provided and the app url has been matched; or
the appReadyMessage was provided and matched, and the app url has been matched
if the appReadyMessage was provided but not matched, and the app url has been matched, we'll time out of the raceTimeout, but the url will have been matched, so we'll still try to open the app in the Viewer
QA Notes
I've renabled Python - Verify Basic FastAPI App [C903306] which now passes
Implementation Notes
appReadyMessage
property toRunAppOptions
andDebugAppOptions
appReadyMessage
of'Application startup complete'
for FastAPI and Shiny apps, which leverage uvicorn and output that message when the app is readyDebugConfiguration
object from thepositron-run-app.d.ts
files, as I think they are unused?api.ts
for a few messagespreviewUrlInExecutionOutput
now checks for both the app url and theappReadyMessage
if provided,appReadyMessage
was not provided and the app url has been matched; orappReadyMessage
was provided and matched, and the app url has been matchedappReadyMessage
was provided but not matched, and the app url has been matched, we'll time out of theraceTimeout
, but the url will have been matched, so we'll still try to open the app in the ViewerQA Notes
Python - Verify Basic FastAPI App [C903306]
which now passes