Skip to content

GH-13: Forbid parallel LS-start command execution. #23

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 1 commit into from
Feb 18, 2021

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Feb 18, 2021

From now on, a port change won't trigger LS start.

Closes #13.

Signed-off-by: Akos Kitta [email protected]

From now on, a port change won't trigger LS start.

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos requested review from ubidefeo and rsora February 18, 2021 13:00
@kittaakos
Copy link
Contributor Author

I have fixed the LS start problem. Please review. There is a noteworthy change, the LS won't restart if the FQBN of the selected is the same as it was. For instance, when uploading to the MKR1000 on Windows, the port changes from COM5 to none, then COM6, finally back to COM5. The LS does not restart in such cases. Also, previously one could trigger an LS restart by reselecting the same board; this is not supported anymore. If we need a (force) restart action for whatever reason, we need to implement it as part of a separate task.

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

I was able to consistently reproduce #13 before this change and I am not able to reproduce #13 after this change.

Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

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

Works for me too. 👍

Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

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

Excellent! Tested and working, nice job 👍

@kittaakos kittaakos merged commit df0aafd into main Feb 18, 2021
@kittaakos kittaakos deleted the gh-13--ls-start-issue branch February 18, 2021 19:38
@kittaakos
Copy link
Contributor Author

Thank you for the reviews 🙏

@per1234 per1234 added the topic: code Related to content of the project itself label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language Server crashes on Windows after code upload and related board COM port re-assignment
4 participants