Inline suggestion does not work when there is a .hg folder
Closed this issue · 1 comments
Describe the bug
It seems inline suggestion does not work in projects using mercurial, which has a .hg folder, as the files twinny uses have the extension of the SCM folder, which is removed in: https://github.com/rjmacarthy/twinny/blob/ef38e356186c19ffad43d67c3cf5cdd933da4990/src/extension/file-interaction.ts#L144
The Error is:
2024-04-16 10:27:29.269 [error] [rjmacarthy.twinny] provider FAILED
2024-04-16 10:27:29.269 [error] CodeExpectedError: cannot open file:///raid/standards/base-setups/risebase/production/scripts/auto_inactive.py.hg. Detail: Unable to read file '/raid/standards/base-setups/risebase/production/scripts/auto_inactive.py.hg' (Error: Unable to resolve nonexistent file '/raid/standards/base-setups/risebase/production/scripts/auto_inactive.py.hg')
at r.$tryOpenDocument (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2163:62448)
To Reproduce
Steps to reproduce the behavior:
- Have a mercurial repo (install mercurial, hg init)
- create file
- trigger inline completion
- See error in extension host output
Expected behavior
The inline completions should work
Thanks for the report. Will investigate for future release.