nemesv / vscode-copy-file-name

Extension for Visual Studio Code for coping the name of the currently active file.
https://marketplace.visualstudio.com/items?itemName=nemesv.copy-file-name
MIT License
8 stars 1 forks source link

Shortcut not working if the opened file is an image #4

Open wenfangdu opened 5 years ago

wenfangdu commented 5 years ago

image update Just found out I changed the shortcut when expression to enable the command when active file being image, so this could be considered a feature request. image

nemesv commented 5 years ago

I've never thought about this use case that is why you get the command failed error.

However currently it is not supported by VSCode (https://github.com/microsoft/vscode/issues/15178) to access non text editors with an extension. So I cannot implement this feature now.

What I could fix is the error so display something like "coping non text files names is not supported"

wenfangdu commented 5 years ago

Thanks, that would be more user friendly, :D. I've subscribed to the issue you mentioned above.

Jeremboo commented 1 year ago

Same issue here but with .mp3 files!

wenfangdu commented 1 year ago

However currently it is not supported by VSCode (https://github.com/microsoft/vscode/issues/15178) to access non-text editors with an extension. So I cannot implement this feature now.

@nemesv Seems like https://github.com/microsoft/vscode/issues/15178 has been fixed.