Typescript language service does not autocomplete types from referenced projects #78728
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
VSCode Version: 1.37.0 (user setup)
OS: Windows 10.0.17763
Typescript Version: 3.5.2
Currently if you setup a monorepo with two typescript projects
/foo
index.ts
/bar
index.ts
and bar references foo. using the references feature in typescript 3.
Here's a sample tsconfig.json
If in /foo/index.ts you export a function/const named
blah
, intellisense will not provide auto complete in /bar/index.ts to auto import that symbol. This happens even if you've already compiled /foo so that all the declaration files are already there.It would be nice if VS code can show autocomplete for those symbols exported in the referenced projects, and auto import them as well.
This might help with giving a workaround to this issue as well because you may be able set it up to work locally on different packages without using symlinks and instead using the
paths
config in tsconfig.json instead? #25312It could also be nicer if the references config had a name field along with path to setup the alias (you could probably just do it with paths) though
The text was updated successfully, but these errors were encountered: