Skip to content

Commit

Permalink
turned off hints in this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Baimetov committed Nov 7, 2024
1 parent a2f771d commit 16085e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StaticLS/IDE/InlayHints.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ getTypedefInlays absPath getTypes = do
fmtTypeStr :: Text -> Text
fmtTypeStr text
| text == "" = ""
| Text.length text > 50 = "" -- hide overly long inlays and buggy inlays
| Text.length text > 50 = "" -- hide overly long inlays and buggy inlays
| otherwise = " :: " <> text

getTypedefInlays_ :: AbsPath -> StaticLsM [InlayHint]
Expand Down
3 changes: 2 additions & 1 deletion src/StaticLS/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ serverDef argOptions logger = do
, handleResolveCodeAction
, handleDocumentSymbols
, handleCompletion
, handleInlayHintRequest -- TODO make this work. newly added
-- Disabled. Will enable in its own branch
-- , handleInlayHintRequest
, -- Currently disabled until we support configuration for the formatter
-- , handleFormat
handleCompletionItemResolve
Expand Down

0 comments on commit 16085e9

Please sign in to comment.