fortran-lang / fortls

fortls - Fortran Language Server
https://fortls.fortran-lang.org/
MIT License
257 stars 41 forks source link

fix: evaluates langid only at LSP creation #279

Closed gnikit closed 1 year ago

gnikit commented 1 year ago

We do a lazy evaluation of the langid, only replacing it with a value at the LSP creation stage. This allows us to better isolate the LSP and the AST parts of the server.

Fixes #257

codecov[bot] commented 1 year ago

Codecov Report

Merging #279 (107c8e8) into master (8918355) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #279      +/-   ##
==========================================
+ Coverage   86.91%   86.94%   +0.02%     
==========================================
  Files          12       12              
  Lines        4556     4566      +10     
==========================================
+ Hits         3960     3970      +10     
  Misses        596      596              
Impacted Files Coverage Δ
fortls/helper_functions.py 97.74% <100.00%> (+0.01%) :arrow_up:
fortls/langserver.py 84.53% <100.00%> (+0.13%) :arrow_up: