Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Notify running LS about build complete. #33

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
kittaakos merged 1 commit into arduino:main from kittaakos:arduino/arduino-ide#714
Jul 11, 2022

Conversation

Copy link
Contributor

@kittaakos kittaakos commented Jul 11, 2022

New:

Ref: arduino/arduino-ide#714

Signed-off-by: Akos Kitta a.kitta@arduino.cc

Ref: arduino/arduino-ide#714
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Copy link
Contributor

@fstasi fstasi left a comment

Choose a reason for hiding this comment

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

one minor comment, lgtm

} catch (e) {
console.log(e);
} catch (err) {
console.error('Failed to start the language server.',err);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you prefer the console.error over the showError function?

Copy link
Contributor Author

@kittaakos kittaakos Jul 11, 2022

Choose a reason for hiding this comment

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

Good question; the original code does not show the error if the LS failed to start. I did not want to change this behavior, but I could do it.

Note, if we use vscode.window.showErrorMessage here, it will be a notification message in IDE2.

Copy link
Contributor Author

@kittaakos kittaakos Jul 11, 2022

Choose a reason for hiding this comment

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

The only effective change here is that I use console.error instead of console.log with an additional Failed to start the language server. message.

fstasi reacted with thumbs up emoji
@kittaakos kittaakos merged commit adf7831 into arduino:main Jul 11, 2022
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@fstasi fstasi fstasi approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /