Open michaelpj opened 11 months ago
Would it be possible to have sort of incremental option where HLS first build open-files
then if everything is ok, builds current-component
and so on until everything is built?
I'm unsure if that makes sense based on how HLS works :thinking:
Would it be possible to have sort of incremental option where HLS first build
open-files
then if everything is ok, buildscurrent-component
and so on until everything is built?
I think it already is, HLS keeps files of interest (which are open-files) in shake. And doing build related to FOI.
I think that's just describing the open-files
strategy: FOIs more-or-less correspond to open files. We don't then go on to build the rest of the project or anything.
Just to add a few more thoughts: while in some ways "load everything in the project" is probably the most intuitive thing for users, I think we need it to be configurable because for people (often in industry) with very large projects this may just eat all their memory.
At the moment, HLS builds only the files that are open in the editor by default (and their dependencies). We have the
checkProject
option, which instead builds all the files in the current component.Especially once proper multi-component support is finished, it seems to me that there are actually several levels of aggressiveness that you might want.
So I wonder if we should replace
checkProject
with a new option (buildAggressiveness
?) with four alternatives:open-files
current-component
current-package
all-packages