Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

extension does not eager load when workspace contains .go files #2821

@theryansmith

Description

@theryansmith

The extension does not load on activationEvent ""workspaceContains:**/.go"

This means users loading a workspace containing go files need to open a .go file, or run specific go commands before they can build the workspace.

Steps to Reproduce:

  1. close all vscode instances
  2. open a workspace that has .go files, ensure that the default state does not focus on a .go code file
  3. try to ctrl-shift-p->"Go: Build Workspace"
  4. Notice that it fails because the extension is not loaded

Possible solution: Modify package.json to include the workspaceContains event:
"activationEvents": [
"workspaceContains:**/.go",
"onLanguage:go",
"onCommand:go.gopath",
"onCommand:go.tools.install",
"onDebugResolve:go"
],

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions