Quick fix here for anyone who is experiencing vscode opening all file path, which is quite annoying. If nautilus is your file manager, just run
xdg-mime default org.gnome.Nautilus.desktop inode/directory
Git Clone URL: | https://aur.archlinux.org/visual-studio-code-bin.git (read-only, click to copy) |
---|---|
Package Base: | visual-studio-code-bin |
Description: | Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version) |
Upstream URL: | https://code.visualstudio.com/ |
Licenses: | custom: commercial |
Conflicts: | code |
Provides: | code, vscode |
Submitter: | dcelasun |
Maintainer: | dcelasun |
Last Packager: | dcelasun |
Votes: | 1493 |
Popularity: | 17.22 |
First Submitted: | 2017-12-18 19:14 (UTC) |
Last Updated: | 2025-02-13 18:48 (UTC) |
« First ‹ Previous 1 .. 51 52 53 54 55 56 57 58 59 60 61 .. 79 Next › Last »
Quick fix here for anyone who is experiencing vscode opening all file path, which is quite annoying. If nautilus is your file manager, just run
xdg-mime default org.gnome.Nautilus.desktop inode/directory
If you are suddenly seeing all "open folder" actions in other apps use vscode as your file manager, this is due to the new inode/directory mimetype in the desktop file. On some DEs, it apparently becomes the default the handler (see here for details). To fix it, create or edit /etc/xdg/mimeapps.list
and add the following, replacing Nautilus with your preferred file manager:
[Default Applications]
inode/directory=org.gnome.Nautilus.desktop
@AveryFreeman: Seems to work fine for me.
I can't seem to get SCM to work with Git, it says there is no Software Control Manager installed. Git is installed on my system. I tried adding "/usr/bin" to git.path in settings, didn't seem to work. Is anyone else having this issue?
Please update .desktop
file in package.
Microsoft provided their .desktop
file for vscode https://github.com/Microsoft/vscode/blob/master/resources/linux/code.desktop
MimeType=text/plain;inode/directory;
is missing in current version of package.
% cat /usr/share/applications/visual-studio-code.desktop
[Desktop Entry]
Exec=/opt/visual-studio-code/code %f
Icon=visual-studio-code
Terminal=false
Type=Application
Name=Visual Studio Code
Comment=Editor for building and debugging modern web and cloud applications
Categories=Development;WebDevelopment;IDE;Utility;TextEditor;
StartupNotify=true
StartupWMClass=code
@Alad: I've replied to the deletion request on list.
"Breaking people's updates" is not a valid reason to go against the AUR's packaging guidelines. Please submit a -bin version for this one to be merged to.
For anybody who is launching code
through dmenu, rofi, etc.; and vscode just opens a file named code-stdin-whatever
:
This is expected behavior, and you are supposed to use the .desktop file for running vscode outside of a terminal [0].
I expressed my thoughts on this on the issue tracker [1], but this might or might not be acted upon.
For now, I just reconfigured my launcher to use .desktop files by default (it's the more common usecase anyway). Maybe you can do the same too.
[0] https://github.com/Microsoft/vscode/issues/40264#issuecomment-351930866
[1] https://github.com/Microsoft/vscode/issues/40351#issuecomment-352205798
Works as expected for me as well. Thanks.
OK, just pushed another release. Now /usr/bin/code is a symlink to the shell script, but the .desktop file calls the binary. Seems to be working as expected for me.
Pinned Comments
dcelasun commented on 2017-11-15 06:20 (UTC) (edited on 2020-02-06 21:33 (UTC) by dcelasun)
FREQUENTLY ASKED QUESTIONS (read before flagging or commenting!)
This is the official binary distribution from Microsoft. The one in the community repo is an unofficial build made from source. Beyond the license difference and branding, there are some proprietary features not available in the open source version.
Please check this page before flagging as out-of-date. If there is no new version on that page, it's not yet released. A tag on Github is NOT a release! If you can see the new version on the updates page but the AUR package is still not updated, flag it and give it time. It's usually done within a day or two.
Sometimes AUR helpers do weird things. Download the tarball and install it manually with
makepkg -si
. If that works, report the problem to your AUR helper's upstream, not here.xdg-open
uses vscode, not my file manager! How do I fix this?Install shared-mime-info-gnome. Also see this reddit thread.
Just because $X is not required to open the app, doesn't mean there is nothing that depends on it. Always search the comment history on AUR to see if that dependency has been previously discussed before writing your own comment. Still nothing? Then use namcap to make sure it's really not needed. If namcap doesn't complain, please leave a comment here and I'll investigate.
The problem might be a packaging issue (wrong paths, dependencies, icons), so please write a comment here first. If you don't get a reply, or if someone says it's an upstream issue, you can report it on Github.
No, you won't get a reply. Please stop doing this. Leave a comment here instead and be patient.