VS Code

978 readers
14 users here now

founded 2 years ago
MODERATORS
1
2
1
VS Code Release 1.100 (code.visualstudio.com)
submitted 1 month ago by [email protected] to c/[email protected]
3
 
 

If I open a text file that needs root privileges to modify, I get this error:

Failed to save 'this_file': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.

That's fine, that's expected.

But when I click on "Retry as Sudo", I get this error:

Failed to save 'this_file': Unable to find pkexec or kdesudo.

This happens though pkexec is installed on my machine, at /usr/bin/pkexec; and I granted VSCodium access to it through Flatseal. How do I fix this?

4
 
 

I made this because I started using Codium but wanted to use an extension that didn't have an OpenVSX equivalent and found out MS removed the VSIX download buttons on the marketplace site.

This should also work for Code-OSS and the MS VS Code. You can also just use it to only download the VSIX files so you can keep them locally for future use or take them to another computer that does not have internet connection for whatever reason to install there.

It will also check for dependencies and download them if you don't already have them installed.

At the moment it only downloads the latest versions of an extension.

Sharing because I imagine I'm not the only one with this issue.

5
6
1
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
7
 
 

If this issue gets 20 upvotes, the bot says it'll get added to the backlog to get fixed. Just posting it here to help it get some traction. We have ~40 days before it's simply closed.

Last month I posted this issue to the VSCode github about a bug where new instances of VSCode launched from a windows terminal fail to inherit the environment if VSCode is already running. I have to use Windows where I work and I often need different environments when working on different projects so I'd really like this issue to get fixed.

8
1
VS Code Release 1.94 (code.visualstudio.com)
submitted 9 months ago by [email protected] to c/[email protected]
 
 
  • Find in Explorer - Quickly find files in the Explorer view with the improved Find control.
  • Source Control Graph - More filtering options and interactivity in the Source Control Graph.
  • Python test coverage - Run Python tests with coverage and get rich results in the editor.
  • ESM - Faster VS Code startup thanks to the migration to ESM.
  • Account preference - Specify which account to use for an extension.
  • Copilot in Native REPL - Get code completions and Inline Chat in the Native REPL.
  • Improved chat context - Drag & drop files or use IntelliSense for more relevant chat context.
  • Test environment setup - Get help with setting up a test framework for your workspace.
9
1
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
10
 
 

Do you know the .vscode/tasks.json file? You can add it to your project, and @vscode will run your configured commands automatically when you open the project ✨

I use this for the Inertia Table so it starts the web server and Vite without me having to open terminals for them 👌

#Laravel #PHP #JS #coding

11
12
13
 
 

Upvote the issue on Github if you want to see this feature added into VSCode.

14
15
 
 

Here is how you can add a simple action to open a folder in VSCodium within Nemo file manager.

  1. Create a new file in ~/.local/share/nemo/actions/ and name the file vscodium.nemo_action
  2. Open the file in a text editor
  3. Copy the code below into the file
[Nemo Action]
Name=Open in VSCodium
Comment=Open VSCodium in the selected folder
Exec=codium %F
Icon-Name=vscodium
Selection=Any
Extensions=dir;
  1. Save the changes made to the file
  2. Now when you right click inside a folder in Nemo, it will show an option "Open in VSCodium" and when you click this option, it will launch VSCodium using the currently directory as the workspace.

This can be modified to work with Visual Studio Code (Which is closed source unlike VSCodium) by editing codium %F to code %F

16
1
Sleep Sort (www.aprogrammerlife.com)
submitted 11 months ago by [email protected] to c/[email protected]
 
 

Time complexity isn't even associated to the size of the list. Amazing!

17
 
 

I need to be able to see the difference between the current working file and the previous commit as I am editing the file. The only history plugins I can find either use pop-ups (which disappear when I start typing) or a dedicated diff-view which takes up too much space on my small monitor.

18
 
 

Is there an extension that allows for automatic stashing on branch switch like GitHub desktop does?

There was an a proposal about it, but it got declined: https://github.com/microsoft/vscode/issues/86668

19
20
21
1
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

I am an intermediate VSC user, and have a problem with commands that are too close to each other in the right-click context menu for the SFTP. I constantly click something other than the top one marked here. It causes a mess that's easy enough to clean up but it's annoying. Any suggestions here?