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
-
Editor ExtensionsJetBrains - Wasn't sending any file path. Done with gitlab-org/editor-extensions/gitlab-jetbrains-plugin#84 (closed) -
Editor ExtensionsVS Code - Done with !1014 (merged) -
~"Editor Extensions::NeoVim" - Will be done in gitlab-org/editor-extensions/gitlab.vim#54 (closed). -
Editor ExtensionsLanguage Server - Currently sends file name only. Will be done with https://gitlab.com/gitlab-org/editor-extensions/gitlab-language-server-for-code-suggestions/-/issues/39 -
Editor ExtensionsVisual Studio - Done with gitlab-org/editor-extensions/gitlab-visual-studio-extension#67 (closed).
Edited by François Rosé