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

fix: don't throw unhandled errors in TabstopManager when EditSession becomes undefined #5193

Merged

Conversation

andredcoliveira
Copy link
Contributor

Issue #, if available:

  • N/A

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Jun 5, 2023

Codecov Report

Patch coverage: 97.02% and project coverage change: -0.01 ⚠️

Comparison is base (6bebb4e) 87.13% compared to head (77792d5) 87.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5193      +/-   ##
==========================================
- Coverage   87.13%   87.13%   -0.01%     
==========================================
  Files         564      564              
  Lines       45021    45031      +10     
  Branches     6909     6908       -1     
==========================================
+ Hits        39229    39236       +7     
- Misses       5792     5795       +3     
Flag Coverage Δ
unittests 87.13% <97.02%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/keyboard/hash_handler.js 87.41% <93.54%> (-1.02%) ⬇️
src/snippets.js 86.84% <97.54%> (-0.17%) ⬇️
src/snippets_test.js 99.58% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nightwing
Copy link
Member

The issue seems to go deeper, because now if user expands a snippet, and then changes the session by changing tabs, the markers stay stuck in the old session, i think we need to keep both editor and session as properties, and either clear or restore tabstops when switching sessions.

@nightwing nightwing force-pushed the tabstop_unhandled_errors branch from 00b22f8 to 62b044b Compare June 6, 2023 11:43
Copy link
Contributor Author

@andredcoliveira andredcoliveira left a comment

Choose a reason for hiding this comment

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

Thanks for the additions, @nightwing! They look good to me, but I can't approve since I'm the author of the PR

@InspiredGuy InspiredGuy merged commit cd55932 into ajaxorg:master Jun 7, 2023
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.

3 participants