Repository navigation
Fix Quick Query without an open workspace - #4508
Draft
hugosmoreira wants to merge 3 commits into
Draft
hugosmoreira wants to merge 3 commits into
hugosmoreira wants to merge 3 commits into
Conversation
Author
|
Hi, could a maintainer approve the workflows for this PR when convenient? The updated head is 2fdf8a3, and all four workflow runs are currently marked action_required. I've updated the PR description with the local verification: four focused unit tests and eleven related VS Code integration tests pass, as do build, packaging and lint. The one Windows full-unit failure also reproduces on unchanged upstream. I've left the PR in draft pending CI. Thanks! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Why
Without an open workspace,
ExtensionContext.storageUriis undefined. Quick Query currently throwsWorkspace storage path is undefinedbefore reaching its intended guidance. This fallback lets that guidance appear; it does not remove the existing multi-root-workspace reload requirement or change query execution.Fixes #1415.
Validation
Merged current
mainat9b5f712into the draft branch. The five Quick Query files remain the complete diff against that base. Local checks used Windows, Node 22.23.5, and the locked dependencies.Workspace storage path is undefinedon unchangedmainwith only the regression test copied in. The same test passed on the merged branch in VS Code 1.147.0 and verified the existing warning and both choices.FOLDER~1fixture failure. Unchangedmainhad 663 passes and the same failure under the same runtime and lockfile.The warning test cancels the prompt. The post-reload path, CLI integration suites, Linux, and macOS were outside this local verification.
AI assistance: Codex assisted with implementation, test development and verification.