wk-j / vscode-save-and-run

Visual Studio Code extension to run commands whenever a file is saved https://marketplace.visualstudio.com/items?itemName=wk-j.save-and-run
Apache License 2.0
32 stars 7 forks source link

Stop working #5

Closed rodrigopandini closed 7 years ago

rodrigopandini commented 7 years ago

Stop working and just paste the copied content that are in the transfer area to the command line. There is some way to check if some other extension are affecting it?

wk-j commented 7 years ago

Sorry I don't understand You mean It just copy command into terminal area but not execute the command?

rodrigopandini commented 7 years ago

It just paste the content that are in the transfer area (Ctrl+c) into terminal. Don't execute anything. In the image bellow I copied the "test" (Ctrl+c) word and next just save the file (Ctrl+s) You can see that the "test" word is pasted into the terminal. out

wk-j commented 7 years ago

Strange !!!

This extension will overwrite your clipboard with specific command (your config) Look like https://github.com/xavi-/node-copy-paste not working correctly on your system.

rodrigopandini commented 7 years ago

yeah, strange! I'm in Ubuntu 16.04 LTS, 64bits. I'm not using any other extensions that ovewrite the clipboard. Here is my settings.json:

{
    "workbench.iconTheme": "vscode-icons",
    "saveAndRun": {
        "commands": [
            {
                "match": ".*",
                "cmd": "npm run vendor"
            }
        ]
    },
    "typescript.check.npmIsInstalled": false
}
wk-j commented 7 years ago

Hi @rodrigopandini

In ubuntu you have to install xclip because it for node-copy-paste https://github.com/xavi-/node-copy-paste/issues/56

rodrigopandini commented 7 years ago

Yes. Works again! Thank you.

Just a note: the clipboard is override. So if you have something in your clipboard before save, keep in mind that you will lost it.