Execution test exceeds call stack size #699
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Avoid exceeding the call stack size
Opening the folder in the test leads to exceeding the call stack size, as shown below.
As far as I can see, all the tests work fine without the line. Is there something I missed?
The line has been added in this commit.
Environment
Extension host log
Debug console log
Make the cursor movement reproducible
In the original implementation, the cursor is moved 8 lines down from the current position.
However, the initial position of the cursor depends on the previous state of the editor so the cursor will be moved to line 17 on the second run.
In the changed implementation, the cursor will always move to line 9.
Note
I had to run the
npm run pack
beforeLaunch Tests
to get the entry pointout/extension.js
.