Skip to content

Commit 8441ef2

Browse files
eddiemundojneira
andauthored
Extract the pre-decl pragma parsing to its own module (#2428)
* actual initial qualify imported names implementation * renamed and added tests for QualifyImportedNames plugin * fix backtick and parenthesized operators not being qualified correctly * add tests, and remove logging * add license, readme, and demo * remove old demo, add slightly better demo * remove old mp4 demo, add slightly gif demo * update readme to use demo * readme typo * slight rewording of readme * slight rewording of readme 2 * remove Demo header from readme * don't need ShakeExtras and remove some more logging stuff * hopefully fix ghc 9 differences, rename plugin cabal file * forgot comma on module re-export * minimize imports * fix Hashmap import for ghc <= 8.8, remove unused extension pragmas * fix hls-qualify-imported-names ghcide bound * add test suite to CI * add more tests for qualify imported names plugin * change ghcide bound to match what @hololeap is doing * add qualify imported names to feature list * add demo, readme, test files, test hie.yaml to extra source files * extract pragma comment predecl parser to its own module, remove dead code, rename NextPragma to NextPragmaInfo, add getNextPragmaInfo function * add Pragmas.hs to hlint.yaml to allow CPP extension Co-authored-by: Javier Neira <[email protected]>
1 parent 6c9d44f commit 8441ef2

File tree

4 files changed

+407
-402
lines changed

4 files changed

+407
-402
lines changed

ghcide/.hlint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
- Development.IDE.Spans.Documentation
113113
- Development.IDE.Spans.Common
114114
- Development.IDE.Spans.AtPoint
115+
- Development.IDE.Spans.Pragmas
115116
- Development.IDE.Plugin.CodeAction
116117
- Development.IDE.Plugin.Completions
117118
- Development.IDE.Plugin.Completions.Logic

ghcide/ghcide.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ library
186186
Development.IDE.Spans.Documentation
187187
Development.IDE.Spans.AtPoint
188188
Development.IDE.Spans.LocalBindings
189+
Development.IDE.Spans.Pragmas
189190
Development.IDE.Types.Diagnostics
190191
Development.IDE.Types.Exports
191192
Development.IDE.Types.HscEnvEq

0 commit comments

Comments
 (0)