-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fix file close in workspace service for Linux #1902
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha, I remember seeing this bug and just forgetting to fix it. Thank you so much 😄
Should PowerShellEditorServices/src/PowerShellEditorServices/Services/TextDocument/ScriptFile.cs Lines 35 to 40 in 0b96dae
Looks like it's only used internally atm which could use the same helper, but I guess we'd want a public PowerShellEditorServices/src/PowerShellEditorServices/Services/Workspace/WorkspaceService.cs Lines 306 to 326 in 0b96dae
|
Initially hoped it would improve symbol search perf by not keeping to many files opened in the service, but it won't. Apparently there are many ways files get opened but only closing them in editor will trigger |
I'm getting tempted to skip |
PR Summary
Use a consistent dictionary key for CRUD operations in
WorkspaceService.workspaceFiles
PR Context
Fix #1901