Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Reindex files on delete or rename #65

Closed
sluipmoord opened this issue Jul 27, 2014 · 3 comments
Closed

Reindex files on delete or rename #65

sluipmoord opened this issue Jul 27, 2014 · 3 comments
Labels

Comments

@sluipmoord
Copy link

Hello,

I see that you are reindex the files on save, So I moved some files around and renamed then and such in my project. But what seems to happen that the removed files were still indexed along with the new ones.

So the auto completion tries to find the directive in a removed file.
To fix this I had to recreate the old file and save it with no content so that it got reindexed and the auto-completion no longer picked it up.

for example. I have a file called directives.js, then I decided to split them up into directives/directive_1.js, directives/directive_2.js and I remove directives.js.
The auto completion now picks up directiveA in directives.js and in directives/directive_1.js.

Sorry if the explanation is terrible.

@subhaze subhaze added the bug label Jul 27, 2014
@subhaze
Copy link
Contributor

subhaze commented Jul 27, 2014

Explained it perfectly. I'm hoping to find sometime within the next week or two to push out an update.

Thanks for the report

@sluipmoord
Copy link
Author

Awesome, thanks!

Hopefully no reformatting will need to happen again before the update :)

@subhaze subhaze closed this as completed in f7f310b Aug 2, 2014
@subhaze
Copy link
Contributor

subhaze commented Aug 2, 2014

Just cut a 1.2.1 release for this, it should be in Package Control later today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants