Skip to content

Commit 3ba09d1

Browse files
authored
Merge pull request #414 from fortran-lang/fix/issue-413
fix(lsp): use correct symbol for submodules
2 parents b32e084 + 4980ef4 commit 3ba09d1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

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

33
## Unreleased
44

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

714
### 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)