memo icon indicating copy to clipboard operation
memo copied to clipboard

Better logging for commands in general

Open nopeless opened this issue 2 years ago • 4 comments

For some reason this command isn't working for me

Paste html as markdown

And I went to read the source code and debug it

However, it's really hard to pin point where the issue is happening

https://github.com/svsool/memo/blob/525e777487aa7321c7cf2ff2d5548676371338e2/src/commands/pasteHtmlAsMarkdown.ts#L11-L35

When I issue the command nothing happens. There could be multiple reasons why thats not happening

  • Is vscode bugged and not issuing the comamnd?
  • Is editor a falsy value?
  • Are selections empty?

I'm just going to manually use turndown for now but I hope you add more logging so its easier to troubleshoot

nopeless avatar Oct 25 '22 17:10 nopeless

I mean I could clone it and go through the whole debugging myself but at the moment its just not worth the time

nopeless avatar Oct 25 '22 17:10 nopeless

Maybe you could paste what you are trying to copy to reproduce the problem.

Also what version you are using and in which env.

Thanks

svsool avatar Oct 25 '22 18:10 svsool

@svsool I followed the gif you shown

Using windows

lastest version of the extension in vscode

vs code is latest I believe

Btw, if you are trying to fix the problem I am encountering, you are missingn the point of the issue

nopeless avatar Oct 25 '22 18:10 nopeless

Will you add logging options?

nopeless avatar Nov 30 '22 10:11 nopeless