jtanx / ctagsx Goto Github PK
View Code? Open in Web Editor NEWVSCode ctags implementation that actually works
License: MIT License
VSCode ctags implementation that actually works
License: MIT License
The default keybinding for invoking Navigate to definition (ctrl + t
) shadows VSCode's keybinding for Go to Symbol in Workspace.
I currently have your Navigate to definition on alt + t
and jump back to prev... on alt + shift + t
.
Otherwise, great extension!
ctagsx: Search failed: Error: Extension 'jtanx.ctagsx' CANNOT use API proposal: quickPickSeparators. Its package.json#enabledApiProposals-property declares: [] but NOT quickPickSeparators. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api jtanx.ctagsx
hah
Maybe:
Hmm...
😂
I am not entirely sure whether this behavior is caused by this extension or its actually a bug in VSCode.
When I press F12
on a symbol, the cursor not only jumps to the definition obtained from the tags
file, but also shows the Peek Definition window. When I press Alt + F12
I only get the Peek Definition window -- as expected.
Here I placed the cursor on a call to getChildren
and pressed F12
. The result is the following:
I tested this quickly with 3 C++ files, where no tags
file was used. There this does not happen.
Instead of just tags
/.tags
This is a lovely extension and I’d like to use it with https://github.com/coder/code-server. Unfortunately, code-server
cannot download this extension from Microsoft’s Marketplace:
Microsoft prohibits the use of any non-Microsoft VS Code from accessing their marketplace. Per the Terms of Service:
Marketplace Offerings are intended for use only with Visual Studio Products and Services, and you may only install and use Marketplace Offerings with Visual Studio Products and Services.
The workaround is to publish the extension on https://open-vsx.org/ as well.
Some version back, vscode changed the default behaviour of showTextDocument
to open text docs in preview mode. I actually prefer the old behaviour. Add some sort of option to configure this.
I've updated VSCode to 1.31 and ctagsx
can't find the tags any more. To test it, I've downgraded to 1.30 and it started to work again.
Can't review any symbols of the currently opened source file.
VSCode provides the ability to enter input via an input box. This would be really handy, especially when searching up file names.
I am using this extension for symbol lookups in Haskell files, which worked perfectly in the past. Today I got back to work on a Haskell project and it seems like the extension is broken for me.
I get the following message:
TypeError: getLineNubmer(...).then is not a function
These are the corresponding lines in my tags
file.
mkNodeAddress src/Insieme/Inspire/NodeAddress.hs 129
mkNodeAddress src/Insieme/Inspire/NodeAddress.hs 130
Path and line numbers are correct. The tags
file was generated using hasktags.
I made a proof-of-concept for providing an outline view via ctagsx and ctagz:
https://github.com/sogaiu/ctagz/tree/tags-for-file
https://github.com/sogaiu/ctagsx/tree/outline-view
Do you have any interest in having this type of functionality?
@jtanx , I have tried this plugin, with ctags --tag-relative --extra=f -R
generate the tags file, but mostly, it output ctags: no tags found for ***
.
My environment is: Win7, ctags 5.8, vscode 1.12.1.
hey, I noticed this extension (v1.2.1) is unable to read tags for Ruby class methods ending with either ?
or !
, I get ctagsx: No tags found for foo?
. Eg:
# chat.rb
def self.foo?
end
def self.foo!
end
The tag file has been generated with ctags --tag-relative --extra=f -R .
Here are the tag snippets:
$ cat .tags | grep "foo?"
> foo app/models/chat.rb /^ def self.foo?$/;" F class:Chat
$ cat .tags | grep "foo\!"
> foo app/models/chat.rb /^ def self.foo!$/;" F class:Chat
Interestingly Ruby instance methods ending with either ?
or !
work. Eg:
def der!
end
def der?
end
ctag version:
ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Oct 25 2021, 03:50:10
Addresses: <[email protected]>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
🤔
We use rootPath
, but only if no file is open. Hmm.
Great module! i'm using it for puppet, it works for most of the stuff but somehow dose not work for a class like this:
settings::selinux , any pointers?
Cheers,
Cristi
Not sure why the tag is not found, the specific tags that can't be found do appear in the .tags file. I double checked that the tag is followed by a tab space. tags file is 32k lines long.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.