Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Regularise the config for plugins #800

Open
@alanz

Description

@alanz

At the moment the Config type is

data Config =
  Config
    { hlintOn             :: Bool
    , maxNumberOfProblems :: Int
    } deriving (Show)

As we add more diagnostic providers, we can add a specific config for each.

Or, we can make the config something like

data Config =
  Config
    { diagnostics :: Map PluginId  Bool
    , maxNumberOfProblems :: Int
    } deriving (Show)

This means that nothing has to change when we add a new plugin that does diagnostics, and we can filter out the disabled ones in requestDiagnostics already.

This can potentially apply for code actions, hover, and symbols. And be extended as new items arise.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions