haskell / haskell/haskell-language-server

Configuration for how much of the project to build

Open
#3,873 5 comments 1 reaction 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

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.
1. Build only the files open in the editor
2. Build all the files in the current component
3. Build all the files in all the components in the current package
4. Build all the files in all the components in all the packages in the project

So I wonder if we should replace `checkProject` with a new option (`buildAggressiveness`?) with four alternatives:
1. `open-files`
2. `current-component`
3. `current-package`
4. `all-packages`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.