Skip to content

Handle the watch when folders are added/removed/renamed in wild card folder#19786

Merged
sheetalkamat merged 2 commits into
masterfrom
directoryRename
Nov 7, 2017
Merged

Handle the watch when folders are added/removed/renamed in wild card folder#19786
sheetalkamat merged 2 commits into
masterfrom
directoryRename

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

Fixes https://developercommunity.visualstudio.com/content/problem/143055/renaming-a-folder-in-a-vs-2017-project-causes-type.html

Multiple changes are needed here to work correctly:

@uniqueiniquity
Copy link
Copy Markdown
Contributor

Seems good to me, though I don't know this part of the codebase at all. It certainly fixes the issue that was reported.

Copy link
Copy Markdown
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please port this to release-2.6 as well.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 7, 2017

@NoelAbrahams can you give tomorrow's typescript@next a try, and let us know if u are still seeing issues?

@NoelAbrahams
Copy link
Copy Markdown

@mhegazy, happy to do that. How do I do install typescript@next in Visual Studio 2017? I see some instructions for VS 2013 and 2015 here

@uniqueiniquity
Copy link
Copy Markdown
Contributor

@NoelAbrahams Unfortunately, we haven't kept that page (or that script) up to date for VS 2017.

I think the best approach would be to temporarily make a backup of C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.6\tsserver.js and replace it with a copy of tsserver.js that you get from running npm install typescript@next in some throwaway folder. Wherever you decide to run the npm install, the correct file is at node_modules\typescript\lib\tsserver.js.

@NoelAbrahams
Copy link
Copy Markdown

@uniqueiniquity, thanks for the tip (great name BTW 😄)

@mhegazy @sheetalkamat using the latest tsserver.js I'm no longer able to reproduce the bug. So that appears to be fixed.

I'm still having a problem with the language service with inter-project references. Basicaly, the links in _references.ts are not being refreshed when a referenced folder is deleted and regenerated.

Not sure if it's related to this issue.

@NoelAbrahams
Copy link
Copy Markdown

I'll try to see if I can reproduce the bug "Cross-project references fail when a folder/referenced .d.ts file is deleted, until _references.ts is manually updated".

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants