We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7a3c3 commit d389f5fCopy full SHA for d389f5f
ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
@@ -202,7 +202,7 @@ mkCompl
202
_preselect = Nothing,
203
_sortText = Nothing,
204
_filterText = Nothing,
205
- _insertText = Just insertText,
+ _insertText = Just $ sanitize insertText,
206
_insertTextFormat = Just InsertTextFormat_Snippet,
207
_insertTextMode = Nothing,
208
_textEdit = Nothing,
@@ -227,6 +227,7 @@ mkCompl
227
pprLineCol (UnhelpfulLoc fs) = T.pack $ unpackFS fs
228
pprLineCol (RealSrcLoc loc _) =
229
"line " <> printOutputable (srcLocLine loc) <> ", column " <> printOutputable (srcLocCol loc)
230
+ sanitize = T.replace "$" "\\$"
231
232
233
mkAdditionalEditsCommand :: Maybe PluginId -> ExtendImport -> Maybe Command
0 commit comments