Skip to content

Errors on each keypress when offline #165

@divan

Description

@divan

When there is no internet connection available, plugin seems to throw error on each keypress:

RPC[Error] code_name = InternalError, message = "Request getCompletions failed with message: getaddrinfo ENOTFOUND api.github.com"

This seems to be described in #93, but suggested solution is disable auto trigger of Copilot. This might be an option for some people, but I prefer it to be enabled by default, just don't show error when this error is encountered.

The problem is particularly nasty as this error prevents from normal typing – I need to press Enter to dismiss an error and then type the next character. Basically it makes typing impossible without internet.

Any idea how to prevent it from throwing an error?

I'm using Astronvim, not sure if the behaviour of the plugin is the same for all nvim configurations. Could anyone verify if they having the same behaviour?

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