Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Update to Linter 3 + fixes the messages not being updated #82

Merged
merged 13 commits into from
Oct 25, 2020

Conversation

aminya
Copy link
Member

@aminya aminya commented Sep 27, 2020

This updates minimap-linter so it is in sync with linter 3 changes. It fixes the messages not being updated after changes.

The issue of minimap-linter was because JavaScript cannot compare complex objects well, and so Set.add(message) or Set.delete(message) do not add/delete messages! I changed the code to use Map with my custom key (message.key).

@aminya
Copy link
Member Author

aminya commented Sep 27, 2020

@Arcanemagus Could you review this?

Copy link
Member

@Arcanemagus Arcanemagus left a comment

Choose a reason for hiding this comment

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

The commits either need to be squashed into a single commit for these changes, or they need to be re-ordered so that each commit comes in a sensible order. As it stands right now you have many commits that are dependent on changes in commits that come after them.

These commits are all currently tagged with feat: when they should be fix: since nothing has actually changed with linter, this is just fixing a bug here.

Other than that these changes look good.

package.json Outdated Show resolved Hide resolved
@aminya
Copy link
Member Author

aminya commented Oct 24, 2020

The commits either need to be squashed into a single commit for these changes, or they need to be re-ordered so that each commit comes in a sensible order. As it stands right now you have many commits that are dependent on changes in commits that come after them.

These commits are all currently tagged with feat: when they should be fix: since nothing has actually changed with linter, this is just fixing a bug here.

You can squash and merge the commits with your preferred message.

image

Now that messages are being tracked separately from the marker keys they 
need to be cleared as well on disposing of the binding.
Take the repeated code for redecorating all markers and move it to a 
class function.
Remove an unused private variable, probably copied from the main 
package.
@Arcanemagus Arcanemagus merged commit 1fc677e into AtomLinter:master Oct 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants