angular-ui / AngularJS-sublime-package

AngularJS code completion, snippets, go to definition, quick panel search, and more.
MIT License
1.42k stars 169 forks source link

Reindex files on delete or rename #65

Closed sluipmoord closed 10 years ago

sluipmoord commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

Awesome, thanks!

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

subhaze commented 10 years ago

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