Skip to content

[FEATURE]: Make codebook work offline (Zed) #115

@lukejans

Description

@lukejans

Feature Description

It would be nice for Codebook to work in Zed when you aren't connected to the internet. Currently, when I have no internet connection, Codebook will fail to run and will not spellcheck code. I get the below message when running Codebook offline.

Language server codebook:

from extension "Codebook Spell Checker" version 0.1.11: Failed to fetch latest release: error fetching latest release

Caused by:
    0: error sending request for url (https://api.github.com/repos/blopker/codebook/releases)
    1: client error (Connect)
    2: dns error: failed to lookup address information: nodename nor servname provided, or not known
    3: failed to lookup address information: nodename nor servname provided, or not known

Use Case

I often use Zed offline, and it would be great to have spell checking offline too.

Proposed Solution

I'm not sure if the codebook extension stops working because it actually requires an internet connection to run or because it attempts to fetch the latest version. If the latter is true, maybe we can set up some way to see if there is an internet connection and only check for updates when connected to the internet.

Alternative Solutions

No response

Examples

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions