pulsar/packages/symbol-provider-ctags
2024-01-12 12:42:01 -08:00
..
lib Fix issue where symbol-provider-ctags used the wrong package root 2024-01-12 12:42:01 -08:00
spec Fix issue where symbol-provider-ctags used the wrong package root 2024-01-12 12:42:01 -08:00
vendor Add symbol provider packages 2024-01-03 10:26:17 -08:00
.eslintrc.js Add symbol provider packages 2024-01-03 10:26:17 -08:00
LICENSE.md Add symbol provider packages 2024-01-03 10:26:17 -08:00
package-lock.json Add symbol provider packages 2024-01-03 10:26:17 -08:00
package.json Add symbol provider packages 2024-01-03 10:26:17 -08:00
README.md Add symbol provider packages 2024-01-03 10:26:17 -08:00

symbol-provider-ctags package

Provides symbols to symbols-view via ctags.

This is the approach historically used by symbols-view — now spun out into its own “provider” package among several.

This symbol provider will typically be used on non-Tree-sitter grammars, and possibly when performing a project-wide search. Symbol-based navigation on files with Tree-sitter grammars will typically be provided by symbol-provider-tree-sitter.

Language support

This provider supports any language that is present in its config file, and detects any symbols that match the specified patterns. If your language isnt supported and you can help add support, well happily accept a pull request.

Toggle file symbols

For the Symbols View: Toggle File Symbols command, ctags will scan the file on disk and emit its tag information to stdout, where it is read by this package. You dont need a TAGS file to do a symbol search within a single file.

Toggle Project Symbols, Go To Declaration

These commands require a tags file, typically defined at .tags/tags/.TAGS/TAGS in the root of your project. This package cannot generate (or regenerate) your tags file, since it doesnt know which files to include. You can run ctags regularly on your own to generate this file. Consult the documentation for Exuberant Ctags for more information.

Once your tags file is present, these commands can be fulfilled by symbol-provider-ctags

  • The Symbols View: Toggle Project Symbols command works like Symbols View: Toggle File Symbols described above, except itll show you symbols from the entire project.
  • The Symbols View: Go To Declaration command works like Symbols View: Toggle Project Symbols, except the word under the cursor will be pre-filled in the search box, and a result will automatically be opened if it is the only result.