From 6a36d621c1920b22d5f3bf02abe1145afd6859ac Mon Sep 17 00:00:00 2001 From: Chris Hansen Date: Wed, 1 Apr 2020 18:12:46 -0400 Subject: [PATCH] Fix bug with hover requests introduced in 5d759bb, fixes #159 --- fortls/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fortls/__init__.py b/fortls/__init__.py index 9411824..ccd2803 100644 --- a/fortls/__init__.py +++ b/fortls/__init__.py @@ -185,12 +185,13 @@ def main(): "use_signature_help": args.use_signature_help, "variable_hover": (args.variable_hover or args.hover_signature), "hover_signature": args.hover_signature, - "hover_language": args.hover_language, "sort_keywords": (not args.preserve_keyword_order), "enable_code_actions": (args.enable_code_actions or args.debug_actions), "max_line_length": args.max_line_length, "max_comment_line_length": args.max_comment_line_length } + if args.hover_language is not None: + settings["hover_language"] = args.hover_language # if args.debug_parser: if args.debug_filepath is None: