question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSCodeCallVisual doesn't work for certain command

See original GitHub issue

Specifically, for this mapping

noremap <C-l>e <Cmd>call VSCodeCallVisual('jupyter.execSelectionInteractive', 1)<CR><Esc>

There is no effect when pressing “jupyter.execSelectionInteractive”

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
theol0403commented, Nov 19, 2022

@introom all the code you have provided looks correct. You don’t even need the vscode keybinding, C-l is already sent to VSCode. Not sure what the problem is.

@Jendker sorry but all his code looks correct, this is definitely the way to solve the problem.

Maybe someone else will have an idea on how to send selection to VSCode.

This is the purpose of VSCodeCallVisual

This seems to be a duplicate of https://github.com/vscode-neovim/vscode-neovim/issues/771, but since that issue is closed, I’ll make this one the official tracker.

Maybe try to use xnoremap?

0reactions
introomcommented, Nov 20, 2022

Maybe try to use xnoremap? Thanks. This one does not help though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Interface (CLI) - Visual Studio Code
Visual Studio Code has a powerful command-line interface built-in that lets you control how you launch the editor. You can open files, install...
Read more >
How to call VS Code Editor from terminal / command line
Launch VS Code. Command + Shift + P to open the Command Palette. Type shell command , to find the Shell Command: Install...
Read more >
How to Open Visual Studio Code From Your Terminal
VS Code is a popular text editor created by Microsoft. Once you have VS Code open, it should look like this: image. Next,...
Read more >
Visual Studio Developer Command Prompt ...
terminal that can host either of these shells (Developer Command Prompt and Developer PowerShell). You can also open multiple tabs of each shell ......
Read more >
How to start VS Code from the terminal (command line)
On windows, open a Command Prompt window, on MacOS, open a terminal window. 2. Navigate to the folder or file you want to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found