Skip to content

Replaces part of the local file path for code

Tim Zallmann requested to merge tz-send-relative-file-name into main

This replaces the file path to be sent for the prompt with the directory path of the workspace folder so only the actual relative path is sent. As we sent right now the full local path to the prompt and the model.

As we sent now the full local path , e.g. /Users/ajiojiio/test-repo/etc/test.js but we only want the relative path in that repo /etc/test.js

This also takes @phikai comment into consideration by iterating over all linked workspaces

the only thing we'll want to be cautious of (for whoever ends up reviewing) is multi-root workspaces and other things where there may be more things in those arrays that we'd need to try and handle.

closes #1014 (closed)

Edited by Tim Zallmann

Merge request reports

Loading