GithubHelp home page GithubHelp logo

jtanx / ctagsx Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 11.0 119 KB

VSCode ctags implementation that actually works

License: MIT License

JavaScript 100.00%
cross-platform ctags visual-studio-code visual-studio-code-extension vscode

ctagsx's People

Contributors

jtanx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ctagsx's Issues

Rethink default keybinding CTRL + T

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

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

Goto Definition also triggers Peek Definition

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:

image

I tested this quickly with 3 C++ files, where no tags file was used. There this does not happen.

Publish on open-vsx

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.

Add pref to open in preview/non preview mode

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.

Not working on VSCode 1.31

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.

TypeError: getLineNubmer(...).then is not a function

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.

ctags: no tags found for ***

@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.

Not working with ruby class methods ending with ?/!

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

🤔

Puppet support

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.