Skip to content

Failed to parse Overleaf project name with square brackets ([]) in VSCode extensionΒ #283

@LaureatePoet

Description

@LaureatePoet

Describe the bug

When connecting to an Overleaf project whose project name contains square brackets (e.g., project[example]), the Overleaf Workshop VSCode extension fails to parse the project correctly. This causes Copilot chat and other extension features to malfunction or report errors related to file system provider parsing.

Expected behavior

The extension should correctly handle and parse Overleaf project names that include square brackets ([]) or other special characters, allowing all features such as Copilot chat to work normally regardless of project naming.

How To Reproduce

  1. Create or use an Overleaf project with a name that includes square brackets, for example: test[abc].
  2. Connect to this project using the Overleaf Workshop VSCode extension.
  3. Attempt to use Copilot chat or perform normal operations.
  4. Observe that an error is reported, such as:

    Failed to parse file system provider for uri: "overleaf-workshop://example.com?user=*******&project=******"
    or that chat/features do not work as expected.

Environment

  • Overleaf Workshop Extension version: 0.15.4
  • VS Code version: 1.101.2
  • Overleaf Edition: Official , Community

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions