How to use the vscode-jsonrpc.NotificationType function in vscode-jsonrpc

To help you get started, we’ve selected a few vscode-jsonrpc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / vscode-languageserver-node / server / src / protocol.ts View on Github external
* The exit event is sent from the client to the server to
 * ask the server to exit its process.
 */
export namespace ExitNotification {
	export const type = new NotificationType0('exit');
}

//---- Configuration notification ----

/**
 * The configuration change notification is sent from the client to the server
 * when the client's configuration has changed. The notification contains
 * the changed configuration as defined by the language client.
 */
export namespace DidChangeConfigurationNotification {
	export const type = new NotificationType('workspace/didChangeConfiguration');
}

/**
 * The parameters of a change configuration notification.
 */
export interface DidChangeConfigurationParams {
	/**
	 * The actual changed settings
	 */
	settings: any;
}

//---- Message show and log notifications ----

/**
 * The message type
github Armitxes / VSCode_SQF / node_modules / vscode-languageserver-protocol / lib / protocol.js View on Github external
(function (PublishDiagnosticsNotification) {
    PublishDiagnosticsNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/publishDiagnostics');
})(PublishDiagnosticsNotification = exports.PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = {}));
/**
github redhat-developer / rsp-server / api / docs / org.jboss.tools.rsp.schema / src / main / resources / client / typescript / src / protocol / generated / messages.ts View on Github external
* which keeps track of filesystem paths that may be searched for server
         * runtimes.
         */
        export namespace DiscoveryPathAddedNotification {
            export const type = new NotificationType('client/discoveryPathAdded');
        }
        /**
         * The `client/discoveryPathRemoved` notification is sent by the server to all
         * clients in response to the `server/removeDiscoveryPath` notification.
         *
         * This call indicates that a discovery path has been removed from the RSP model
         * which keeps track of filesystem paths that may be searched for server
         * runtimes.
         */
        export namespace DiscoveryPathRemovedNotification {
            export const type = new NotificationType('client/discoveryPathRemoved');
        }
        /**
         * The `client/serverAdded` notification is sent by the server to all clients in
         * a response to the `server/createServer` notification.
         *
         * This notification indicates that a new server adapter has been created in the
         * RSP model of existing servers. As mentioned above, this was most likely in
         * response to a server/createServer notification, but is not strictly limited
         * to this entrypoint.
         */
        export namespace ServerAddedNotification {
            export const type = new NotificationType('client/serverAdded');
        }
        /**
         * The `client/serverRemoved` notification is sent by the server to all clients
         * in response to the `server/deleteServer` notification.
github Armitxes / VSCode_SQF / node_modules / vscode-languageserver-protocol / lib / protocol.js View on Github external
(function (LogMessageNotification) {
    LogMessageNotification.type = new vscode_jsonrpc_1.NotificationType('window/logMessage');
})(LogMessageNotification = exports.LogMessageNotification || (exports.LogMessageNotification = {}));
//---- Telemetry notification
github redhat-developer / vscode-rsp-ui / src / protocol.ts View on Github external
}

export namespace DeleteServerNotification {
    export const type = new NotificationType('server/deleteServer');
}

export namespace StartServerAsyncRequest {
    export const type = new RequestType1('server/startServerAsync');
}

export namespace StopServerAsyncRequest {
    export const type = new RequestType1('server/stopServerAsync');
}

export namespace ServerStateChangeNotification {
    export const type = new NotificationType('client/serverStateChanged');
}

export namespace ServerProcessOutputAppendedNotification {
    export const type = new NotificationType('client/serverProcessOutputAppended');
}
github redhat-developer / vscode-rsp-ui / src / protocol.ts View on Github external
}

export namespace GetRequiredAttributesRequest {
    export const type = new RequestType1('server/getRequiredAttributes');
}

export namespace GetOptionalAttributesRequest {
    export const type = new RequestType1('server/getOptionalAttributes');
}

export namespace GetServerHandlersRequest {
    export const type = new RequestType0, void, void>('server/getServerHandles');
}

export namespace DeleteServerNotification {
    export const type = new NotificationType('server/deleteServer');
}

export namespace StartServerAsyncRequest {
    export const type = new RequestType1('server/startServerAsync');
}

export namespace StopServerAsyncRequest {
    export const type = new RequestType1('server/stopServerAsync');
}

export namespace ServerStateChangeNotification {
    export const type = new NotificationType('client/serverStateChanged');
}

export namespace ServerProcessOutputAppendedNotification {
    export const type = new NotificationType('client/serverProcessOutputAppended');
github redhat-developer / rsp-server / api / docs / org.jboss.tools.rsp.schema / src / main / resources / client / typescript / src / protocol / generated / messages.ts View on Github external
* This notification may be sent by any procedure that an extension
         * to the RSP may decide requires a long-running task to be registered.
         */
        export namespace JobAddedNotification {
            export const type = new NotificationType('client/jobAdded');
        }
        /**
         * The `client/jobRemoved` notification is sent by
         * the server to all clients when any long-running task
         * has been completed, canceled, or errors.
         *
         * This notification may be sent by the server when any of its long-running
         * tasks have been completed;
         */
        export namespace JobRemovedNotification {
            export const type = new NotificationType('client/jobRemoved');
        }
        /**
         * The `client/jobChanged` notification is sent by the server to all clients
         * when any long-running task has its progress updated.
         */
        export namespace JobChangedNotification {
            export const type = new NotificationType('client/jobChanged');
        }
    }
}
github microsoft / vscode-languageserver-node / server / src / protocol.ts View on Github external
* The message type. See {@link MessageType}
	 */
	type: MessageType;

	/**
	 * The actual message
	 */
	message: string;
}

/**
 * The show message notification is sent from a server to a client to ask
 * the client to display a particular message in the user interface.
 */
export namespace ShowMessageNotification {
	export const type = new NotificationType('window/showMessage');
}

export interface MessageActionItem {
	/**
	 * A short title like 'Retry', 'Open Log' etc.
	 */
	title: string;
}

export interface ShowMessageRequestParams {
	/**
	 * The message type. See {@link MessageType}
	 */
	type: MessageType;

	/**
github scalameta / metals-vscode / src / protocol.ts View on Github external
export namespace MetalsSlowTask {
  export const type = new RequestType<
    MetalsSlowTaskParams,
    MetalsSlowTaskResult,
    void,
    void
  >("metals/slowTask");
}
export interface MetalsSlowTaskParams {
  message: string;
}
export interface MetalsSlowTaskResult {
  cancel: boolean;
}
export namespace ExecuteClientCommand {
  export const type = new NotificationType(
    "metals/executeClientCommand"
  );
}

export namespace MetalsStatus {
  export const type = new NotificationType(
    "metals/status"
  );
}
export namespace MetalsDidFocus {
  export const type = new NotificationType(
    "metals/didFocusTextDocument"
  );
}

export interface MetalsStatusParams {
github microsoft / vscode-languageserver-node / protocol / src / protocol.ts View on Github external
textDocument: TextDocumentItem;
}

/**
 * The document open notification is sent from the client to the server to signal
 * newly opened text documents. The document's truth is now managed by the client
 * and the server must not try to read the document's truth using the document's
 * uri. Open in this sense means it is managed by the client. It doesn't necessarily
 * mean that its content is presented in an editor. An open notification must not
 * be sent more than once without a corresponding close notification send before.
 * This means open and close notification must be balanced and the max open count
 * is one.
 */
export namespace DidOpenTextDocumentNotification {
	export const method: 'textDocument/didOpen' = 'textDocument/didOpen';
	export const type = new NotificationType(method);
}

/**
 * An event describing a change to a text document. If range and rangeLength are omitted
 * the new text is considered to be the full content of the document.
 */
export type TextDocumentContentChangeEvent = {
	/**
	 * The range of the document that changed.
	 */
	range: Range;

	/**
	 * The optional length of the range that got replaced.
	 *
	 * @deprecated use range instead.