Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(buffer): prefer real path as buffer name #1699

Merged

Conversation

xiyaowong
Copy link
Collaborator

@xiyaowong xiyaowong commented Dec 11, 2023

  • WSL
  • Test behavior in remote development

Resolve #798

@xiyaowong xiyaowong force-pushed the feat/real-path-as-buffer-name branch 2 times, most recently from 479f03d to 2d7c59f Compare December 11, 2023 15:22
---Translate from a Windows path to a WSL path
---@param path string
---@return string?
function M.wslpath(path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this, can't we use the ts wsl function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing wsl.exe creates a new connection to the instance each time, which is unnecessary. Since nvim is already running in the instance, it is more efficient and reasonable to use it as a bridge to execute Linux commands.

@xiyaowong xiyaowong merged commit eff13f2 into vscode-neovim:master Dec 13, 2023
8 checks passed
@xiyaowong xiyaowong deleted the feat/real-path-as-buffer-name branch December 13, 2023 09:39
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.

Current file name in % register is invalid
3 participants