Skip to content

Fix timeline command to handle file input and timing issues - #341538

Merged
Logan Ramos (lramos15) merged 3 commits into
mainfrom
lramos15/agents/fix-vscode-issue-100611
Oct 14, 2026
Merged

Logan Ramos (lramos15) merged 3 commits into
mainfrom
lramos15/agents/fix-vscode-issue-100611

Conversation

@lramos15

Copy link
Copy Markdown
Member

Fix #100611

Copilot AI balanced review requested due to automatic review settings October 14, 2026 12:42
@lramos15
Logan Ramos (lramos15) enabled auto-merge (squash) October 14, 2026 12:42

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.

🟡 Changes recommended

Keyboard invocation on a focused folder can pin unsupported folder input, and the reported command path lacks regression coverage.

2 open findings
What changed in this PR

Fixes Timeline keyboard invocation by resolving the current resource and waiting for the view to open before updating it.

Changes:

  • Resolves focused Explorer or active editor resources.
  • Makes setUri await Timeline view creation.
  • Adds ordering coverage for URI notifications.
File Description
timeline.contribution.ts Resolves command resources and opens Timeline.
timelineService.ts Waits for view creation before emitting URI changes.
timeline.ts Updates the asynchronous service contract.
timelineService.test.ts Tests view-open and URI-event ordering.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…nding

When files.openTimeline is invoked without a resource, a folder focused in the Explorer is now ignored in favor of the active editor, since folders have no timeline of their own. Adds a regression test that runs the command without an argument and checks which resource reaches the timeline service.

Refs #100611

Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Base: 85f98014 Current: 702cb86f

No screenshot changes.

Folders resolved from Explorer focus now flow through like explicit folder arguments already do, keeping getResourceForCommand unchanged. Simplifies the command regression test to cover the argument, active editor and no-resource cases.

Refs #100611

Co-authored-by: Copilot <[email protected]>
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.

Fail to load timeline info when activate timeline view using keyboard shortcut

5 participants