Coding in VS Code and HISE
-
I am having issues that when I edit .js include files in VS Code, then hit "compile" in HISE, the .js files sometimes revert their changes, and I'm guessing this is from some cached version of the file in HISE which takes precedence. Is there some way to avoid this problem? Is there a setting to change or a workflow to adopt that will keep the changes made to the .js in VS Code?
-
@VirtualVirgin When you click compile in HISE (or press F5), HISE will save the contents of the code editor to the file.
When you edit a file outside of HISE, HISE does not see the changes until you close and reopen the project. It doesn't watch for changes made externally.
-
@d-healey I'm finding that HISE sometimes does take the changes made in VS Code at other times not. At this point in time I have not figured out the conditions which cause this however. I would like to continue editing in VS Code and then check out the changes by compiling in HISE. Seems kind of silly to cut and paste the entire script over to HISE no?
-
@VirtualVirgin said in Coding in VS Code and HISE:
Seems kind of silly to cut and paste the entire script over to HISE no?
HISE is really designed with the intention that you use its own editor.
-
@d-healey
-
@d-healey actually, I think it checks for updated scripts every 3 seconds or something like that.
I'm editing in VS code as well and sometimes see this happen.
I can't go back to the internal editor unless it integrates CoPilot. -
@Dan-Korneff said in Coding in VS Code and HISE:
I think it checks for updated scripts every 3 seconds or something like that.
Last time I looked into it there wasn't one, but maybe Christoph added it
-
@d-healey said in Coding in VS Code and HISE:
When you click compile in HISE (or press F5), HISE will save the contents of the code editor to the file.
Does this mean if a file is open in the HISE editor and you hit Compile, it will save over any changes you've made to the same file in an external editor?
-
@dannytaurus Yes