vscode-paste-and-indent icon indicating copy to clipboard operation
vscode-paste-and-indent copied to clipboard

Stops working with the latest VS Code

Open kolyasya opened this issue 8 years ago • 13 comments
trafficstars

Thank you for a great plugin, I use it much. But on my latest VS Code it stops working very often. I use default keybindings from install manual:

 {
        "key": "cmd+v",
        "command": "pasteAndIndent.action",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "cmd+v",
        "command": "editor.action.clipboardPasteAction",
        "when": "!editorTextFocus"
    },
    {
        "key": "cmd+shift+v",
        "command": "editor.action.clipboardPasteAction",
        "when": "editorTextFocus && !editorReadonly"
    }

But sometimes it stops working for ctrl+v and starts working only for ctrl+shift+v And when I reload VS Code it starts working again just fine.

Maybe there is some problems with keybindings?

kolyasya avatar May 04 '17 07:05 kolyasya

I haven't noticed any breaking changes on the latest VSCode release but I will check it out. In the meantime if you are using Windows please change cmd to ctrl at the keybindings and see if it solves your problem.

rubymaniac avatar May 04 '17 07:05 rubymaniac

@rubymaniac sorry, forgot to mention. I'm using Mac OS and it is happening across few macs I have

kolyasya avatar May 04 '17 07:05 kolyasya

Yes, I have the same issue on Windows 10 vscode (1.12) The indent stops working when pasting.

I noticed that the paste indent is correct if I press ctr+z after ctrl+v (paste and indent command). When I press ctrl+z again, it will then undo my paste action.

benxshen avatar May 06 '17 13:05 benxshen

Can you please provide an example with the actual and the expected outcomes after performing paste and indent? I wanna see if it is a bug or a misconfiguration from your part.

On Sat, May 6, 2017 at 4:21 PM, benxshen [email protected] wrote:

Yes, I have the same issue on Windows 10 vscode (1.12) The indent stops working when pasting.

I noticed that the paste indent is correct if I press ctr+z after ctrl+v (paste and indent command). When I press ctrl+z again, it will then undo my paste action.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rubymaniac/vscode-paste-and-indent/issues/6#issuecomment-299639580, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlMSKBYSFoqLIFD2IY1Kt7w4woG0uTlks5r3HPCgaJpZM4NQUmE .

-- Gerry Athanasopoulos Software Engineer

Mobile: +30 693 727 9090 Github: https://github.com/rubymaniac Email: [email protected]

rubymaniac avatar May 06 '17 13:05 rubymaniac

Sorry, it's my wrong. It's working fine.

benxshen avatar May 08 '17 01:05 benxshen

VSCode v1.13.0 on Windows 10:

User Settings: { "editor.fontFamily": "Inconsolata, Consolas, 'Courier New, monospace", "editor.fontSize": 16, "editor.lineHeight": 20, "editor.tabSize": 2, "emmet.syntaxProfiles": { "javascript": "jsx" }, "editor.minimap.enabled": false, "editor.renderIndentGuides": false, "editor.dragAndDrop": true, "files.associations": { "*.js": "javascriptreact" }, "files.trimTrailingWhitespace": true, "vsicons.projectDetection.autoReload": true, "window.zoomLevel": 1, "workbench.welcome.enabled": false, "workbench.iconTheme": "vscode-icons", "sync.gist": "<redacted>", "sync.lastUpload": "2017-05-22T14:22:33.773Z", "sync.autoDownload": true, "sync.autoUpload": true, "sync.lastDownload": "2017-06-13T04:21:26.431Z", "sync.forceDownload": false, "sync.anonymousGist": false, "sync.host": "", "sync.pathPrefix": "", "sync.quietSync": false }

keybindings.json: [ { "key": "ctrl+v", "command": "pasteAndIndent.action", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+v", "command": "editor.action.clipboardPasteAction", "when": "!editorTextFocus" }, { "key": "ctrl+shift+v", "command": "editor.action.clipboardPasteAction", "when": "editorTextFocus && !editorReadonly" } ]

Copy pasting works for a while, then after a few times pasting, I can no longer paste. (ctrl+v). If I close VSCode and re-open, it works again for a while. No errors appear anywhere I can find. If I disable this extension, my copy-paste works again. No idea what's going on, but if you need anything else from me I'd be glad to provide.

JayV30 avatar Jun 14 '17 17:06 JayV30

@JayV30 I haven't got my hands on a Windows 10 machine yet, so I cannot reproduce the issue. Can you please Open Developer Tools and report here any exceptions (related to paste-and-indent)?

On a mac you can find it under Help menu (Help -> Open Developer Tools).

rubymaniac avatar Jun 16 '17 11:06 rubymaniac

@rubymaniac I got the same problem. Also on a Mac. I noticed that it doesn't stop working, though. It's just super delayed. The paste happens after anywhere between a few to 20 seconds. There's also no error being logged in the developer tools.

CalvinWalzel avatar Jan 30 '18 10:01 CalvinWalzel

@CalvinWalzel I am also on a Mac with the latest VSCode with no problems whatsoever. Can you please check with the latest VSCode?

rubymaniac avatar Feb 10 '18 18:02 rubymaniac

@rubymaniac it would be nice if the Windows ctrl requirement was documented, i ended up here because I couldn't find that anywhere else

nickforddev avatar Jul 23 '18 16:07 nickforddev

I've experienced this problem as described for ages. I thought it was a problem with some other extension so I've been going through and disabling/re-enabling them one by one as I notice the issue pop up. No luck.

I'm on the latest macOS Mojave, everything up to date.

Has anyone discovered a solution?

r3volution11 avatar Dec 12 '18 21:12 r3volution11

That gives a command not found error when attempting to paste.

r3volution11 avatar Apr 26 '19 22:04 r3volution11

I only just started noticing this happening: sometimes the paste is really delayed. I'm also on Mac.

varkor avatar Feb 26 '20 23:02 varkor