Skip to content

Invalid path separators used cause "editing outside the workspace" which is incorrect #285997

@rajbos

Description

@rajbos

Type: Bug

Description

I quite often get some confusion from Copilot that it thinks it is editing files outside of my workspace, where it is not. I then have to approve every file edit, which is not helpful.

  • Even a "reload window" does not help. I think I have seen this behavior now in different models as well.
  • Rebooting VS Code does not help when going back to the same session
  • Rebooting and starting a new session also does not work
Image

I did notice this on the panel:

Image

Which is odd, since it should be a full windows path: c:\users\RobBos\....

Extension version: 0.35.2
VS Code version: Code 1.107.1 (994fd12, 2025-12-17T14:15:14.850Z)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs
Trace: Resolved chat model
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: false.
Trace: CodeSearchChunkSearch.updateIndexedCommitForAllRepos
Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks). Checking status from endpoint.
Trace: CodeSearchChunkSearch.getRepoIndexStatusFromEndpoint(file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: GithubCodeSearchService::getRemoteIndexState(rajbos/actions-marketplace-checks). Found indexed commit: 03519039f9eb02100d6714d470a27a9ed2a5b430.
Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks). Updating state to Ready.
Trace: ChatStatusWorkspaceIndexingStatus::updateStatusItem(id=20): starting
Trace: CodeSearchChunkSearch::initialize#21 started
Trace: CodeSearchChunkSearch::initialize#21 success. Elapsed 0.06880000000819564
Trace: ChatStatusWorkspaceIndexingStatus::_writeStatusItem()
Trace: CodeSearchWorkspaceDiff: refreshing diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Got 10 initially changed files for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Returning [object ResourceSet] changes for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff: Refreshed diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks. New diff count: 10
Trace: CodeSearchWorkspaceDiff: Refreshed all diffs. New local diffs count: 0
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: false.
Trace: CodeSearchWorkspaceDiff: refreshing diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Got 10 initially changed files for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Returning [object ResourceSet] changes for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff: Refreshed diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks. New diff count: 10
Trace: CodeSearchWorkspaceDiff: Refreshed all diffs. New local diffs count: 0
Trace: CodeSearchWorkspaceDiff: refreshing diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Got 10 initially changed files for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Returning [object ResourceSet] changes for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff: Refreshed diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks. New diff count: 10
Trace: CodeSearchWorkspaceDiff: Refreshed all diffs. New local diffs count: 0
Trace: CodeSearchChunkSearch.updateIndexedCommitForAllRepos
Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks). Checking status from endpoint.
Trace: CodeSearchChunkSearch.getRepoIndexStatusFromEndpoint(file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: GithubCodeSearchService::getRemoteIndexState(rajbos/actions-marketplace-checks). Found indexed commit: 03519039f9eb02100d6714d470a27a9ed2a5b430.
Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks). Updating state to Ready.
Trace: ChatStatusWorkspaceIndexingStatus::updateStatusItem(id=21): starting
Trace: CodeSearchChunkSearch::initialize#22 started
Trace: CodeSearchChunkSearch::initialize#22 success. Elapsed 0.12020000000484288
Trace: ChatStatusWorkspaceIndexingStatus::_writeStatusItem()
Trace: CodeSearchWorkspaceDiff: refreshing diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Got 10 initially changed files for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff::tryGetDiffedIndexedFiles() Returning [object ResourceSet] changes for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks
Trace: CodeSearchWorkspaceDiff: Refreshed diff for file:///c%3A/Users/RobBos/code/repos/rajbos/actions-marketplace-checks. New diff count: 10
Trace: CodeSearchWorkspaceDiff: Refreshed all diffs. New local diffs count: 0
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: true.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Request IDs
b9c04bba-7a56-4b59-9cd7-89928e1f5029
faca72de-2599-48cc-bf36-4b1843b49615
3d34a93c-e54b-4d79-9da9-302c747f4dcb
7b714496-2818-4e88-9c59-900695cd3551
ce3808c9-e1d9-47fd-ba78-78eea1ca4b99
7f9124a8-1ef8-4466-bc6d-9974374772b9
54a19752-1b1b-4228-a34d-f52aa53806f6
ca7a6d8b-9b42-474d-8893-dd29e2e9cd58
37fc4ae9-63aa-4c77-81e0-922d6c1d5ac1
f2c62714-da79-4e84-99c0-e1a3ed10a9c5
0d9d1104-bf35-4d79-b8b2-74a372858154
d34fbd8b-d77c-4eea-8e54-e6d66a01c511
708b5cc2-1951-4f99-8b13-494352615c31
7dc404f8-1cd4-4e4f-bf78-a9eed1d5722e
f9139d1c-4b19-4e3b-b226-de4726d0e780
89b104b4-52ce-49ad-b31f-84ad70d7714f
2c69ed54-f90f-480c-ba0a-b0fcb5acf63b
5d5ffa6a-e4bc-4a8a-92bc-7383ba27a647
51e9d4d2-d4e4-4bd7-877a-1fbe484ab492
b7c0bb15-a00c-42b3-bcc3-3427d4607b9f
17ffb591-cd39-4c7f-9f42-3310725f1c1f
5176f1b5-70fd-4633-bb50-23fe97bcc32f
31dd7332-a7be-40d9-a6f2-47f7971c00cd
74f6afbd-1c71-4e0d-b0eb-7cfa45b2d926
93fc97d2-1667-4e58-a71b-0121549d0328
8df88272-58e9-4eeb-a792-8e7e9d55bac1
312ba306-8320-4835-bac6-f2ab5b64a7ab
System Info
Item Value
CPUs Intel(R) Core(TM) Ultra 7 265H (16 x 3686)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.46GB (6.82GB free)
Process Argv --crash-reporter-id bf40f10f-1530-4e61-bd3c-aa48cc914d2f
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31436602
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
3efgi100_wstrepl:31403338
use-responses-api:31390855
je187915:31401257
2a0ce269:31428710
ec5jj548:31422691
terminalsuggestenabled:31431119
cmp-ext-treat:31426748
cp_cls_c_966_ss:31435507
copilot6169-t2000-control:31440805
c0683394:31419495
478ah919:31426797
ge8j1254_inline_auto_hint_haiku:31431912
a5gib710:31434435
5j92g670_sonnet:31434465
no_request_with_suggest:31435826
rename_enabled:31436409
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_t:31432745
cp_cls_c_1081:31433293
copilot-nes-oct-trt:31432596
nes-slash-models-on:31441832
nes-set-to-on:31441941

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugchat

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions