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

feat(lsp): non diagnostic errors creates an alert (fixes #1629) #1680

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

gak
Copy link
Contributor

@gak gak commented Jun 6, 2024

The screenshot shows a "random error" as an alert that I injected that doesn't contain file/positional information.

image

#1629

@gak gak requested a review from wesbillman June 6, 2024 03:04
@gak gak requested review from alecthomas and a team as code owners June 6, 2024 03:04
@gak gak requested review from worstell and removed request for a team June 6, 2024 03:04
@ftl-robot ftl-robot mentioned this pull request Jun 6, 2024
for _, err := range errUnspecified {
message := fmt.Sprintf("FTL Error: %s", err)

go s.glspContext.Notify(protocol.ServerWindowShowMessage, protocol.ShowMessageParams{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh nice, that's handy!

@gak gak changed the title feat(lsp): non diagnostic errors creates an alert feat(lsp): non diagnostic errors creates an alert (fixes #1629) Jun 6, 2024
@gak gak enabled auto-merge (squash) June 7, 2024 02:41
@gak gak merged commit 90c41b9 into main Jun 7, 2024
37 checks passed
@gak gak deleted the gak/lsp-alert-errors branch June 7, 2024 02:43
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