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(linting-ui-bug): Implemented linting clean on focus change of editor to solve linting UI issue #375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

priyakanabar-crest
Copy link
Contributor

This PR solve the stale UI marker isuse in linting

this.isFocused = true;
this.runLint = true;
if (this.view) {
this.view.dispatch({}); // Force the linter to re-run
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be necessary I think. Simply setting this.runLint to true should force the linter to rerun

this.isFocused = false;
this.runLint = true;
if (this.view) {
this.view.dispatch({}); // Force the linter to re-run
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

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