Skip to content

Null entry in launch.json configurations array crashes extension host and breaks GitHub authentication #307691

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.114.0
  • OS Version: MacOs - but probably all

Steps to Reproduce:

  1. Clone https://github.com/losnoco/Cog.git - It's a music player for Mac.
  2. Go into Cog.
  3. Run code .
  4. Notice how you're suddenly not logged into Github any more under the chat window.
  5. Try to login. It fails immediately with Failed to sign in to GitHub. Would you like to try again?
  6. The logs say: 2026-04-03 18:44:34.210 [error] [Window] Cannot read properties of null (reading 'name'): TypeError: Cannot read properties of null (reading 'name')2026-04-03 18:44:34.210 [error] [Window] Cannot read properties of null (reading 'name'): TypeError: Cannot read properties of null (reading 'name')

What's causing it?

.vscode/launch.json looks like so:

"configurations": [
    {
        "name": "Debug Local File",
        "type": "Ruby",
        "request": "launch",
        "program": "${workspaceRoot}/Scripts/update_feed.rb"
    },
    null
]

There's a literal null sitting in the configurations array. VS Code iterates over that array, tries to read .name from each entry, hits null, and blows up with exactly the error I've been seeing: Cannot read properties of null (reading 'name').

That crash in the extension host cascades and takes down the GitHub authentication provider with it, which is why it looked like an auth problem but was actually a workspace config issue torpedoing the entire extension host process on startup.

The fix is just removing that trailing null:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug Local File",
            "type": "Ruby",
            "request": "launch",
            "program": "${workspaceRoot}/Scripts/update_feed.rb"
        }
    ]
}

I've raised that on their repo - but - it feels like vscode could be a little more robust here perhaps? VS Code should skip or warn about invalid entries in the configurations array, not crash the chat window?

Activity

  1. added
    stale
    and removed
    stale
    on Apr 13, 2026
  2. added
    bug
    debug
    on Apr 14, 2026
  3. added this to the 1.117.0 milestone on Apr 14, 2026
  4. roblourens commented on Apr 14, 2026

    @roblourens
    Member

    That's an interesting crash 😅 thanks for the PR! I may beef it up even more after that

  5. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Apr 14, 2026
  6. locked and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdebuginsiders-releasedtriage-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions