Mark a file as current so that the file name is black
I use AbstractVcsHelper.markFileAsUpToDate(file) to no avail. The file won't
be picked up by the Check In Project but the file name stays blue/green.
I even tried to call it in a WriteAction just to make sure and to no avail.
Is it the intended behavior or should I file a bug?
Jacques
Please sign in to leave a comment.
Jacques,
Try close/open the file. Will it help?
--
Best regards,
Mike Aizatsky.
-
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
Looks like you've forgotten to call FileStatusManager.fileStatusChanged().
--
Best regards,
Mike Aizatsky.
-
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
Yes it turns black but only on the tabs and in the project tree the name is
still blue.
I do not think it helps because developers are not going to close the editor
to get the correct status. BTW that is one of the nicest feature of the VCS
integration and everybody loves it! Do you think this could be fixed for
ariadna?
I have filed a bug
http://www.intellij.net/tracker/idea/viewSCR?publicId=6364
Jacques
"Mike Aizatsky" <mike@intellij.com> wrote in message
news:apaub8$kt7$1@is.intellij.net...
>
>
>
>
I guess I filed the bug a little bit prematurely even though you might still
want to change the StarTeamPlugin to do this as well.
The correct call is FileStatusManager.refreshFileStatus(file);
Thanks again
Jacques
"Mike Aizatsky" <mike@intellij.com> wrote in message
news:apaumt$l6r$1@is.intellij.net...
>
>
>