Skip to content

Files open in new window instead of new tab #75

Open

Description

@nadrolinux

Hello,
Current version doesn't work properly in Ubuntu. When I try to open file by a right click action in Nautilus, file is opened in new window (new instance) instead of a new tab (share one VC instance).
Cheers,

Activity

  1. thiblahute commented on Jul 24, 2019

    @thiblahute

    This one is quite annoying indeed.

  2. thiblahute commented on Aug 28, 2019

    @thiblahute

    This happens because vscode exposes a socket in $XDG_RUNTIME_DIR/vscode-${somehash}-${version}-shared.sock which is reused between instance, but $XDG_RUNTIME_DIR is unique to each flatpak sandbox, so there is no way vscode find them.

  3. subins2000 commented on Jan 1, 2020

    @subins2000

    Yeah, this is annoying. Please fix

  4. gasinvein commented on May 30, 2020

    @gasinvein
    Contributor

    Nah, Discord has persistent socket name, while VS Code generates it from filesystem path hash and changes with each version, we can't pre-determine it reliably.

    Ideally, VS Code should be patched somehow like this, but it's obviously impossible to apply patches downstream on proprietary version.

  5. eszlari commented on May 30, 2020

    @eszlari
    Collaborator

    we can't pre-determine it reliably.

    What about creating the link after the app has started?

  6. gasinvein commented on May 30, 2020

    @gasinvein
    Contributor

    What about creating the link after the app has started?

    I'm afraid it'll be even more fragile than with Discord. We need to wait for the app to exit and terminate socat after it, but VS Code generally forks to background on launch. I don't know any easy way to watch for forked grandchild processes (except for creating cgroups which is unavailable in flatpak sandbox).

  7. gasinvein commented on Apr 5, 2021

    @gasinvein
    Contributor

    FYI this could be fixed by flatpak/flatpak#4126

  8. WiliTest commented on Feb 11, 2022

    @WiliTest

    for those looking for the solution on windows:
    just add the following setting in your User Settings file:

    "window.openFilesInNewWindow": "on"

    credit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions