Skip to content

"No active editor or URI available" when i use power tools #144000

@kangyiS

Description

@kangyiS

I want to open the Typora in vscode to view markdown files. So I download the extension "Power Tools", and add follow text in settings.json

"ego.power-tools.user": { "buttons": [ { "text": "Typora", "tooltip": "Open file in Typora editor", "action": { "type": "command", "command": "typora.open" }, "onEditorCreated": "if ($vs.window.activeTextEditor.document.languageId === 'md') { $v['button'].enable(); $v['button'].color = ''; } else { $v['button'].disable(); $v['button'].color = 'grey';}", "onEditorChanged": "if ($vs.window.activeTextEditor.document.languageId === 'md') { $v['button'].enable(); $v['button'].color = ''; } else { $v['button'].disable(); $v['button'].color = 'grey';}" } ] }

the button will show but when I click it, I can not open Typora and get a tip "No active editor or URI available"
I have already installed Typora and add to PATH, so how should I do ? Thank you very much !

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions