Skip to content

Commit 5d19865

Browse files
committed
Add .hs-boot files for known file types
1 parent 4f3c862 commit 5d19865

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hls-plugin-api/src/Ide/Types.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ data PluginDescriptor (ideState :: *) =
119119
, pluginNotificationHandlers :: PluginNotificationHandlers ideState
120120
, pluginModifyDynflags :: DynFlagsModifications
121121
, pluginCli :: Maybe (ParserInfo (IdeCommand ideState))
122-
, pluginFileType :: [T.Text]
123-
-- ^ File extension of the files the plugin is responsible for.
122+
, pluginFileType :: [T.Text]
123+
-- ^ File extension of the files the plugin is responsible for.
124124
-- The plugin is only allowed to handle files with these extensions
125125
-- When writing handlers, etc. for this plugin it can be assumed that all handled files are of this type.
126126
-- The file extension must have a leading '.'.
@@ -232,7 +232,7 @@ instance PluginRequestMethod TextDocumentCodeAction where
232232
| otherwise = False
233233

234234
-- | Check whether the given plugin descriptor is responsible for the file with the given path.
235-
-- Compares the file extension of the file at the given path with the file extension
235+
-- Compares the file extension of the file at the given path with the file extension
236236
-- the plugin is responsible for.
237237
pluginResponsible :: Uri -> PluginDescriptor c -> Bool
238238
pluginResponsible uri pluginDesc
@@ -551,7 +551,7 @@ defaultPluginDescriptor plId =
551551
mempty
552552
mempty
553553
Nothing
554-
[".hs", ".lhs"]
554+
[".hs", ".lhs", ".hs-boot"]
555555

556556
defaultCabalPluginDescriptor :: PluginId -> PluginDescriptor ideState
557557
defaultCabalPluginDescriptor plId =

0 commit comments

Comments
 (0)