This is in preparation for writing unit tests for the runtime session service since I intend on making changes to it for #2671.
The main addition is the positronWorkbenchInstantiationService function, which sets up a test instantiation service with a bunch of test dummies, following upstream's workbenchInstantiationService function. I also refactored our existing unit tests to use the new function.
QA Notes
Positron unit tests should pass. They can be run locally with:
./scripts/test-positron.sh
There are a few minor code changes to runtime-related code, mainly to fix leaked disposables, which could use a review.
This is in preparation for writing unit tests for the runtime session service since I intend on making changes to it for #2671.
The main addition is the
positronWorkbenchInstantiationService
function, which sets up a test instantiation service with a bunch of test dummies, following upstream'sworkbenchInstantiationService
function. I also refactored our existing unit tests to use the new function.QA Notes
Positron unit tests should pass. They can be run locally with: