Skip to content

Conversation

@leigaol
Copy link
Contributor

@leigaol leigaol commented Jul 30, 2025

Problem

  1. Config is incorrect.

  2. Found another problem. The workspace.getAllTextDocuments() API only returns the open tabs that were clicked during this IDE session. If you open, close, reopen IDE, this API returns empty unless user re-click those files again.

Solution

  1. Correct the config
  2. Fix the bug later.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@leigaol leigaol requested a review from a team as a code owner July 30, 2025 18:38
@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.05%. Comparing base (ceed762) to head (d3adbc7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2011      +/-   ##
==========================================
+ Coverage   61.01%   61.05%   +0.04%     
==========================================
  Files         239      239              
  Lines       52501    52502       +1     
  Branches     3171     3177       +6     
==========================================
+ Hits        32031    32057      +26     
+ Misses      20409    20384      -25     
  Partials       61       61              
Flag Coverage Δ
unittests 61.05% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leigaol leigaol merged commit f7ade37 into aws:main Jul 31, 2025
6 checks passed
leigaol added a commit to aws/language-server-runtimes that referenced this pull request Jul 31, 2025
## Problem

aws/language-servers#2011

This is a follow up of the above PR. 

The workspace.getAllTextDocuments() API only returns the open tabs that
were clicked during this IDE session. If you open, close, reopen IDE,
this API returns empty unless user re-click those files again.

So we need to let IDE compute the list of open tab files and send it to
language server

## Solution

Add open tab params in InlineCompletionWithReferencesParams

<!---
    REMINDER:
    - Read CONTRIBUTING.md first.
    - Add test coverage for your changes.
    - Link to related issues/commits.
    - Testing: how did you test your changes?
    - Screenshots if applicable
-->

## License

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
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.

3 participants