Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing incl_suffixes as command line arguments to fortls #299

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

albertziegenhagel
Copy link
Contributor

Passing --incl_suffix to fortls as command line arguments did not take any effect. Although the arguments were parsed correctly and set as attributes to the LangServer instance, they where never passed to src_file_exts and hence got ignored later when iterating the root directory.

This is especially problematic when fortls is used via the Modern Fortran VS code extension when it tries to pass along settings from the settings.json file.

Passing `--incl_suffix` to fortls did not take any effect. Although the arguments were parsed correctly and set as attributes to the `LangServer` instance, they where never passed to `src_file_exts` and hence got ignored when iterating the root directory.
@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Merging #299 (c84e397) into master (c04d2ab) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #299   +/-   ##
=======================================
  Coverage   86.96%   86.96%           
=======================================
  Files          12       12           
  Lines        4571     4571           
=======================================
  Hits         3975     3975           
  Misses        596      596           
Impacted Files Coverage Δ
fortls/langserver.py 84.53% <100.00%> (ø)

Copy link
Member

@gnikit gnikit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gnikit gnikit merged commit 351ae01 into fortran-lang:master Jun 29, 2023
@albertziegenhagel albertziegenhagel deleted the fix-inc-suffix-arg branch June 29, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants