ide_selection not populated for files opened via ABAP remote filesystem extension (abapfs)
Description:
When editing files opened through the ABAP remote filesystem extension (abapfs), which provides a custom FileSystemProvider for ABAP repository objects on SAP systems (non-file:// URI scheme), selecting code (including via Ctrl+A / select all) does not populate the ide_selection context that Claude Code normally attaches to prompts.
Expected behavior:
Selection context should be forwarded regardless of the underlying URI scheme, or at minimum work for any active text editor with a valid selection.
Actual behavior:
No selection is attached for editors backed by the abapfs virtual filesystem. Selection works as expected in normal local file:// editors.
Suspected cause:
The selection-context hook may only recognize file:// (and possibly untitled:) URI schemes and silently skip other schemes such as the one used by the ABAP filesystem extension.
Environment:
- OS: Windows 11
- Claude Code VSCode extension
- ABAP remote filesystem extension (abapfs)
Workaround:
Copy/paste code manually into the chat, or save the ABAP object to a local file first.