question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notifications are not being handled

See original GitHub issue

As previously discussed in https://github.com/microsoft/language-server-protocol/issues/993, I have just discovered that neither connection.onDidChangeTextDocument, connection.onDidCloseTextDocument, nor connection.onDidOpenTextDocument are being run when a notification is sent (which I can observe happening with the verbose mode).

Any idea on why this might be happening? connection.onCodeAction, connection.onDidChangeConfiguration and connection.onInitialize are all working!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, May 29, 2020

@afonsojramos there is no need to use a TextDocuments instance. You can do everything yourself on the connection. The TextDocuments has some nice helper code for incremental text document updates.

0reactions
rcjsuencommented, May 28, 2020

@rcjsuen I also had the documents.all() call, but I can live without it and validate just the open document.

You can also keep the opened documents in memory and validate them if you have that requirement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 ways to fix iPhone notifications when you're not receiving them
You can fix an iPhone that's not getting notifications by restarting it or making sure notifications are turned on.
Read more >
Why Are Notification Poorly Handled, and What Can Be Done ...
Emails and Notifications Are Not the Same. Firstly, most services consider notifications and email to be the same thing.
Read more >
Notifications Not Shown - Mobile Push
Common reasons why Mobile Push notifications are not showing on your device.
Read more >
Use notifications on your iPhone or iPad - Apple Support
Go to Settings and tap Notifications. · Select an app under Notification Style. · Under Alerts, choose the alert style that you want....
Read more >
Not Getting Gmail Notifications? 10 Ways to Fix
On both Android and iOS, you can change the global setting for how notifications should be handled. It may be that it's not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found