Skip to content

crash on textDocument/didOpen if a previously watched text document is requested again #34

@repelliuss

Description

@repelliuss

sending following request twice crashes the server

[Trace - 06:35:41 PM] Sending notification 'textDocument/didOpen'.
Params: {
  "textDocument": {
    "uri": "file:///c%3A/foo/foo.hlsli",
    "languageId": "hlsl",
    "version": 0,
    "text": "..."
  }
}

with

thread 'main' panicked at shader-language-server\src\server\server_file_cache.rs:799:17:
File file:///C:/Develop/mango-verse-beta/Engine/Source/Shaders/Native/Source/Shaders/Atmosphere/Bruneton.hlsli already watched as main.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions