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

Refactor - Syntax: Move theme / configuration to subscription #1626

Merged
merged 4 commits into from
Apr 17, 2020

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Apr 17, 2020

#1613 exposed a timing issue with the server (because the syntax server starts later than it did in the prior strategy) - we'd lose the theme and configuration events because they'd be sent before initialization.

A more robust strategy, and in-line with the ultimate goal of removing the SyntaxStoreConnector and having it purely be pure-buffer based subscriptions, is to move the theme and configuration info into the subscription. This way, we can handle the synchronization as a detail in the subscription - the consumer just pushes the theme/configuration and the subscription handles the synchronization, which is simpler to work with and manage for the consumer, as well as solving that particular timing issue in #1613.

@bryphe bryphe merged commit 6721324 into master Apr 17, 2020
@bryphe bryphe deleted the refactor/syntax/theme-config-effect branch April 17, 2020 18:50
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.

1 participant