@@ -4,7 +4,7 @@ This table gives a summary of the features that HLS supports.
4
4
Many of these are standard LSP features, but a lot of special features are provided as [ code actions] ( #code-actions ) and [ code lenses] ( #code-lenses ) .
5
5
6
6
| Feature | [ LSP method] ( ./what-is-hls.md#lsp-terminology ) |
7
- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
7
+ | --------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
8
8
| [ Diagnostics] ( #diagnostics ) | ` textDocument/publishDiagnostics ` |
9
9
| [ Hovers] ( #hovers ) | ` textDocument/hover ` |
10
10
| [ Jump to definition] ( #jump-to-definition ) | ` textDocument/definition ` |
@@ -100,7 +100,7 @@ Completions for language pragmas.
100
100
Format your code with various Haskell code formatters.
101
101
102
102
| Formatter | Provided by |
103
- | ----------------- | ------------------------------ |
103
+ | --------------- | ---------------------------- |
104
104
| Brittany | ` hls-brittany-plugin ` |
105
105
| Floskell | ` hls-floskell-plugin ` |
106
106
| Fourmolu | ` hls-fourmolu-plugin ` |
@@ -261,6 +261,7 @@ Change/Update a type signature to match implementation.
261
261
Status: Until GHC 9.4, the implementation is ad-hoc and relies on GHC error messages to create a new signature. Not all GHC error messages are supported.
262
262
263
263
Known Limitations:
264
+
264
265
- Not all GHC error messages are supported
265
266
- Top-level and Function-local bindings with the same names can cause issues, such as incorrect signature changes or no code actions available.
266
267
@@ -337,6 +338,16 @@ support.
337
338
338
339
![ Selection range demo] ( https://user-images.githubusercontent.com/16440269/177240833-7dc8fe39-b446-477e-b5b1-7fc303608d4f.gif )
339
340
341
+ ## Folding range
342
+
343
+ Provided by: ` hls-code-range-plugin `
344
+
345
+ Provides haskell specific
346
+ [ Folding] ( https://code.visualstudio.com/docs/editor/codebasics#_folding )
347
+ support.
348
+
349
+ ![ Folding range demo] ( https://user-images.githubusercontent.com/54478821/184468510-7c0d5182-c684-48ef-9b39-3866dc2309df.gif )
350
+
340
351
## Rename
341
352
342
353
Provided by: ` hls-rename-plugin `
@@ -354,15 +365,14 @@ Known limitations:
354
365
The following features are supported by the LSP specification but not implemented in HLS.
355
366
Contributions welcome!
356
367
357
- | Feature | Status | [ LSP method] ( ./what-is-hls.md#lsp-terminology ) |
358
- | ------------------------| ------------------------------------------------------------------------------------------| -----------------------------------------------------|
359
- | Signature help | Unimplemented | ` textDocument/signatureHelp ` |
360
- | Jump to declaration | Unclear if useful | ` textDocument/declaration ` |
361
- | Jump to implementation | Unclear if useful | ` textDocument/implementation ` |
362
- | Folding | Unimplemented | ` textDocument/foldingRange ` |
363
- | Semantic tokens | Unimplemented | ` textDocument/semanticTokens ` |
364
- | Linked editing | Unimplemented | ` textDocument/linkedEditingRange ` |
365
- | Document links | Unimplemented | ` textDocument/documentLink ` |
366
- | Document color | Unclear if useful | ` textDocument/documentColor ` |
367
- | Color presentation | Unclear if useful | ` textDocument/colorPresentation ` |
368
- | Monikers | Unclear if useful | ` textDocument/moniker ` |
368
+ | Feature | Status | [ LSP method] ( ./what-is-hls.md#lsp-terminology ) |
369
+ | ---------------------- | ----------------- | ---------------------------------------------- |
370
+ | Signature help | Unimplemented | ` textDocument/signatureHelp ` |
371
+ | Jump to declaration | Unclear if useful | ` textDocument/declaration ` |
372
+ | Jump to implementation | Unclear if useful | ` textDocument/implementation ` |
373
+ | Semantic tokens | Unimplemented | ` textDocument/semanticTokens ` |
374
+ | Linked editing | Unimplemented | ` textDocument/linkedEditingRange ` |
375
+ | Document links | Unimplemented | ` textDocument/documentLink ` |
376
+ | Document color | Unclear if useful | ` textDocument/documentColor ` |
377
+ | Color presentation | Unclear if useful | ` textDocument/colorPresentation ` |
378
+ | Monikers | Unclear if useful | ` textDocument/moniker ` |
0 commit comments