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 8780337 commit 275beb2Copy full SHA for 275beb2
ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
@@ -195,9 +195,11 @@ mkCompl
195
196
where kind = Just compKind
197
docs' = imported : spanDocToMarkdown docs
198
+ isImported = isNothing additionalTextEdits
199
+ definedOrImported = if isImported then "*Imported from '" else "*Defined in '"
200
imported = case importedFrom of
201
Left pos -> "*Defined at '" <> ppr pos <> "'*\n'"
- Right mod -> "*Defined in '" <> mod <> "'*\n"
202
+ Right mod -> definedOrImported <> mod <> "'*\n"
203
colon = if optNewColonConvention then ": " else ":: "
204
documentation = Just $ CompletionDocMarkup $
205
MarkupContent MkMarkdown $
0 commit comments