Skip to content

provide API vscode.env.openItem #88273

Closed
Closed

Description

@tjx666

openExternal doesn't work when file path contains non-ascii chars.
reference issues: electron/electron#6302

I'm working with my extension open-in-external-app, but I found that the following code doesn't work when the filePath contains non-ascii chars.

vscode.env.openExternal(vscode.Uri.file(filePath));

for example: vscode.env.openExternal(vscode.Uri.file('C:/测试.md'));
It works well when filePath only includes ascii chars. Is there any methods to fix it, or provide the API vscode.env.openItem as electron?

Activity

  1. added
    *duplicate
    on Jan 8, 2020
  2. vscodebot commented on Jan 8, 2020

    @vscodebot

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

    Happy Coding!

  3. jrieken commented on Jan 8, 2020

    @jrieken
    Contributor
  4. locked and limited conversation to collaborators on Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateuri

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions