oleg-shilo / codemap.vscode

Code map (syntax tree) of the active document
MIT License
85 stars 28 forks source link

Private functions in Typescript are not showing in Code Map area. #2

Closed maylortaylor closed 6 years ago

maylortaylor commented 6 years ago

I see the functions that i label as "public" in the CodeMap area, but whenever I label a function as "private" i do not see it. This seems by design but would be nice to have an option to "showPrivateFunctions" option.

oleg-shilo commented 6 years ago

Yes it was intentional. The idea of CodeMap is not to be a "know everything" mapper but an infrastructure for hosting various mappers. Thus having mapper specific options exposed in the CodeMap settings is not right way to go as these settings may have no sense for other mappers/languages. Thus showPrivateFunctions has nos sense for MD mapper.

To solve your challenge you need to either:

In a mean time you I can take the attached mapper_ts.js that is the result of my quick modification of the TypeScript mapper (https://github.com/oleg-shilo/codemap.vscode/blob/master/src/mapper_ts.ts). Replace your local copy with the attached one and set that includePrivateMembers flag to true.

mapper_ts.zip

Cos90 commented 6 years ago

when can support c#?

oleg-shilo commented 6 years ago

I am planing to release it either next week or just after Christmas break (more likely).

Right now Syntaxer (the engine of the CS-Script plugin for Sublime Text 3) is undergoing final stage of porting for Notepad++. And the next step is VSCode.

And the Syntaxer is the future C# mapper for CodeMap.VSCode.

oleg-shilo commented 6 years ago

The solution is done. Will release it as soon as the testing is done - first thing next year :)


image

oleg-shilo commented 6 years ago

Just published v1.2.0 with C# support

Eisenspalter commented 6 years ago

@oleg-shilo mapper_tz.zip does not work. Missing utils. require("./utils");

In a mean time you I can take the attached mapper_ts.js that is the result of my quick modification of the TypeScript mapper (https://github.com/oleg-shilo/codemap.vscode/blob/master/src/mapper_ts.ts). Replace your local copy with the attached one and set that includePrivateMembers flag to true. mapper_ts.zip

oleg-shilo commented 6 years ago

Yeah, I only sent the mapper file. The whole extension requires quite a few more files. I shared only the mapper but not the whole extension.

image

Though it's kind of irrelevant. The release is out so no need to use that zip file