stef-levesque / vscode-multiclip

Multiple clipboards for VSCode
MIT License
46 stars 12 forks source link

'auto' is inserted after copy-paste #24

Open balazser opened 5 years ago

balazser commented 5 years ago

If I copy a line using vscode-multiclip and paste it then an auto text is joined to my first copied text.

for example I copied the line test and after paste it became testauto.

vscode version: Version 1.33.1 (1.33.1) multiclip version: 0.1.5

aljazsim commented 5 years ago

I'm experiencing the same issue. Otherwise the plugin is great. Awesome job!

FatehAK commented 5 years ago

Same here

petroved commented 5 years ago

+1 VS code:

Version: 1.35.1 Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f Date: 2019-06-12T14:27:31.086Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Linux x64 4.4.0-145-generic

multiclip version: 0.1.5

sphynx commented 4 years ago

The same issue here. It looks like this extension has been abandoned?

AlvaroP95 commented 4 years ago

any response??

stef-levesque commented 4 years ago

I can't repro this issue on VSCode 1.49. I would need more context.

AlvaroP95 commented 4 years ago

@stef-levesque

Version: 1.49.0 (user setup) Commit: e790b931385d72cf5669fcefc51cdf65990efa5d Date: 2020-09-10T13:22:08.892Z Electron: 9.2.1 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.19041

@angular-devkit/core: 9.1.11. "auto" word added in my TypeScript files, HTML, CSS, etc.

I can't repro this issue on VSCode 1.49. I would need more context.

stefanvogel commented 3 years ago

Same here. 100% reproducible (VSCode v1.51.0; extension version v0.1.5)

edmunds-s commented 3 years ago

extension.ts:19

        if (txt.length === 0) {
            let eol;
            try {
                const files = vscode.workspace.getConfiguration("files");
    19.         eol = files.get("eol","\n");
            } catch (e) {
                eol = "\n";
            }
            txt = d.lineAt(sel.start.line).text + eol ;
        }

I have the same issue. To reproduce it, in VS settings set the end of line to "auto". "files.eol": "auto"

Setting eol to "\n" or "\r\n" alleviates the issue.

hitobashira commented 1 year ago

edmunds-s

thnks. now , I am in troble.

Setting eol to "\n" or "\r\n" alleviates the issue. me, too.

code : 1.78.2 b3e4e68a0bc097f0ae7907b217c1119af9e03435 2023-05-10T14:47:05.613Z Electron: 22.5.2 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Linux x64 6.2.13-1-MANJARO Sandboxed: No