Skip to content

Commit ba83834

Browse files
committed
Added textDocument/documentHighlight
Fixes Feature request: documentHighlightProvider support #43
1 parent 31c0e84 commit ba83834

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## Unreleased
44

5+
## 2.5.0
6+
7+
### Added
8+
9+
- Added `textDocument/documentHighlight` request for Vim and EMACS
10+
([#43](https://github.com/gnikit/fortls/issues/43))
11+
512
## 2.4.0
613

714
### Added

README.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,23 @@ An example for a Configuration file is given below
137137

138138
## Implemented server requests
139139

140-
| Request | Description |
141-
| ----------------------------- | ------------------------------------------------------ |
142-
| `workspace/symbol` | Get workspace-wide symbols |
143-
| `textDocument/documentSymbol` | Get document symbols e.g. functions, subroutines, etc. |
144-
| `textDocument/completion` | Suggested tab-completion when typing |
145-
| `textDocument/signatureHelp` | Get signature information at a given cursor position |
146-
| `textDocument/definition` | GoTo definition/Peek definition |
147-
| `textDocument/references` | Find all/Peek references |
148-
| `textDocument/hover` | Show messages and signatures upon hover |
149-
| `textDocument/implementation` | GoTo implementation/Peek implementation |
150-
| `textDocument/rename` | Rename a symbol across the workspace |
151-
| `textDocument/didOpen` | Document synchronisation upon opening |
152-
| `textDocument/didSave` | Document synchronisation upon saving |
153-
| `textDocument/didClose` | Document synchronisation upon closing |
154-
| `textDocument/didChange` | Document synchronisation upon changes to the document |
155-
| `textDocument/codeAction` | **Experimental** Generate code |
140+
| Request | Description |
141+
| -------------------------------- | ------------------------------------------------------ |
142+
| `workspace/symbol` | Get workspace-wide symbols |
143+
| `textDocument/documentSymbol` | Get document symbols e.g. functions, subroutines, etc. |
144+
| `textDocument/completion` | Suggested tab-completion when typing |
145+
| `textDocument/signatureHelp` | Get signature information at a given cursor position |
146+
| `textDocument/definition` | GoTo definition/Peek definition |
147+
| `textDocument/references` | Find all/Peek references |
148+
| `textDocument/documentHighlight` | Same as `textDocument/references` |
149+
| `textDocument/hover` | Show messages and signatures upon hover |
150+
| `textDocument/implementation` | GoTo implementation/Peek implementation |
151+
| `textDocument/rename` | Rename a symbol across the workspace |
152+
| `textDocument/didOpen` | Document synchronisation upon opening |
153+
| `textDocument/didSave` | Document synchronisation upon saving |
154+
| `textDocument/didClose` | Document synchronisation upon closing |
155+
| `textDocument/didChange` | Document synchronisation upon changes to the document |
156+
| `textDocument/codeAction` | **Experimental** Generate code |
156157

157158
## Acknowledgements
158159

fortls/langserver.py

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def noop(request: dict):
136136
"textDocument/signatureHelp": self.serve_signature,
137137
"textDocument/definition": self.serve_definition,
138138
"textDocument/references": self.serve_references,
139+
"textDocument/documentHighlight": self.serve_references,
139140
"textDocument/hover": self.serve_hover,
140141
"textDocument/implementation": self.serve_implementation,
141142
"textDocument/rename": self.serve_rename,

0 commit comments

Comments
 (0)