Repository navigation
ATA puts types in $HOME/Microsoft #12674
Description
Activity
From Instagit on December 2, 2016 9:26
Steps to reproduce:
- open VS Code
- open any JavaScript file
It only happens for the first JS file that is opened. Could be a bug, too.
From Christof Marti (@chrmarti) on December 2, 2016 19:23
I guess this is from the automatic typings acquisition in recent versions of TypeScript. Instagit Are you saying the folder is under
~/Microsoft?From Vladimir Matveev (@vladima) on December 2, 2016 20:12
Christof Marti (@chrmarti) is correct - this is location of global cache for acquired type declarations. These files are downloaded on user machine to power JavaScript intelligence and never uploaded anywhere.
From Christof Marti (@chrmarti) on December 2, 2016 23:7
Vladimir Matveev (@vladima) What are the paths that are used for this cache on the different platforms? I think on Linux it might make sense to used a folder name with a leading '.' to hide it from default
lsand file explorer behavior - like other tools do. /cc Daniel Imms (@Tyriar)From Daniel Imms (@Tyriar) on December 2, 2016 23:22
Now that you mention this I have this too. We should absolutely not be putting the types in
~/Microsoft.$XDG_CACHE_HOME/typescriptwould probably make the most sense, where$XDG_CACHE_HOMEdefaulting to$HOME/.cacheif it is not defined as per the XDG Base Directory Specification. I'm proposingtypescript/instead ofmicrosoft/to prevent potential future conflicts.Vladimir Matveev (@vladima) this is actually quite bad imo, is this a purely upstream problem?
I believe the location of the typings install directory is coming from TypeScript, so I've moved the issue from the vscode repo to here.
- addedBugA bug in TypeScriptA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
on Dec 5, 2016 - addedDomain: LS: TSServerIssues related to the TSServerIssues related to the TSServer
on Dec 5, 2016 - addedFixedA PR has been merged for this issueA PR has been merged for this issue
on Dec 5, 2016 - locked and limited conversation to collaborators
on Jun 19, 2018
From Instagit on December 1, 2016 10:38
I have yet to find out how to reproduce this, but VS Code creates a Microsoft/TypeScript/node_modules/ directory with the types-registry npm module in it in the home directory.
The package readme says
I never set anything to be shared or published. So what exactly is this and what does it do?
Copied from original issue: microsoft/vscode#16318