-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
core: 'copy path' returns wrong path for windows #8098
Comments
@vince-fugnitto I've taken the liberty to clarify the title. I'll undo if you think it's not correct. |
Is it the issue about running electron app on windows on the same machine? We could think about solving it in such case, generally it is tricky, since electron even can be used to connect to remove backend in theory running on linux and then converting to windows paths would be bogus. |
Yes, for instance.
The backend should be capable of resolving and concatenating paths. The API should accept URI strings.
I thought we dropped this idea long ago, but once the backend can resolve paths, we will be able to support an electron frontend connected to a remote backend too. |
LabelProviders cannot be async for performance reasons. |
OK, let's collect the requirements, additional technical obstacles, and so on, and make a decision. This seems to be a bigger task. I can say, cool that we have a performant LabelProvider but it provides me a path that is incorrect. |
It can be potentially be resolved by #8187 |
Bug Description:
Following #7934, the
copy path
command does not produce the correct path for Windows.The directory separator and drive casing are incorrect due to the way we process paths in
packages/core/src/common/path.ts
.Example:
VS Code
C:\Users\kittaakos\dev\git\theia\packages\core\src\common\menu.spec.ts
Theia
/c:/Users/kittaakos/dev/git/theia/packages/core/src/common/menu.spec.ts
Steps to Reproduce:
copy path
command using the context-menuAdditional Information
navigator: add new command 'copy relative path' #8092 (comment)
Operating System: Windows
The text was updated successfully, but these errors were encountered: