Skip to content

Files and directories created with external tools don't appear in File Explorer #251754

@pattobrien

Description

@pattobrien

Steps to Reproduce

  1. Create an MCP server with a tool that creates a NEW directory or a file within the current workspace and configure it to work in the current workspace.
  2. Trigger the tool call from Agent chat, so that the directory/file is created on disk.

Expected Result

User should immediately see the new file/directory appear in the File Explorer, as soon as it's created.

Actual Result

File / directory do not appear in explorer until the file is explicitly navigated to (e.g. if the LLM responds in the chat with a hyperlink to what directory/file was created, and the user clicks the link, then they will be correctly brought to the file and the file will then appear in the explorer).

VSCode Info

Version: 1.101.0
Commit: dfaf441
Date: 2025-06-11T15:00:50.123Z (6 days ago)
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions