Skip to content

Visual Studio: Definitions don't update in hover panels when the definitions file is updated. #79

Open
@chrissimon-au

Description

@chrissimon-au

Describe the bug
In most IDEs when editing the defintions file, the updated definitions appear in the hover panel immediately. In Visual Studio, they don't. This is because Visual Studio supports didChangeWatchedFile notifications, but it doesn't support dynamic registration, which is an approach where the language server can nominate which files to watch. See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#didChangeWatchedFilesRegistrationOptions for details.

To Reproduce
Open a folder with a .contextive/definitions.yml file, in Visual Studio with Contextive installed. See the hover panel text. Modify a term definition. Hover to see the hover panel, and see the old definition.

Expected behavior
The hover panel should show the new definition.

Additional context
According to the initialize logs, the language client advertises support for didChangeWatchedFiles with an empty object, which means it doesn't offer dynamic registration.

{
   ...
   "didChangeWatchedFiles": {}
   ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions