Skip to content

TS Server: Send error event when a plugin fails to load #18849

@mjbvz

Description

@mjbvz

Problem
When a TS Server plug-in is not loaded, the TS Server currently fails silently. This results in a confusing experience for users since intellisense or other expected plugin features will not work. You currently have to check the TS Server logs to see that a plugin was not loaded

Request
Send an error event to the client when a plugin fails to load. I imagine the interface would look like:

type PluginInitializationFailedEventName = "pluginInitializationFailed";

interface PluginInitializationFailedEvent extends Event {
    event: PluginInitializationFailedEventName;
    body: PluginInitializationFailedEventBody;
}

interface PluginInitializationFailedEventBody {
    name: string;
    project?: string; // Path to the js/tsconfig file that registered this plugin
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions