kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.7k stars 119 forks source link

fix: fix lsp input file path #1649

Closed He1pa closed 2 months ago

He1pa commented 2 months ago

The lsp entry normalized input file to get the absolute path, which is used to get source code from vfs, but use the unnormalized path in parser to handle external packages.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10859270723

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Files with Coverage Reduction New Missed Lines %
kclvm/tools/src/LSP/src/state.rs 12 82.73%
<!-- Total: 12 -->
Totals Coverage Status
Change from base Build 10858890473: -0.01%
Covered Lines: 51202
Relevant Lines: 72562

💛 - Coveralls