Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Ensure konveyor file system resources are resolved during session restore #275

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

ibolton336
Copy link
Member

@ibolton336 ibolton336 commented Jan 24, 2025

Resolves #185

When a user closes VS Code with open tabs that reference resources from our custom file system (konveyorMemFs or konveyorReadOnly), those tabs fail to load on the next startup. This is because our extension does not activate automatically on VS Code startup or when restoring those resources. Instead, the extension only activates when the user interacts with the sidebar, leading to errors such as:

"The editor could not be opened due to an unexpected error: Unable to resolve resource konveyorReadOnly:/path/to/resource"

Fix:

We added activationEvents to package.json to ensure the extension activates automatically when resources using our custom schemes (konveyorMemFs and konveyorReadOnly) are accessed. This ensures that the file system provider is registered and available before VS Code attempts to restore such resources.

@ibolton336 ibolton336 requested a review from a team as a code owner January 24, 2025 18:05
… resolved during session restore

Signed-off-by: Ian Bolton <[email protected]>
@ibolton336 ibolton336 force-pushed the memfs-initialization branch from 2d3fc78 to ce3a2bd Compare January 24, 2025 18:05
@ibolton336 ibolton336 changed the title 🐛 Ensure konveyo file system resources are resolved during session restore 🐛 Ensure konveyor file system resources are resolved during session restore Jan 24, 2025
@ibolton336 ibolton336 merged commit d580e45 into konveyor:main Jan 25, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] If VsCode is restarted, the extension displays an error when trying to reload the suggestion
2 participants