FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release unused LSP configured projects during idle cleanup by RyanCavanaugh · Pull Request #64603 · microsoft/TypeScript · GitHub

Repository navigation

Release unused LSP configured projects during idle cleanup - #64603

Open
Ryan Cavanaugh (RyanCavanaugh) wants to merge 3 commits into
microsoft:mainfrom
RyanCavanaugh:fix/lsp-idle-project-cleanup
Open

Ryan Cavanaugh (RyanCavanaugh) wants to merge 3 commits into
microsoft:mainfrom
RyanCavanaugh:fix/lsp-idle-project-cleanup

Conversation

Copy link
Copy Markdown
Member

Fixes #64463

Author: Copilot / Sol 6.1

Fixes microsoft#64463

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f12493fa-9c70-40a4-a2de-c498d69f0aa4
Copilot AI balanced review requested due to automatic review settings October 2, 2026 17:56
typescript-automation Bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 1 · 2

Open (3) What changed in this PR

Implements idle cleanup behavior that unloads unused LSP configured projects (and associated disk cache/config registry entries) while keeping actively used and referenced projects retained.

Changes:

  • Invoke configured-project cleanup during idle disk cache cleanup snapshot updates.
  • Add snapshot tests covering: releasing unused projects, retaining API-opened projects/files, and retaining referenced projects.
  • Update comments to reflect idle cleanup now includes unloading projects.
File Description
tsc/​internal/​project/​snapshot.go Triggers configured-project cleanup during idle cleanup snapshot cloning.
tsc/​internal/​project/​snapshot_test.go Adds coverage for idle cleanup project release/retention scenarios.
tsc/​internal/​project/​session.go Updates idle cleanup timer comment to include unloading unused projects.
tsc/​internal/​project/​projectcollectionbuilder.go Updates cleanupConfiguredProjects doc comment to mention idle cleanup.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread tsc/internal/project/snapshot.go Outdated
Resolve conflicts and adapt the idle cleanup regression tests to main's file-cache and API changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f12493fa-9c70-40a4-a2de-c498d69f0aa4

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Comment thread tsc/internal/project/snapshot_test.go Outdated
Comment thread tsc/internal/project/snapshot_test.go Outdated
Adapt to upstream path types, clarify the idle cleanup reason, and add explicit project retention assertions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f12493fa-9c70-40a4-a2de-c498d69f0aa4

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Backlog Bug PRs that fix a backlog bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

[LSP] Memory of configured projects is never released, even after didClose of all files — ~70 MB retained per project (7.0.2 and 7.1.0-dev.20260926.1)

2 participants


Back | FazBrowse Home | New Git URL