Skip to content

Enable delayOpenNotifications=true with LSP client vNext to prevent redundant didOpen/didClose notifications to server #5176

Description

@DanTup

See microsoft/vscode-languageserver-node#848 (comment)

textSynchronization: {
	delayOpenNotifications: true,
},

This will prevent redundant didOpen/didClose events being sent from VS Code to the LSP server when holding Ctrl and hovering over something (which triggers some work for the open file, such as sending outline notifications etc.).

Activity

  1. added this to the On Deck milestone on Jul 8, 2024
  2. added a commit that references this issue on Jul 8, 2024
  3. modified the milestones: On Deck, v3.104.0 on Nov 26, 2024
  4. modified the milestones: v3.104.0, On Deck on Dec 3, 2024
  5. modified the milestones: On Deck, v3.108.0 on Feb 17, 2025
  6. modified the milestones: v3.108.0, On Deck on Mar 5, 2025
  7. 7 remaining items

  8. DanTup commented on Dec 9, 2025

    @DanTup
    MemberAuthor

    This appears to have caused a bug where open notifications will have "future" versions of the content when a file is created from a code action (see dart-lang/sdk#62209).

    For now, I'm reverting the flag (but keeping the vNext client for simplicity) and will fail an issue in the LSP client.

  9. reopened this on Dec 9, 2025
  10. modified the milestones: v3.126.0, v3.128.0 on Dec 16, 2025
  11. modified the milestones: v3.128.0, On Deck on Jan 20, 2026
  12. modified the milestones: On Deck, v3.138.0 on May 28, 2026
  13. self-assigned this
    on Jun 1, 2026
  14. added a commit that references this issue on Jun 2, 2026
  15. added a commit that references this issue on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions