<p dir="auto">Not sure if this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="797738933" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/9348" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/9348/hovercard" href="https://github.com/denoland/deno/issues/9348">#9348</a>.</p>
<p dir="auto">I am working on two projects at the same time and project <code class="notranslate">B</code> imports a local file from project <code class="notranslate">A</code> (for development only).<br>
When I change the file in project <code class="notranslate">A</code>, I get the following LSP error in project <code class="notranslate">B</code>.<br>
I think that the LSP is not updated when an imported file has changed that is outside the project directory.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting Deno language server...
  version: 1.8.0 (release, x86_64-apple-darwin)
Connected to &quot;Visual Studio Code&quot; 1.54.1
language server initialized
Server ready.
Error processing TypeScript request: Error: The current snapshot version is missing.
  Args: &quot;GetChangeRangeArgs { specifier: &quot;file:///******/deno-cliffy/command/command.ts&quot;, old_length: 50291, old_version: &quot;1615124690846&quot;, version: &quot;1615124762886&quot; }&quot;
    at processResponse (deno:core/core.js:212:11)
    at Object.jsonOpSync (deno:core/core.js:236:12)
    at ScriptSnapshot.getChangeRange (deno:cli/tsc/99_main_compiler.js:224:19)
    at acquireOrUpdateDocument (deno:cli/tsc/00_typescript.js:123008:133)
    at Object.updateDocumentWithKey (deno:cli/tsc/00_typescript.js:122974:20)
    at Object.getOrCreateSourceFileByPath [as getSourceFileByPath] (deno:cli/tsc/00_typescript.js:149726:49)
    at tryReuseStructureFromOldProgram (deno:cli/tsc/00_typescript.js:107087:28)
    at Object.createProgram (deno:cli/tsc/00_typescript.js:106618:29)
    at synchronizeHostData (deno:cli/tsc/00_typescript.js:149648:26)
    at Object.getReferencesAtPosition (deno:cli/tsc/00_typescript.js:149911:13)
[Error - 14:46:04] Request codeLens/resolve failed.
  Message: Internal error
  Code: -32603"><pre class="notranslate"><code class="notranslate">Starting Deno language server...
  version: 1.8.0 (release, x86_64-apple-darwin)
Connected to "Visual Studio Code" 1.54.1
language server initialized
Server ready.
Error processing TypeScript request: Error: The current snapshot version is missing.
  Args: "GetChangeRangeArgs { specifier: "file:///******/deno-cliffy/command/command.ts", old_length: 50291, old_version: "1615124690846", version: "1615124762886" }"
    at processResponse (deno:core/core.js:212:11)
    at Object.jsonOpSync (deno:core/core.js:236:12)
    at ScriptSnapshot.getChangeRange (deno:cli/tsc/99_main_compiler.js:224:19)
    at acquireOrUpdateDocument (deno:cli/tsc/00_typescript.js:123008:133)
    at Object.updateDocumentWithKey (deno:cli/tsc/00_typescript.js:122974:20)
    at Object.getOrCreateSourceFileByPath [as getSourceFileByPath] (deno:cli/tsc/00_typescript.js:149726:49)
    at tryReuseStructureFromOldProgram (deno:cli/tsc/00_typescript.js:107087:28)
    at Object.createProgram (deno:cli/tsc/00_typescript.js:106618:29)
    at synchronizeHostData (deno:cli/tsc/00_typescript.js:149648:26)
    at Object.getReferencesAtPosition (deno:cli/tsc/00_typescript.js:149911:13)
[Error - 14:46:04] Request codeLens/resolve failed.
  Message: Internal error
  Code: -32603
</code></pre></div>
<p dir="auto">I have no idea what exactly happened</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread '&lt;unnamed&gt;' panicked at 'called `Option::unwrap()` on a `None` value', cli\lsp\tsc.rs:806:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error processing TypeScript diagnostics:
channel closed
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: &quot;PoisonError { inner: .. }&quot;', cli\lsp\language_server.rs:532:8"><pre class="notranslate"><code class="notranslate">thread '&lt;unnamed&gt;' panicked at 'called `Option::unwrap()` on a `None` value', cli\lsp\tsc.rs:806:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error processing TypeScript diagnostics:
channel closed
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', cli\lsp\language_server.rs:532:8
</code></pre></div>