Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Avoid depending on the vscode module as much as possible #50

Description

@Blond11516

We should avoid depending on the vscode typescript module as much as possible because it's only available when the extension is run within vscode itself.

This is fine for using the extension normally, but it complicates tests a lot because we have to create manual mocks for anything we import from vscode that has a runtime component (ie not types).

The worst offender is Uri, for which there is a partial replacement through the vscode-uri package, but it's not a perfect match. Some tedious manual mocking is still required.

The ultimate goal would be to have no dependencies on vscode outside of the extension.ts entrypoint.

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