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: fix type symbol completion #1568

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

He1pa
Copy link
Contributor

@He1pa He1pa commented Aug 14, 2024

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):

  • add field to determin whether is a type symbol in unresolved_symbol
  • add expr symbol on type node if without unresolved_symbol
  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

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

  • N
  • Y

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

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

Signed-off-by: he1pa <18012015693@163.com>
@Peefy Peefy merged commit de1060e into kcl-lang:main Aug 14, 2024
11 of 12 checks passed
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 10384245402

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

  • 93 of 99 (93.94%) changed or added relevant lines in 5 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 70.587%

Changes Missing Coverage Covered Lines Changed/Added Lines %
kclvm/sema/src/advanced_resolver/node.rs 52 53 98.11%
kclvm/tools/src/LSP/src/completion.rs 13 15 86.67%
kclvm/sema/src/core/symbol.rs 22 25 88.0%
Files with Coverage Reduction New Missed Lines %
kclvm/tools/src/LSP/src/goto_def.rs 1 83.33%
kclvm/tools/src/LSP/src/completion.rs 1 91.89%
Totals Coverage Status
Change from base Build 10384063403: 0.04%
Covered Lines: 50595
Relevant Lines: 71678

💛 - Coveralls

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.

[Bug] Wrong completion items in the schema statement for complex types.
3 participants