Skip to content

VSCode should not open browser on first start without user's say-so #14934

Closed

Description

  • VSCode Version: 1.7.1 02611b4
  • OS Version: Arch

Steps to Reproduce:

  1. Install visual-studio-code from AUR
  2. Open installed application.

Upon first start vscode opens a web browser pointing to https://code.visualstudio.com/docs?start=true. It should not do that without getting a confirmation from user it is OK to do so.

Some editors choose to have a "welcome" page with links to documentation (cf. Eclipse, Qt Creator), it could be one possible solution.

Perhaps a MD/RST document could be opened upon first start with some brief info and helpful links (cf. Vim, Emacs).

Another option would be a prompt asking user to open a link could do as well, but personally I think this would be worse solution.

Activity

  1. rebornix commented on Nov 3, 2016

    @rebornix
    Contributor

    Assign to Christof Marti (@chrmarti) as it's kind of getting started experience.

  2. dawsbot commented on Dec 15, 2016

    @dawsbot

    First-time permissions aside, Is this supposed to happen each time you open vscode? I'm finding the "Getting Started" docs annoying each and every time I want to edit with vscode.

  3. chrmarti commented on Dec 19, 2016

    @chrmarti
    Collaborator

    dawsonbotsford This should only happen once - on first startup. Please open an issue if it shows more than once.

  4. dawsbot commented on Dec 19, 2016

    @dawsbot

    Christof Marti (@chrmarti) I swapped to the Insiders build and I haven't seen this issue anymore. Will let yall know if it arises again. I also got a reset color scheme each time I opened vscode, so clearly something was wonky with persistence.

  5. mnghsn commented on Feb 20, 2018

    @mnghsn

    +1 in 2018.

    Opening browser pretty annoying when I re-install VS Code.
    Now we have a welcome page to give user some guide and help, I think there's no need to open a browser.

  6. tinanigro commented on May 18, 2019

    @tinanigro

    +1 there should be at least a Command Line Option flag to disable the automatic opening of a browser window on first launch, to better comply with automated deployment scenarios.

  7. rkennesson commented on May 31, 2019

    @rkennesson

    I could have sworn there was a command line option posted to one of these issues but I can't find it.

    I was going to add it to my dotfiles but figured I could find it again if I needed it. Unfortunately the words I would use to search for it are so common that I can't seem to find it or remember how I got to it in the first place.

  8. chrmarti commented on Jun 3, 2019

    @chrmarti
    Collaborator

    --skip-getting-started will skip opening the browser until you start without that flag. You probably want to always pass it.

  9. rkennesson commented on Jun 3, 2019

    @rkennesson

    I don't know if this will survive updates but I'm going to try it. I'm on Kubuntu but if anyone is so inclined to try it it can be modified to suit your situation. I'm no expert so, until it's built into vscode, if there's a better way I'm willing to try it

    edit .bashrc and add

    alias code='code --skip-getting-started'

    and then to edit the *.desktop files

    sudo sed -i 's|/usr/share/code/code|/usr/share/code/code --skip-getting-started|g' /usr/share/applications/code*

    maybe in the future a settings.json variable could be set like skip-getting-started: true and code --skip-getting-started would add that to the settings.json file if it didn't exist. I'm sure you folks can think of something better but it's just an idea

  10. mnghsn commented on Jun 3, 2019

    @mnghsn

    VS Code reads ~/.config/Code/User/globalStorage/state.vscdb SQLite database which has workbench.hide.welcome=true to determine whether open welcome page on browser. You can edit and backup this file to your dotfiles.

    I have a state.vscdb that make VS Code skip welcome page and some notifications on first start up.
    https://github.com/jmlntw/dotfiles/blob/master/vscode/globalStorage/state.vscdb

  11. rkennesson commented on Jun 3, 2019

    @rkennesson

    jmlntw awesome. thanks. I took a look at it in sqlitebrowser and it's a nice simple fix. I'm going to add it to my vscode install script for later.

  12. jrieken commented on Oct 8, 2019

    @jrieken
    Contributor

    Thanks to Benjamin Pasero (@bpasero) we finally stopped doing this 👯‍♂ 👯

  13. bpasero commented on Oct 8, 2019

    @bpasero
    Contributor

    Actually for September.

  14. locked and limited conversation to collaborators on Nov 25, 2019
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions