oleg-shilo / codemap.vscode

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

Ability to specify codemap for files without extensions #19

Closed jpm-nz closed 4 years ago

jpm-nz commented 5 years ago

I'm using the generic mapper function to provide codemap for some code and it works well.

However, some of the files have no file extensions - is there any ability to still use codemap to for these files?

jpm-nz commented 5 years ago

Looking at the code, it appears 'extension.ts' would need to be updated to handle cases with no extensions, compared with using the (filename) as it currently does - line 52.

Could potentially make it a config item - which defaults to current behavior if not set.