Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No symbols listed for Typescript files #101

Open
aarkayna opened this issue Mar 29, 2016 · 9 comments
Open

No symbols listed for Typescript files #101

aarkayna opened this issue Mar 29, 2016 · 9 comments

Comments

@aarkayna
Copy link

I get the list showing up for .js and other files but nothing shows up for .ts files. CMD + R does give me the Atom dropdown with all the symbols listed however.

@sqwk
Copy link

sqwk commented Mar 31, 2016

+1

4 similar comments
@stewhouston
Copy link

+1

@dogfoodsilo4
Copy link

+1

@juanfernandoe
Copy link

+1

@arnovanoordt
Copy link

+1

@nicolashainaux
Copy link

nicolashainaux commented Aug 14, 2017

@aarkayna @sqwk @stewhouston @dogfoodsilo4 @juanfernandoe

Hi everyone,

What's missing is most probably the ctags definitions for typescript.
There is an example here: https://herringtondarkholme.github.io/2015/10/10/typescript-ctags/
(other example are easy to find over the internet).
You may want to try to add these definitions to the .ctags file in lib/.ctags
As I do not use TypeScript, I have no idea whether they are convenient.
If they are, could anyone let me know (either here or by opening a new issue there), so I'll add them in the next release of the forked package.

@arnovanoordt
Copy link

arnovanoordt commented Aug 14, 2017

Thanks @nicolashainaux !
The given ctags don't distinguish between methods and variables in classes, but it's already a lot better than no map at all :)

@arnovanoordt
Copy link

I'm not too familiar with ctags but replacing the line
--regex-typescript=/^[ \t]*(export)?[ \t]*(public|private)[ \t]+(static)?[ \t]*([a-zA-Z0-9_]+)/\4/m,members/
with
--regex-typescript=/^[ \t]*(export)?[ \t]*(public|private)[ \t]+(static)?[ \t]*([a-zA-Z0-9_]+)\(/\4/m,function/ --regex-typescript=/^[ \t]*(export)?[ \t]*(public|private)[ \t]+(static)?[ \t]*([a-zA-Z0-9_]+):/\4/l,varlambdas/
distinguishes methods from the properties.. Not sure if this breaks something else, but it works for me ;)

@nicolashainaux
Copy link

Perfect! I'll update the regex too then!

nicolashainaux added a commit to nicolashainaux/symbols-tree-nav that referenced this issue Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants