Skip to content

Commit a471017

Browse files
committed
Fix test suites for effected plugins
1 parent e447936 commit a471017

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

plugins/hls-alternate-number-format-plugin/src/Ide/Plugin/AlternateNumberFormat.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ getFirstPragma state nfp = handleMaybeM "Error: Could not get NextPragmaInfo" $
152152
(_, fileContents) <- liftIO $ runAction (alternateNumberFormatId <> ".GetFileContents") state $ getFileContents nfp
153153
case ghcSession of
154154
Just (hscEnv -> hsc_dflags -> sessionDynFlags, _) -> pure $ Just $ getNextPragmaInfo sessionDynFlags fileContents
155-
Nothing -> pure Nothing
155+
Nothing -> pure Nothing
156156

157157
requestLiterals :: MonadIO m => IdeState -> NormalizedFilePath -> ExceptT String m CollectLiteralsResult
158158
requestLiterals state = handleMaybeM "Error: Could not Collect Literals"

plugins/hls-alternate-number-format-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ main :: IO ()
2121
main = defaultTestRunner test
2222

2323
alternateNumberFormatPlugin :: PluginDescriptor IdeState
24-
alternateNumberFormatPlugin = AlternateNumberFormat.descriptor mempty "alternateNumberFormat"
24+
alternateNumberFormatPlugin = AlternateNumberFormat.descriptor mempty
2525

2626
-- NOTE: For whatever reason, this plugin does not play nice with creating Code Actions on time.
2727
-- As a result tests will mostly pass if `import Prelude` is added at the top. We (mostly fendor) surmise this has something

plugins/hls-call-hierarchy-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import qualified System.IO.Extra
2121
import Test.Hls
2222

2323
plugin :: PluginDescriptor IdeState
24-
plugin = descriptor "callHierarchy"
24+
plugin = descriptor
2525

2626
main :: IO ()
2727
main = defaultTestRunner $

plugins/hls-change-type-signature-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ main :: IO ()
3232
main = defaultTestRunner test
3333

3434
changeTypeSignaturePlugin :: PluginDescriptor IdeState
35-
changeTypeSignaturePlugin = ChangeTypeSignature.descriptor "changeTypeSignature"
35+
changeTypeSignaturePlugin = ChangeTypeSignature.descriptor
3636

3737
test :: TestTree
3838
test = testGroup "changeTypeSignature" [

0 commit comments

Comments
 (0)