Skip to content

Any chance the "Go to Definition" works with existing TAGS file while bust-a-gem is ripping new TAGS file? #27

@vfonic

Description

@vfonic

I set up Bust A Gem to run whenever I save a Ruby file. It works great!

Here's my setup settings.json:

"runOnSave.commands": [
    {
      "match": "\\.(rb|rake)$",
      "command": "bust-a-gem.rebuild",
      "runIn": "vscode",
      "runningStatusMessage": "Rebuilding project tags",
      "finishStatusMessage": "Project tags rebuilt"
    }
  ],

I use this dated, but still working VS Code extension:
https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save

Since my projects grew bigger and I also allow Bust A Gem to rip some gems so I can "Go to Definition" directly inside the gem files, it's taking about 3 seconds for Bust A Gem to generate TAGS file. During this time, "Go to Definition" doesn't work.

Any chance this can be changed?

If this is changed, my setup would be PERFECT! :)
I could use "Go to Definition" all the time, even for new files and whenever I save a file Bust A Gem will automatically generate TAGS, but it will work all the time, except for the newly added definitions that are just being added to TAGS for the first time. Only for those I'd need to wait those ~3 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions