Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy/Cut not working in VS Code Sandbox with ootb TypeScript 5.7.2 #238111

Open
smokeelow opened this issue Jan 17, 2025 · 3 comments
Open

Copy/Cut not working in VS Code Sandbox with ootb TypeScript 5.7.2 #238111

smokeelow opened this issue Jan 17, 2025 · 3 comments
Assignees

Comments

@smokeelow
Copy link

smokeelow commented Jan 17, 2025

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.96.4
  • OS Version: macOS Sequoia 15.2 (24C101)

Version: 1.96.4
Commit: cd4ee3b
Date: 2025-01-16T00:16:19.038Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.2.0

Steps to Reproduce:

  1. Run VS Code Sandbox via Run Extension debug command
    example
        {
            "name": "Run Extension",
            "type": "extensionHost",
            "request": "launch",
            "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
            "outFiles": ["${workspaceFolder}/dist/**/*.js"],
            "preLaunchTask": "${defaultBuildTask}",
            "smartStep": true,
            "sourceMaps": true,
        },
  1. Make sure that for JavaScript/TypeScript files you use OOTB VS Code TS Version
Image
  1. Try copy something in TS/JS files, it throws following error:
Console error stack

Image

Canceled: Canceled
at kh.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:70395)
at P.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:746)
at P.C (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:816)
at P.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:1033)
at Ch.cancel (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:3245)
at rt.cancel (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:3656)
at Object.l (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:114123)
at Dy.N (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:114601)
at Dy.L (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:113477)
at kh.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:112046)
at P.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:746)
at P.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:964)
at Vn.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:9457)
at kh.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:175:13296)
at P.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:746)
at P.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:964)
at Vn.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:9457)
at MessagePortMain. (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:175:11588)
at MessagePortMain.emit (node:events:518:28)
at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
at Object.callbackTrampoline (node:internal/async_hooks:130:17)
(anonymous) @ copyPasteController.ts:230

💡 But when i select this TS version, it works fine

Image

It also works fine with TS 5.7.2 in regular (non-sandbox) VS Code instance

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.4. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@smokeelow
Copy link
Author

issue still presents in VS Code 1.96.4

@smokeelow
Copy link
Author

Cut also not working

@smokeelow smokeelow changed the title Copy not working in VS Code Sandbox with ootb TypeScript 5.7.2 Copy/Cut not working in VS Code Sandbox with ootb TypeScript 5.7.2 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants