Author Topic: How to rebuild workspace tag file manually  (Read 2886 times)

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
How to rebuild workspace tag file manually
« on: July 02, 2015, 01:03:01 PM »
Can I rebuild my workspace tag file using an existing command? Or is it possible to start the rebuild in an own slick-c function?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2903
  • Hero Points: 153
Re: How to rebuild workspace tag file manually
« Reply #1 on: July 02, 2015, 01:03:57 PM »
Is using the Context Tagging dialog good enough, or are you trying to avoid those steps?

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
Re: How to rebuild workspace tag file manually
« Reply #2 on: July 02, 2015, 01:19:14 PM »
Unfortunately not. Somehow some tags are lost regularly, and after rebuilding they are visible again for some time. So I want to bind it to a key combination, which I can use all few minutes if it seems necessary.
Most of the tags that are missing are from .xaml and/or .designer.cs files. I couldn't find out the exact cirumstances yet, but there slick has definitely a problem.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: How to rebuild workspace tag file manually
« Reply #3 on: July 02, 2015, 01:59:11 PM »
Try workspace_retag

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
Re: How to rebuild workspace tag file manually
« Reply #4 on: July 06, 2015, 01:07:07 PM »
workspace_retag works, but it doesn't help, since it displays a dialog.

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
Re: How to rebuild workspace tag file manually
« Reply #5 on: July 06, 2015, 01:12:21 PM »
Dan posted a good solution, but unfortunately in the false thread. Please refer to Answer 4 in
https://community.slickedit.com/index.php?topic=11451.0#msg48393
or read his answer here:

> Try using this.  This will rebuild everything.

Code: [Select]
_command void workspace_update_files_retag() name_info(',')
{
   status := _workspace_update_files_retag(true,
                                          true, 0,
                                          false, 1,
                                          false, 1,
                                          false, 1);
}