Skip to content

Commit 4b2465a

Browse files
committed
fix(lsp): use correct symbol for submodules
Fixes #413
1 parent b32e084 commit 4b2465a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
### Fixed
6+
7+
- Fixed incorrect document symbol for `SUBMODULE` statements
8+
([#413](https://github.com/fortran-lang/fortls/issues/413))
9+
510
## 3.1.1
611

712
### Fixed

fortls/langserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def map_types(type):
279279

280280
def serve_document_symbols(self, request: dict):
281281
def map_types(type, in_class: bool = False):
282-
if type == 1:
282+
if type in (1, 8):
283283
return 2
284284
elif type in (2, 3):
285285
if in_class:

0 commit comments

Comments
 (0)