You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing/contributing.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@ See the [tutorial](./plugin-tutorial.md) on writing a plugin in HLS.
196
196
197
197
When ghcide is built with the `ekg` flag, HLS opens a metrics server on port 8999 exposing GC and ghcide metrics. The ghcide metrics currently exposed are:
198
198
199
-
- `ghcide.values_count`- count of build results in the store
199
+
- `ghcide.values_count`- count of build results in the store
200
200
- `ghcide.database_count`- count of build keys in the store (these two would be the same in the absence of GC)
201
201
- `ghcide.build_count`- build count. A key is GC'ed if it is dirty and older than 100 builds
202
202
- `ghcide.dirty_keys_count`- non transitive count of dirty build keys
The code lens provider implements all the steps of the algorithm described earlier:
273
273
274
-
> 1. Request the type checking artefacts from the ghcide subsystem
274
+
> 1. Request the type checking artefacts from the ghcide subsystem
275
275
> 2. Extract the actual import lists from the type checked AST,
276
276
> 3. Ask GHC to produce the minimal import lists for this AST,
277
277
> 4. For every import statement without a explicit import list, find out what's the minimal import list, and produce a code lens to display it together with a diff to graft the import list in.
@@ -392,5 +392,4 @@ However integrating the plugin in haskell-language-server itself will need some
392
392
The full code as used in this tutorial, including imports, can be found in [this Gist](https://gist.github.com/pepeiborra/49b872b2e9ad112f61a3220cdb7db967) as well as in this [branch](https://github.com/pepeiborra/ide/blob/imports-lens/src/Ide/Plugin/ImportLens.hs)
393
393
394
394
I hope this has given you a taste of how easy and joyful it is to write plugins for HLS.
395
-
If you are looking for ideas for contributing, here are some cool ones found in the HLS issue tracker:
If you are looking for ideas for contributing, here are some cool ones found in the HLS [issue tracker](https://github.com/haskell/haskell-language-server/issues?q=is%3Aopen+is%3Aissue+label%3A%22type%3A+possible+new+plugin%22).
0 commit comments