mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix(lsp): Denormalize specifiers before calling $projectChanged
(#23322)
Fixes the regression described in https://github.com/denoland/deno/pull/23293#issuecomment-2049819724. This affected jupyter notebooks, as the LSP was passing in already denormalized specifiers, while the jupyter kernel was not. We need to denormalize the specifiers to evict the proper keys from our caches.
This commit is contained in:
parent
df73db671b
commit
4ab0215727
1 changed files with 4 additions and 0 deletions
|
@ -303,6 +303,10 @@ impl TsServer {
|
|||
new_project_version: String,
|
||||
config_changed: bool,
|
||||
) {
|
||||
let modified_scripts = modified_scripts
|
||||
.iter()
|
||||
.map(|(spec, change)| (self.specifier_map.denormalize(spec), change))
|
||||
.collect::<Vec<_>>();
|
||||
let req = TscRequest {
|
||||
method: "$projectChanged",
|
||||
args: json!([modified_scripts, new_project_version, config_changed,]),
|
||||
|
|
Loading…
Add table
Reference in a new issue