You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code gives notebook cells "dynamic" paths (starting with e.g. ^/vscode-notebook-cell/ts-nul-authority) when communicating with tsserver, but TypeScript doesn't resolve relative imports from dynamic paths, and infers a config instead of using the appropriate tsconfig.json for the path. So notebook cells show errors on relative imports, can't use types from relative imports, and can have other errors because of config issues.
Here's a hacked-up TypeScript that handles these paths githubnext/TypeScript@v5.4.5...jaked/vscode-notebook-fixes but maybe TypeScript needs explicit support for URIs so VS Code can use them directly instead of overloading the dynamic path syntax?
I see that the insiders build has disabled semantic errors (#212366) but it would be better of course to fix the problem 🙂.
VS Code version: Code - Insiders 1.90.0-insider (05634b5, 2024-05-28T20:53:24.014Z)
OS version: Darwin arm64 23.5.0
Modes:
Type: Bug
VS Code gives notebook cells "dynamic" paths (starting with e.g.
^/vscode-notebook-cell/ts-nul-authority
) when communicating withtsserver
, but TypeScript doesn't resolve relative imports from dynamic paths, and infers a config instead of using the appropriatetsconfig.json
for the path. So notebook cells show errors on relative imports, can't use types from relative imports, and can have other errors because of config issues.See also #196172
Here's a hacked-up TypeScript that handles these paths githubnext/TypeScript@v5.4.5...jaked/vscode-notebook-fixes but maybe TypeScript needs explicit support for URIs so VS Code can use them directly instead of overloading the dynamic path syntax?
I see that the insiders build has disabled semantic errors (#212366) but it would be better of course to fix the problem 🙂.
VS Code version: Code - Insiders 1.90.0-insider (05634b5, 2024-05-28T20:53:24.014Z)
OS version: Darwin arm64 23.5.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (66)
A/B Experiments
The text was updated successfully, but these errors were encountered: