oleg-shilo / cs-script.npp

CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64)
MIT License
246 stars 52 forks source link

Auto-completion doesn't run the given css_precompiler first. #33

Closed Irame closed 7 months ago

Irame commented 5 years ago

I have noticed that if I have specified a precompiler via the css flag css_precompiler and add some variables or usings there, they don't show up in the auto-completion. It would be nice if there was the option to run some kind of precompiler before the auto-completion is generated. In my particular case, I want to execute the script later in another program and want to emulate the environment of this program (like given imports and existing global variables).

oleg-shilo commented 5 years ago

Thank you for suggesting. It's not a trivial feature to implement, but I will give it a try. I will be revamping all plugins/extensions either end of Jan or end of Fab. Will see if can be done then.

Irame commented 5 years ago

Thanks for the quick response! I'm looking forward to the changes, and hope you can implement it then. I really like this project, keep up the great work!

oleg-shilo commented 7 months ago

Unfortunately, it is too difficult to do and also it would impact the auto-completion and the whole UX. I am trying to imagine what would it be if before popping up the suggestion box auto-completion will need to execute a pre-script that is accessing some online resources.

The same applies to resolving NuGet imports for your script.

Thus the IDE style approach is to stay: aoutocompletin incorporated any pre-processing outcome but pre-processing itself needs to be triggered by the user explicitly. IE build request - F7, Run request - F5.

Closing this issue now