typescript-language-server
Version:
Language Server Protocol (LSP) implementation for TypeScript using tsserver
68 lines • 4.39 kB
TypeScript
import vscodeUri from 'vscode-uri';
import type tsp from 'typescript/lib/protocol.d.js';
import { CommandTypes } from '../tsp-command-types.js';
import { ExecutionTarget } from './server.js';
export declare enum ServerType {
Syntax = "syntax",
Semantic = "semantic"
}
export declare namespace ServerResponse {
class Cancelled {
readonly reason: string;
readonly type = "cancelled";
constructor(reason: string);
}
const NoContent: {
readonly type: "noContent";
};
const NoServer: {
readonly type: "noServer";
};
type Response<T extends tsp.Response> = T | Cancelled | typeof NoContent | typeof NoServer;
}
export interface TypeScriptRequestTypes {
[]: [tsp.ApplyCodeActionCommandRequestArgs, tsp.ApplyCodeActionCommandResponse];
[]: [tsp.ChangeRequestArgs, null];
[]: [tsp.FileRequestArgs, null];
[]: [tsp.SetCompilerOptionsForInferredProjectsArgs, tsp.SetCompilerOptionsForInferredProjectsResponse];
[]: [tsp.CompletionDetailsRequestArgs, tsp.CompletionDetailsResponse];
[]: [tsp.CompletionsRequestArgs, tsp.CompletionInfoResponse];
[]: [tsp.ConfigureRequestArguments, tsp.ConfigureResponse];
[]: [tsp.FileLocationRequestArgs, tsp.DefinitionResponse];
[]: [tsp.FileLocationRequestArgs, tsp.DefinitionInfoAndBoundSpanResponse];
[]: [tsp.FileLocationRequestArgs, tsp.DocCommandTemplateResponse];
[]: [tsp.DocumentHighlightsRequestArgs, tsp.DocumentHighlightsResponse];
[]: [tsp.EncodedSemanticClassificationsRequestArgs, tsp.EncodedSemanticClassificationsResponse];
[]: [tsp.FileLocationRequestArgs, tsp.DefinitionResponse];
[]: [tsp.FormatRequestArgs, tsp.FormatResponse];
[]: [tsp.FormatOnKeyRequestArgs, tsp.FormatResponse];
[]: [tsp.GetApplicableRefactorsRequestArgs, tsp.GetApplicableRefactorsResponse];
[]: [tsp.CodeFixRequestArgs, tsp.CodeFixResponse];
[]: [tsp.GetCombinedCodeFixRequestArgs, tsp.GetCombinedCodeFixResponse];
[]: [tsp.GetEditsForFileRenameRequestArgs, tsp.GetEditsForFileRenameResponse];
[]: [tsp.GetEditsForRefactorRequestArgs, tsp.GetEditsForRefactorResponse];
[]: [tsp.GeterrRequestArgs, any];
[]: [tsp.FileRequestArgs, tsp.OutliningSpansResponse];
[]: [null, tsp.GetSupportedCodeFixesResponse];
[]: [tsp.FileLocationRequestArgs, tsp.ImplementationResponse];
[]: [tsp.JsxClosingTagRequestArgs, tsp.JsxClosingTagResponse];
[]: [tsp.NavtoRequestArgs, tsp.NavtoResponse];
[]: [tsp.FileRequestArgs, tsp.NavTreeResponse];
[]: [tsp.OpenRequestArgs, null];
[]: [tsp.OrganizeImportsRequestArgs, tsp.OrganizeImportsResponse];
[]: [tsp.ProjectInfoRequestArgs, tsp.ProjectInfoResponse];
[]: [tsp.InlayHintsRequestArgs, tsp.InlayHintsResponse];
[]: [tsp.FileLocationRequestArgs, tsp.QuickInfoResponse];
[]: [tsp.FileLocationRequestArgs, tsp.ReferencesResponse];
[]: [tsp.RenameRequestArgs, tsp.RenameResponse];
[]: [tsp.SignatureHelpRequestArgs, tsp.SignatureHelpResponse];
[]: [tsp.FileLocationRequestArgs, tsp.TypeDefinitionResponse];
[]: [tsp.UpdateOpenRequestArgs, tsp.Response];
}
export declare type ExecConfig = {
readonly lowPriority?: boolean;
readonly nonRecoverable?: boolean;
readonly cancelOnResourceChange?: vscodeUri.URI;
readonly executionTarget?: ExecutionTarget;
};
//# sourceMappingURL=requests.d.ts.map