glint icon indicating copy to clipboard operation
glint copied to clipboard

Type inconsistency after opening a typescript provided lib file

Open ef4 opened this issue 1 year ago • 0 comments

Reproduction:

  1. Using viscose glint extension, while viewing some ts or gts containing a browser API (I used crypto.subtle.digest()), jump to definition on the function. This will open a file like lib.dom.d.ts inside the currently used typescript package.
  2. Navigate back to your own code. Now there are type errors all over the place, presumably due to having loaded some duplicate types out of the library file that were not present before.
  3. Close the vscoe tab containing lib.dom.d.ts and restart Glint. The type errors go away.

ef4 avatar Sep 27 '24 20:09 ef4