Skip to content

Commit fd1a7d1

Browse files
authored
Add diagnostics to Stan descriptor (#3213)
1 parent b289e48 commit fd1a7d1

File tree

1 file changed

+7
-2
lines changed
  • plugins/hls-stan-plugin/src/Ide/Plugin

1 file changed

+7
-2
lines changed

plugins/hls-stan-plugin/src/Ide/Plugin/Stan.hs

+7-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ import GHC.Generics (Generic)
2929
import HieTypes (HieASTs, HieFile)
3030
import Ide.Plugin.Config
3131
import Ide.Types (PluginDescriptor (..),
32-
PluginId,
32+
PluginId, configHasDiagnostics,
33+
defaultConfigDescriptor,
3334
defaultPluginDescriptor,
3435
pluginEnabledConfig)
3536
import qualified Language.LSP.Types as LSP
@@ -42,7 +43,11 @@ import Stan.Observation (Observation (..))
4243

4344
descriptor :: Recorder (WithPriority Log) -> PluginId -> PluginDescriptor IdeState
4445
descriptor recorder plId = (defaultPluginDescriptor plId)
45-
{pluginRules = rules recorder plId}
46+
{ pluginRules = rules recorder plId
47+
, pluginConfigDescriptor = defaultConfigDescriptor
48+
{ configHasDiagnostics = True
49+
}
50+
}
4651

4752
newtype Log = LogShake Shake.Log deriving (Show)
4853

0 commit comments

Comments
 (0)