Unexpected: implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer
I am using latest insiders and have no editor open, then I just open src/vs/workbench/services/history/test/browser/historyService.test.ts and I am greeted with compile errors that do not show up when compiling:
I couldn't reproduce this. Can you share the TS Server logs if this happens again
- Set
"typescript.tsserver.log": "verbose", - Reproduce the problem
- In VS Code, run the
TypeScript: Open TS Server logcommand
Was able to repo after editing the file in an unrelated location. Relevant logs: tsserver.log
Looks like #53955 and #51434. Hope the full logs from when this happens can help with the investigation
It shouldn't be related to #53955 since that one happens even when compiling with tsc, whereas this issue appears to only happen once you edit something.
Always helpful to have a server log and a minimal repro with code as text when possible.
That said, do you see the same issue with semantic highlighting and inlay hints turned off?
@DanielRosenwasser Good thought. Just tested and I wasn't able to reproduce the issue after disabling semantic highlighting: "editor.semanticHighlighting.enabled": false