Skip to content

Conversation

@x3rAx
Copy link

@x3rAx x3rAx commented Jan 23, 2026

When using suda to open root files, windsurf fails to complete and spams error notifications:

completion request failed: {"code":"unknown","message":"invalid_argument: empty share name for UNC-like path: //suda:///path/to/file.ext"}

While debugging I found that in the completion request, absolute_uri is broken and workspace_uri sometimes is a relative path:

{
  absolute_uri = "file://suda:///path/to/file.ext",
  cursor_offset = 4,
  cursor_position = {
    col = 4,
    row = 0
  },
  editor_language = "plaintext",
  language = 30,
  line_ending = "\n",
  text = "asdf\n",
  workspace_uri = "file://."
}

This PR adds relative path resolving and the removal of suda:// from the beginning of file paths to the util.get_uri() method.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants