p42ai / js-assistant

120+ refactorings and code-assists for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=p42ai.refactor
MIT License
119 stars 7 forks source link

Make P42 settings apply to remote and workspace, honour jsconfig/tsconfig settings #71

Open phudson opened 1 year ago

phudson commented 1 year ago

I edit Javascript in a variety of contexts - from a version of Rhino that supports only ES5 to the latest node.

p42 settings being global only means I have to have one set of settings that apply to all. So either I get a suggestion to change var to const/let in a context that doesn't support const/let, or I disable it and then I don't get it in contexts when it does.

Please support remote and workspace level settings too/

A related improvement would be to respect the settings in jsconfig/tsconfig that, among other things, also specify the Javascript version.