Skip to content

Commit

Permalink
Added textDocument/documentHighlight
Browse files Browse the repository at this point in the history
Fixes Feature request:  documentHighlightProvider support #43
  • Loading branch information
gnikit committed May 13, 2022
1 parent 31c0e84 commit ba83834
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

## 2.5.0

### Added

- Added `textDocument/documentHighlight` request for Vim and EMACS
([#43](https://github.com/gnikit/fortls/issues/43))

## 2.4.0

### Added
Expand Down
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,22 +137,23 @@ An example for a Configuration file is given below

## Implemented server requests

| Request | Description |
| ----------------------------- | ------------------------------------------------------ |
| `workspace/symbol` | Get workspace-wide symbols |
| `textDocument/documentSymbol` | Get document symbols e.g. functions, subroutines, etc. |
| `textDocument/completion` | Suggested tab-completion when typing |
| `textDocument/signatureHelp` | Get signature information at a given cursor position |
| `textDocument/definition` | GoTo definition/Peek definition |
| `textDocument/references` | Find all/Peek references |
| `textDocument/hover` | Show messages and signatures upon hover |
| `textDocument/implementation` | GoTo implementation/Peek implementation |
| `textDocument/rename` | Rename a symbol across the workspace |
| `textDocument/didOpen` | Document synchronisation upon opening |
| `textDocument/didSave` | Document synchronisation upon saving |
| `textDocument/didClose` | Document synchronisation upon closing |
| `textDocument/didChange` | Document synchronisation upon changes to the document |
| `textDocument/codeAction` | **Experimental** Generate code |
| Request | Description |
| -------------------------------- | ------------------------------------------------------ |
| `workspace/symbol` | Get workspace-wide symbols |
| `textDocument/documentSymbol` | Get document symbols e.g. functions, subroutines, etc. |
| `textDocument/completion` | Suggested tab-completion when typing |
| `textDocument/signatureHelp` | Get signature information at a given cursor position |
| `textDocument/definition` | GoTo definition/Peek definition |
| `textDocument/references` | Find all/Peek references |
| `textDocument/documentHighlight` | Same as `textDocument/references` |
| `textDocument/hover` | Show messages and signatures upon hover |
| `textDocument/implementation` | GoTo implementation/Peek implementation |
| `textDocument/rename` | Rename a symbol across the workspace |
| `textDocument/didOpen` | Document synchronisation upon opening |
| `textDocument/didSave` | Document synchronisation upon saving |
| `textDocument/didClose` | Document synchronisation upon closing |
| `textDocument/didChange` | Document synchronisation upon changes to the document |
| `textDocument/codeAction` | **Experimental** Generate code |

## Acknowledgements

Expand Down
1 change: 1 addition & 0 deletions fortls/langserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def noop(request: dict):
"textDocument/signatureHelp": self.serve_signature,
"textDocument/definition": self.serve_definition,
"textDocument/references": self.serve_references,
"textDocument/documentHighlight": self.serve_references,
"textDocument/hover": self.serve_hover,
"textDocument/implementation": self.serve_implementation,
"textDocument/rename": self.serve_rename,
Expand Down

0 comments on commit ba83834

Please sign in to comment.