Skip to content

fix: state collision #4881

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

Merged
merged 10 commits into from
Feb 22, 2022
Merged

fix: state collision #4881

merged 10 commits into from
Feb 22, 2022

Conversation

code-asher
Copy link
Member

VS Code names their databases after the workspace but if two workspaces share the same path (for example if they are on different virtual machines) but they share the same domain (since IndexedDB is scoped to domain) then those two states will have a naming collision.

Blocked on coder/vscode#46.

This has problems similar to the menu except instead of closing it gets
re-created which interrupts the hover call and causes the test to fail.
Now it will keep trying just like the menu.
@code-asher code-asher changed the title Fix state collision fix: state collision Feb 17, 2022
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@23734d3). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 6e0d301 differs from pull request most recent head b48cb87. Consider uploading reports for the commit b48cb87 to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4881   +/-   ##
=======================================
  Coverage        ?   69.79%           
=======================================
  Files           ?       29           
  Lines           ?     1649           
  Branches        ?      363           
=======================================
  Hits            ?     1151           
  Misses          ?      424           
  Partials        ?       74           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23734d3...b48cb87. Read the comment docs.

@code-asher code-asher marked this pull request as ready for review February 18, 2022 19:42
@code-asher code-asher requested a review from a team February 18, 2022 19:42
@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 18, 2022

Docs preview should be fixed: just waiting on a review for this 😉 #4875

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@code-asher code-asher merged commit f9402a6 into coder:main Feb 22, 2022
@code-asher code-asher deleted the state-collision branch February 22, 2022 18:43
TinLe pushed a commit to TinLe/code-server that referenced this pull request Apr 23, 2022
* Add helper for navigating the quick picker

This has problems similar to the menu except instead of closing it gets
re-created which interrupts the hover call and causes the test to fail.
Now it will keep trying just like the menu.

* Add a test for opening a file

* Add test for colliding state

* Update VS Code

This contains the colliding state fix.
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.

2 participants