oleg-shilo / codemap.vscode

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

How to specify a codemap .js when using remote ssh #24

Closed derekwallace closed 3 years ago

derekwallace commented 4 years ago

Hi, Im trying to write a simple codemap .js to parse my custom file. Im using VSCode remove development. Im on a Windows machine and im using remote development on a linux box.

In my workspace .json file i cant find the right syntax for the file to be found Ive tried loads "codemap.ini": ".vscode/codemap.ini.js", "codemap.ini": "/.vscode/codemap.ini.js", "codemap.ini": "\codemap.ini.js",

In the developer tools im always seeing errors of this form. [Extension Host] Error: Cannot find module '.vscode/codemap.ini.js'

Any suggestions? Thx derek

derekwallace commented 4 years ago

I tried a traditional VSCode local workspace. Updated the workspace settings as follows and everything worked as expected. "codemap.ini": "c:\derek\codemap_ini.js",

derekwallace commented 4 years ago

Eventually got Remote Development working. Required Abs path to the file on the remote server "codemap.ini": "/AbsPath>/codemap_ini.js",

oleg-shilo commented 4 years ago

If you are happy with your ini syntax support you can share it and I will include it in the standard plugin package installation.

derekwallace commented 4 years ago

its a custom variant of .ini file that is internal to us.

One issue i had using a .js file is that i had to close VSCode and re-open to see changes as a result of .js changes.
is this expected? Is there a way to force a re-erad of the .js file?

thx

oleg-shilo commented 4 years ago

I think it can be done. Changing the issue into enhancement.