Fix sent file path to relative path

Goal

We are now sending the full file path to the Code Suggestions API to enrich the prompt (as the directory paths help getting context) But we are sending the absolute disk file path compared to the relative path in the project. Which is unnecessary information.

Before:

/Users/phikai/project/index.js
/Users/phikai/project/foo/index.js
/Users/phikai/project/bar/index.js

After:

project/index.js
project/foo/index.js
project/bar/index.js

Status

Edited by François Rosé