@lpc-lang/core 1.1.2-5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +255 -0
- package/bin/lpc +4 -0
- package/bin/lpcserver +4 -0
- package/cancellationToken/cancellationToken.d.ts +8 -0
- package/cancellationToken/cancellationToken.d.ts.map +1 -0
- package/cancellationToken/serverCancellationToken.d.ts +21 -0
- package/cancellationToken/serverCancellationToken.d.ts.map +1 -0
- package/cli/_namespaces/lpc.d.ts +2 -0
- package/cli/_namespaces/lpc.d.ts.map +1 -0
- package/cli/lpc.d.ts +2 -0
- package/cli/lpc.d.ts.map +1 -0
- package/compiler/LpcConfig.d.ts +17 -0
- package/compiler/LpcConfig.d.ts.map +1 -0
- package/compiler/_namespaces/lpc.d.ts +49 -0
- package/compiler/_namespaces/lpc.d.ts.map +1 -0
- package/compiler/_namespaces/lpc.moduleSpecifiers.d.ts +2 -0
- package/compiler/_namespaces/lpc.moduleSpecifiers.d.ts.map +1 -0
- package/compiler/_namespaces/lpc.performance.d.ts +2 -0
- package/compiler/_namespaces/lpc.performance.d.ts.map +1 -0
- package/compiler/binder.d.ts +2 -0
- package/compiler/binder.d.ts.map +1 -0
- package/compiler/builderPublic.d.ts +76 -0
- package/compiler/builderPublic.d.ts.map +1 -0
- package/compiler/checker.d.ts +2 -0
- package/compiler/checker.d.ts.map +1 -0
- package/compiler/commandLineParser.d.ts +47 -0
- package/compiler/commandLineParser.d.ts.map +1 -0
- package/compiler/core.d.ts +3 -0
- package/compiler/core.d.ts.map +1 -0
- package/compiler/corePublic.d.ts +19 -0
- package/compiler/corePublic.d.ts.map +1 -0
- package/compiler/debug.d.ts +71 -0
- package/compiler/debug.d.ts.map +1 -0
- package/compiler/diagnosticInformation.d.ts +518 -0
- package/compiler/diagnosticInformation.d.ts.map +1 -0
- package/compiler/emitter.d.ts +11 -0
- package/compiler/emitter.d.ts.map +1 -0
- package/compiler/executeCommandLine.d.ts +15 -0
- package/compiler/executeCommandLine.d.ts.map +1 -0
- package/compiler/expressionToTypeNode.d.ts +2 -0
- package/compiler/expressionToTypeNode.d.ts.map +1 -0
- package/compiler/factory/baseNodeFactory.d.ts +2 -0
- package/compiler/factory/baseNodeFactory.d.ts.map +1 -0
- package/compiler/factory/emitHelper.d.ts +2 -0
- package/compiler/factory/emitHelper.d.ts.map +1 -0
- package/compiler/factory/emitNode.d.ts +22 -0
- package/compiler/factory/emitNode.d.ts.map +1 -0
- package/compiler/factory/nodeChildren.d.ts +2 -0
- package/compiler/factory/nodeChildren.d.ts.map +1 -0
- package/compiler/factory/nodeConverters.d.ts +2 -0
- package/compiler/factory/nodeConverters.d.ts.map +1 -0
- package/compiler/factory/nodeFactory.d.ts +4 -0
- package/compiler/factory/nodeFactory.d.ts.map +1 -0
- package/compiler/factory/parenthesizerRules.d.ts +2 -0
- package/compiler/factory/parenthesizerRules.d.ts.map +1 -0
- package/compiler/factory/utilities.d.ts +2 -0
- package/compiler/factory/utilities.d.ts.map +1 -0
- package/compiler/factory/utilitiesPublic.d.ts +4 -0
- package/compiler/factory/utilitiesPublic.d.ts.map +1 -0
- package/compiler/lpcFileHandler.d.ts +10 -0
- package/compiler/lpcFileHandler.d.ts.map +1 -0
- package/compiler/lpcJsHelpers.d.ts +17 -0
- package/compiler/lpcJsHelpers.d.ts.map +1 -0
- package/compiler/lpcbuild.d.ts +2 -0
- package/compiler/lpcbuild.d.ts.map +1 -0
- package/compiler/lpcbuildPublic.d.ts +26 -0
- package/compiler/lpcbuildPublic.d.ts.map +1 -0
- package/compiler/moduleNameResolver.d.ts +55 -0
- package/compiler/moduleNameResolver.d.ts.map +1 -0
- package/compiler/moduleSpecifiers.d.ts +2 -0
- package/compiler/moduleSpecifiers.d.ts.map +1 -0
- package/compiler/nodeTests.d.ts +115 -0
- package/compiler/nodeTests.d.ts.map +1 -0
- package/compiler/parser.d.ts +65 -0
- package/compiler/parser.d.ts.map +1 -0
- package/compiler/path.d.ts +2 -0
- package/compiler/path.d.ts.map +1 -0
- package/compiler/perfLoger.d.ts +2 -0
- package/compiler/perfLoger.d.ts.map +1 -0
- package/compiler/performance.d.ts +2 -0
- package/compiler/performance.d.ts.map +1 -0
- package/compiler/performanceCore.d.ts +2 -0
- package/compiler/performanceCore.d.ts.map +1 -0
- package/compiler/program.d.ts +72 -0
- package/compiler/program.d.ts.map +1 -0
- package/compiler/resolutionCache.d.ts +6 -0
- package/compiler/resolutionCache.d.ts.map +1 -0
- package/compiler/resolver.d.ts +1 -0
- package/compiler/resolver.d.ts.map +1 -0
- package/compiler/scanner.d.ts +85 -0
- package/compiler/scanner.d.ts.map +1 -0
- package/compiler/sourcemap.d.ts +2 -0
- package/compiler/sourcemap.d.ts.map +1 -0
- package/compiler/sys.d.ts +56 -0
- package/compiler/sys.d.ts.map +1 -0
- package/compiler/tracing.d.ts +31 -0
- package/compiler/tracing.d.ts.map +1 -0
- package/compiler/transformers/declarations.d.ts +2 -0
- package/compiler/transformers/declarations.d.ts.map +1 -0
- package/compiler/transformers.d.ts +2 -0
- package/compiler/transformers.d.ts.map +1 -0
- package/compiler/types.d.ts +3284 -0
- package/compiler/types.d.ts.map +1 -0
- package/compiler/utilities.d.ts +57 -0
- package/compiler/utilities.d.ts.map +1 -0
- package/compiler/utilitiesPublic.d.ts +213 -0
- package/compiler/utilitiesPublic.d.ts.map +1 -0
- package/compiler/visitorPublic.d.ts +72 -0
- package/compiler/visitorPublic.d.ts.map +1 -0
- package/compiler/watch.d.ts +2 -0
- package/compiler/watch.d.ts.map +1 -0
- package/compiler/watchPublic.d.ts +44 -0
- package/compiler/watchPublic.d.ts.map +1 -0
- package/compiler/watchUtilities.d.ts +14 -0
- package/compiler/watchUtilities.d.ts.map +1 -0
- package/config-types.d.ts +33 -0
- package/config-types.d.ts.map +1 -0
- package/harness/harnessIO.d.ts +4 -0
- package/harness/harnessIO.d.ts.map +1 -0
- package/lpc/_namespaces/lpc.d.ts +6 -0
- package/lpc/_namespaces/lpc.d.ts.map +1 -0
- package/lpc/_namespaces/lpc.server.d.ts +2 -0
- package/lpc/_namespaces/lpc.server.d.ts.map +1 -0
- package/lpc/lpc.d.ts +2 -0
- package/lpc/lpc.d.ts.map +1 -0
- package/lpcserver/document.d.ts +1 -0
- package/lpcserver/document.d.ts.map +1 -0
- package/lpcserver/nodeServer.d.ts +25 -0
- package/lpcserver/nodeServer.d.ts.map +1 -0
- package/lpcserver/protocol.const.d.ts +46 -0
- package/lpcserver/protocol.const.d.ts.map +1 -0
- package/lpcserver/server.d.ts +3 -0
- package/lpcserver/server.d.ts.map +1 -0
- package/lpcserver/textRendering.d.ts +14 -0
- package/lpcserver/textRendering.d.ts.map +1 -0
- package/lpcserver/typeConverters.d.ts +44 -0
- package/lpcserver/typeConverters.d.ts.map +1 -0
- package/lpcserver/utils.d.ts +14 -0
- package/lpcserver/utils.d.ts.map +1 -0
- package/package.json +48 -0
- package/parse-fluff-docs.d.ts +2 -0
- package/parse-fluff-docs.d.ts.map +1 -0
- package/parse-ld-docs.d.ts +2 -0
- package/parse-ld-docs.d.ts.map +1 -0
- package/server/_namespaces/lpc.d.ts +5 -0
- package/server/_namespaces/lpc.d.ts.map +1 -0
- package/server/_namespaces/lpc.server.d.ts +11 -0
- package/server/_namespaces/lpc.server.d.ts.map +1 -0
- package/server/_namespaces/lpc.server.protocol.d.ts +2 -0
- package/server/_namespaces/lpc.server.protocol.d.ts.map +1 -0
- package/server/editorServices.d.ts +261 -0
- package/server/editorServices.d.ts.map +1 -0
- package/server/project.d.ts +143 -0
- package/server/project.d.ts.map +1 -0
- package/server/protocol.d.ts +962 -0
- package/server/protocol.d.ts.map +1 -0
- package/server/scriptInfo.d.ts +53 -0
- package/server/scriptInfo.d.ts.map +1 -0
- package/server/scriptVersionCache.d.ts +2 -0
- package/server/scriptVersionCache.d.ts.map +1 -0
- package/server/session.d.ts +150 -0
- package/server/session.d.ts.map +1 -0
- package/server/types.d.ts +24 -0
- package/server/types.d.ts.map +1 -0
- package/server/utilities.d.ts +2 -0
- package/server/utilities.d.ts.map +1 -0
- package/server/utilitiesPublic.d.ts +37 -0
- package/server/utilitiesPublic.d.ts.map +1 -0
- package/server.d.ts +2 -0
- package/server.d.ts.map +1 -0
- package/services/_namespaces/lpc.Completions.StringCompletions.d.ts +2 -0
- package/services/_namespaces/lpc.Completions.StringCompletions.d.ts.map +1 -0
- package/services/_namespaces/lpc.Completions.d.ts +4 -0
- package/services/_namespaces/lpc.Completions.d.ts.map +1 -0
- package/services/_namespaces/lpc.FindAllReferences.d.ts +3 -0
- package/services/_namespaces/lpc.FindAllReferences.d.ts.map +1 -0
- package/services/_namespaces/lpc.GoToDefinition.d.ts +2 -0
- package/services/_namespaces/lpc.GoToDefinition.d.ts.map +1 -0
- package/services/_namespaces/lpc.JsDoc.d.ts +2 -0
- package/services/_namespaces/lpc.JsDoc.d.ts.map +1 -0
- package/services/_namespaces/lpc.NavigationBar.d.ts +2 -0
- package/services/_namespaces/lpc.NavigationBar.d.ts.map +1 -0
- package/services/_namespaces/lpc.Rename.d.ts +2 -0
- package/services/_namespaces/lpc.Rename.d.ts.map +1 -0
- package/services/_namespaces/lpc.SignatureHelp.d.ts +2 -0
- package/services/_namespaces/lpc.SignatureHelp.d.ts.map +1 -0
- package/services/_namespaces/lpc.SymbolDisplay.d.ts +2 -0
- package/services/_namespaces/lpc.SymbolDisplay.d.ts.map +1 -0
- package/services/_namespaces/lpc.codefix.d.ts +3 -0
- package/services/_namespaces/lpc.codefix.d.ts.map +1 -0
- package/services/_namespaces/lpc.d.ts +30 -0
- package/services/_namespaces/lpc.d.ts.map +1 -0
- package/services/_namespaces/lpc.formatting.d.ts +7 -0
- package/services/_namespaces/lpc.formatting.d.ts.map +1 -0
- package/services/_namespaces/lpc.textChanges.d.ts +2 -0
- package/services/_namespaces/lpc.textChanges.d.ts.map +1 -0
- package/services/classifier2020.d.ts +2 -0
- package/services/classifier2020.d.ts.map +1 -0
- package/services/codefixes/helpers.d.ts +2 -0
- package/services/codefixes/helpers.d.ts.map +1 -0
- package/services/codefixes/importFixes.d.ts +2 -0
- package/services/codefixes/importFixes.d.ts.map +1 -0
- package/services/completions.d.ts +2 -0
- package/services/completions.d.ts.map +1 -0
- package/services/documentRegistry.d.ts +90 -0
- package/services/documentRegistry.d.ts.map +1 -0
- package/services/exportInfoMap.d.ts +5 -0
- package/services/exportInfoMap.d.ts.map +1 -0
- package/services/findAllReferences.d.ts +2 -0
- package/services/findAllReferences.d.ts.map +1 -0
- package/services/formatting/formatting.d.ts +2 -0
- package/services/formatting/formatting.d.ts.map +1 -0
- package/services/formatting/formattingContext.d.ts +2 -0
- package/services/formatting/formattingContext.d.ts.map +1 -0
- package/services/formatting/rule.d.ts +2 -0
- package/services/formatting/rule.d.ts.map +1 -0
- package/services/formatting/rules.d.ts +2 -0
- package/services/formatting/rules.d.ts.map +1 -0
- package/services/formatting/rulesMap.d.ts +2 -0
- package/services/formatting/rulesMap.d.ts.map +1 -0
- package/services/formatting/smartIndenter.d.ts +2 -0
- package/services/formatting/smartIndenter.d.ts.map +1 -0
- package/services/goToDefinition.d.ts +2 -0
- package/services/goToDefinition.d.ts.map +1 -0
- package/services/importTracker.d.ts +2 -0
- package/services/importTracker.d.ts.map +1 -0
- package/services/jsDoc.d.ts +2 -0
- package/services/jsDoc.d.ts.map +1 -0
- package/services/navigationBar.d.ts +2 -0
- package/services/navigationBar.d.ts.map +1 -0
- package/services/rename.d.ts +2 -0
- package/services/rename.d.ts.map +1 -0
- package/services/services.d.ts +54 -0
- package/services/services.d.ts.map +1 -0
- package/services/signatureHelp.d.ts +2 -0
- package/services/signatureHelp.d.ts.map +1 -0
- package/services/sourcemaps.d.ts +2 -0
- package/services/sourcemaps.d.ts.map +1 -0
- package/services/stringCompletions.d.ts +2 -0
- package/services/stringCompletions.d.ts.map +1 -0
- package/services/suggestionDiagnostics.d.ts +2 -0
- package/services/suggestionDiagnostics.d.ts.map +1 -0
- package/services/symbolDisplay.d.ts +2 -0
- package/services/symbolDisplay.d.ts.map +1 -0
- package/services/textChanges.d.ts +2 -0
- package/services/textChanges.d.ts.map +1 -0
- package/services/types.d.ts +901 -0
- package/services/types.d.ts.map +1 -0
- package/services/utilities.d.ts +3 -0
- package/services/utilities.d.ts.map +1 -0
- package/src/cli.js +58 -0
- package/src/cli.js.map +7 -0
- package/src/efuns/fluffos/arrays.h +205 -0
- package/src/efuns/fluffos/async.h +84 -0
- package/src/efuns/fluffos/buffers.h +80 -0
- package/src/efuns/fluffos/calls.h +275 -0
- package/src/efuns/fluffos/contrib.h +805 -0
- package/src/efuns/fluffos/db.h +125 -0
- package/src/efuns/fluffos/driver.h +107 -0
- package/src/efuns/fluffos/ed.h +48 -0
- package/src/efuns/fluffos/efuns.fluffos.h +75 -0
- package/src/efuns/fluffos/external.h +30 -0
- package/src/efuns/fluffos/filesystem.h +154 -0
- package/src/efuns/fluffos/floats.h +136 -0
- package/src/efuns/fluffos/functions.h +104 -0
- package/src/efuns/fluffos/general.h +548 -0
- package/src/efuns/fluffos/interactive.h +777 -0
- package/src/efuns/fluffos/internals.h +455 -0
- package/src/efuns/fluffos/lpc-config.json +10 -0
- package/src/efuns/fluffos/mappings.h +205 -0
- package/src/efuns/fluffos/misc.h +43 -0
- package/src/efuns/fluffos/mudlib.h +228 -0
- package/src/efuns/fluffos/numbers.h +41 -0
- package/src/efuns/fluffos/objects.h +365 -0
- package/src/efuns/fluffos/parsing.h +220 -0
- package/src/efuns/fluffos/pcre.h +75 -0
- package/src/efuns/fluffos/sockets.h +276 -0
- package/src/efuns/fluffos/strings.h +542 -0
- package/src/efuns/fluffos/system.h +408 -0
- package/src/efuns/fluffos/zh-cn/arrays.zh-cn.h +167 -0
- package/src/efuns/fluffos/zh-cn/async.zh-cn.h +81 -0
- package/src/efuns/fluffos/zh-cn/buffers.zh-cn.h +69 -0
- package/src/efuns/fluffos/zh-cn/calls.zh-cn.h +242 -0
- package/src/efuns/fluffos/zh-cn/contrib.zh-cn.h +767 -0
- package/src/efuns/fluffos/zh-cn/db.zh-cn.h +113 -0
- package/src/efuns/fluffos/zh-cn/ed.zh-cn.h +42 -0
- package/src/efuns/fluffos/zh-cn/efuns.fluffos.h +76 -0
- package/src/efuns/fluffos/zh-cn/external.zh-cn.h +25 -0
- package/src/efuns/fluffos/zh-cn/filesystem.zh-cn.h +140 -0
- package/src/efuns/fluffos/zh-cn/floats.zh-cn.h +129 -0
- package/src/efuns/fluffos/zh-cn/functions.zh-cn.h +87 -0
- package/src/efuns/fluffos/zh-cn/general.zh-cn.h +506 -0
- package/src/efuns/fluffos/zh-cn/interactive.zh-cn.h +659 -0
- package/src/efuns/fluffos/zh-cn/internals.zh-cn.h +356 -0
- package/src/efuns/fluffos/zh-cn/mappings.zh-cn.h +188 -0
- package/src/efuns/fluffos/zh-cn/misc.zh-cn.h +43 -0
- package/src/efuns/fluffos/zh-cn/mudlib.zh-cn.h +190 -0
- package/src/efuns/fluffos/zh-cn/numbers.zh-cn.h +36 -0
- package/src/efuns/fluffos/zh-cn/objects.zh-cn.h +280 -0
- package/src/efuns/fluffos/zh-cn/parsing.zh-cn.h +212 -0
- package/src/efuns/fluffos/zh-cn/pcre.zh-cn.h +67 -0
- package/src/efuns/fluffos/zh-cn/sockets.zh-cn.h +230 -0
- package/src/efuns/fluffos/zh-cn/strings.zh-cn.h +484 -0
- package/src/efuns/fluffos/zh-cn/system.zh-cn.h +366 -0
- package/src/efuns/ldmud/defines.h +69 -0
- package/src/efuns/ldmud/efun.h +10449 -0
- package/src/efuns/ldmud/efuns.ldmud.h +87 -0
- package/src/efuns/ldmud/lpc-config.json +9 -0
- package/src/efuns/ldmud/obsolete.h +2168 -0
- package/src/lpc.js +82486 -0
- package/src/lpc.js.map +6 -0
- package/src/server.js +129 -0
- package/src/server.js.map +7 -0
- package/types.d.ts +23 -0
- package/types.d.ts.map +1 -0
- package/utils.d.ts +21 -0
- package/utils.d.ts.map +1 -0
|
@@ -0,0 +1,962 @@
|
|
|
1
|
+
import { CompilerOptions, CompletionsTriggerCharacter, CompletionTriggerKind, RenameInfoFailure, ScriptElementKind, SignatureHelpTriggerReason, SymbolDisplayPart, TypeAcquisition, WatchOptions } from "./_namespaces/lpc";
|
|
2
|
+
import * as lpc from "./_namespaces/lpc";
|
|
3
|
+
type ChangePropertyTypes<T, Substitutions extends {
|
|
4
|
+
[K in keyof T]?: any;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: K extends keyof Substitutions ? Substitutions[K] : T[K];
|
|
7
|
+
};
|
|
8
|
+
export declare const enum CommandTypes {
|
|
9
|
+
LinkedEditingRange = "linkedEditingRange",
|
|
10
|
+
Brace = "brace",
|
|
11
|
+
BraceCompletion = "braceCompletion",
|
|
12
|
+
GetSpanOfEnclosingComment = "getSpanOfEnclosingComment",
|
|
13
|
+
Change = "change",
|
|
14
|
+
Close = "close",
|
|
15
|
+
/** @deprecated Prefer CompletionInfo -- see comment on CompletionsResponse */
|
|
16
|
+
Completions = "completions",
|
|
17
|
+
CompletionInfo = "completionInfo",
|
|
18
|
+
CompletionDetails = "completionEntryDetails",
|
|
19
|
+
CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList",
|
|
20
|
+
CompileOnSaveEmitFile = "compileOnSaveEmitFile",
|
|
21
|
+
Configure = "configure",
|
|
22
|
+
Definition = "definition",
|
|
23
|
+
DefinitionAndBoundSpan = "definitionAndBoundSpan",
|
|
24
|
+
Implementation = "implementation",
|
|
25
|
+
Exit = "exit",
|
|
26
|
+
FileReferences = "fileReferences",
|
|
27
|
+
Format = "format",
|
|
28
|
+
Formatonkey = "formatonkey",
|
|
29
|
+
Geterr = "geterr",
|
|
30
|
+
GeterrForProject = "geterrForProject",
|
|
31
|
+
SemanticDiagnosticsSync = "semanticDiagnosticsSync",
|
|
32
|
+
SyntacticDiagnosticsSync = "syntacticDiagnosticsSync",
|
|
33
|
+
SuggestionDiagnosticsSync = "suggestionDiagnosticsSync",
|
|
34
|
+
NavBar = "navbar",
|
|
35
|
+
Navto = "navto",
|
|
36
|
+
NavTree = "navtree",
|
|
37
|
+
NavTreeFull = "navtree-full",
|
|
38
|
+
DocumentHighlights = "documentHighlights",
|
|
39
|
+
Open = "open",
|
|
40
|
+
Quickinfo = "quickinfo",
|
|
41
|
+
References = "references",
|
|
42
|
+
Reload = "reload",
|
|
43
|
+
Rename = "rename",
|
|
44
|
+
Saveto = "saveto",
|
|
45
|
+
SignatureHelp = "signatureHelp",
|
|
46
|
+
FindSourceDefinition = "findSourceDefinition",
|
|
47
|
+
Status = "status",
|
|
48
|
+
TypeDefinition = "typeDefinition",
|
|
49
|
+
ProjectInfo = "projectInfo",
|
|
50
|
+
ReloadProjects = "reloadProjects",
|
|
51
|
+
Unknown = "unknown",
|
|
52
|
+
OpenExternalProject = "openExternalProject",
|
|
53
|
+
OpenExternalProjects = "openExternalProjects",
|
|
54
|
+
CloseExternalProject = "closeExternalProject",
|
|
55
|
+
UpdateOpen = "updateOpen",
|
|
56
|
+
GetOutliningSpans = "getOutliningSpans",// Full command name is different for backward compatibility purposes
|
|
57
|
+
TodoComments = "todoComments",
|
|
58
|
+
Indentation = "indentation",
|
|
59
|
+
DocCommentTemplate = "docCommentTemplate",
|
|
60
|
+
CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects",
|
|
61
|
+
GetCodeFixes = "getCodeFixes",
|
|
62
|
+
GetCombinedCodeFix = "getCombinedCodeFix",
|
|
63
|
+
ApplyCodeActionCommand = "applyCodeActionCommand",
|
|
64
|
+
GetSupportedCodeFixes = "getSupportedCodeFixes",
|
|
65
|
+
GetApplicableRefactors = "getApplicableRefactors",
|
|
66
|
+
GetEditsForRefactor = "getEditsForRefactor",
|
|
67
|
+
GetMoveToRefactoringFileSuggestions = "getMoveToRefactoringFileSuggestions",
|
|
68
|
+
GetPasteEdits = "getPasteEdits",
|
|
69
|
+
OrganizeImports = "organizeImports",
|
|
70
|
+
GetEditsForFileRename = "getEditsForFileRename",
|
|
71
|
+
ConfigurePlugin = "configurePlugin",
|
|
72
|
+
SelectionRange = "selectionRange",
|
|
73
|
+
ToggleLineComment = "toggleLineComment",
|
|
74
|
+
ToggleMultilineComment = "toggleMultilineComment",
|
|
75
|
+
CommentSelection = "commentSelection",
|
|
76
|
+
UncommentSelection = "uncommentSelection",
|
|
77
|
+
PrepareCallHierarchy = "prepareCallHierarchy",
|
|
78
|
+
ProvideCallHierarchyIncomingCalls = "provideCallHierarchyIncomingCalls",
|
|
79
|
+
ProvideCallHierarchyOutgoingCalls = "provideCallHierarchyOutgoingCalls",
|
|
80
|
+
ProvideInlayHints = "provideInlayHints",
|
|
81
|
+
WatchChange = "watchChange",
|
|
82
|
+
MapCode = "mapCode"
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A Server message
|
|
86
|
+
*/
|
|
87
|
+
export interface Message {
|
|
88
|
+
/**
|
|
89
|
+
* Sequence number of the message
|
|
90
|
+
*/
|
|
91
|
+
seq: number;
|
|
92
|
+
/**
|
|
93
|
+
* One of "request", "response", or "event"
|
|
94
|
+
*/
|
|
95
|
+
type: "request" | "response" | "event";
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Client-initiated request message
|
|
99
|
+
*/
|
|
100
|
+
export interface Request extends Message {
|
|
101
|
+
type: "request";
|
|
102
|
+
/**
|
|
103
|
+
* The command to execute
|
|
104
|
+
*/
|
|
105
|
+
command: string;
|
|
106
|
+
/**
|
|
107
|
+
* Object containing arguments for the command
|
|
108
|
+
*/
|
|
109
|
+
arguments?: any;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Server-initiated event message
|
|
113
|
+
*/
|
|
114
|
+
export interface Event extends Message {
|
|
115
|
+
type: "event";
|
|
116
|
+
/**
|
|
117
|
+
* Name of event
|
|
118
|
+
*/
|
|
119
|
+
event: string;
|
|
120
|
+
/**
|
|
121
|
+
* Event-specific information
|
|
122
|
+
*/
|
|
123
|
+
body?: any;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Response by server to client request message.
|
|
127
|
+
*/
|
|
128
|
+
export interface Response extends Message {
|
|
129
|
+
type: "response";
|
|
130
|
+
/**
|
|
131
|
+
* Sequence number of the request message.
|
|
132
|
+
*/
|
|
133
|
+
request_seq: number;
|
|
134
|
+
/**
|
|
135
|
+
* Outcome of the request.
|
|
136
|
+
*/
|
|
137
|
+
success: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The command requested.
|
|
140
|
+
*/
|
|
141
|
+
command: string;
|
|
142
|
+
/**
|
|
143
|
+
* If success === false, this should always be provided.
|
|
144
|
+
* Otherwise, may (or may not) contain a success message.
|
|
145
|
+
*/
|
|
146
|
+
message?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Contains message body if success === true.
|
|
149
|
+
*/
|
|
150
|
+
body?: any;
|
|
151
|
+
/**
|
|
152
|
+
* Contains extra information that plugin can include to be passed on
|
|
153
|
+
*/
|
|
154
|
+
metadata?: unknown;
|
|
155
|
+
/**
|
|
156
|
+
* Exposes information about the performance of this request-response pair.
|
|
157
|
+
*/
|
|
158
|
+
performanceData?: PerformanceData;
|
|
159
|
+
}
|
|
160
|
+
export interface PerformanceData {
|
|
161
|
+
/**
|
|
162
|
+
* Time spent updating the program graph, in milliseconds.
|
|
163
|
+
*/
|
|
164
|
+
updateGraphDurationMs?: number;
|
|
165
|
+
/**
|
|
166
|
+
* The time spent creating or updating the auto-import program, in milliseconds.
|
|
167
|
+
*/
|
|
168
|
+
createAutoImportProviderProgramDurationMs?: number;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Arguments for FileRequest messages.
|
|
172
|
+
*/
|
|
173
|
+
export interface FileRequestArgs {
|
|
174
|
+
/**
|
|
175
|
+
* The file for the request (absolute pathname required).
|
|
176
|
+
*/
|
|
177
|
+
file: string;
|
|
178
|
+
projectFileName?: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Argument for RenameRequest request.
|
|
182
|
+
*/
|
|
183
|
+
export interface RenameRequestArgs extends FileLocationRequestArgs {
|
|
184
|
+
/**
|
|
185
|
+
* Should text at specified location be found/changed in comments?
|
|
186
|
+
*/
|
|
187
|
+
findInComments?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Should text at specified location be found/changed in strings?
|
|
190
|
+
*/
|
|
191
|
+
findInStrings?: boolean;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Arguments for GeterrForProject request.
|
|
195
|
+
*/
|
|
196
|
+
export interface DiagnosticForProjectRequestArgs {
|
|
197
|
+
/**
|
|
198
|
+
* the file requesting project error list
|
|
199
|
+
*/
|
|
200
|
+
file: string;
|
|
201
|
+
/**
|
|
202
|
+
* Delay in milliseconds to wait before starting to compute
|
|
203
|
+
* errors for the files in the file list
|
|
204
|
+
*/
|
|
205
|
+
delay: number;
|
|
206
|
+
}
|
|
207
|
+
export interface DiagnosticRequestArgs {
|
|
208
|
+
/**
|
|
209
|
+
* List of file names for which to compute compiler errors.
|
|
210
|
+
* The files will be checked in list order.
|
|
211
|
+
*/
|
|
212
|
+
files: string[];
|
|
213
|
+
/**
|
|
214
|
+
* Delay in milliseconds to wait before starting to compute
|
|
215
|
+
* errors for the files in the file list
|
|
216
|
+
*/
|
|
217
|
+
delay: number;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Instances of this interface specify a location in a source file:
|
|
221
|
+
* (file, line, character offset), where line and character offset are 1-based.
|
|
222
|
+
*/
|
|
223
|
+
export interface FileLocationRequestArgs extends FileRequestArgs {
|
|
224
|
+
/**
|
|
225
|
+
* The line number for the request (1-based).
|
|
226
|
+
*/
|
|
227
|
+
line: number;
|
|
228
|
+
/**
|
|
229
|
+
* The character offset (on the line) for the request (1-based).
|
|
230
|
+
*/
|
|
231
|
+
offset: number;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Location in source code expressed as (one-based) line and (one-based) column offset.
|
|
235
|
+
*/
|
|
236
|
+
export interface Location {
|
|
237
|
+
line: number;
|
|
238
|
+
offset: number;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Body of QuickInfoResponse.
|
|
242
|
+
*/
|
|
243
|
+
export interface QuickInfoResponseBody {
|
|
244
|
+
/**
|
|
245
|
+
* The symbol's kind (such as 'className' or 'parameterName' or plain 'text').
|
|
246
|
+
*/
|
|
247
|
+
kind: ScriptElementKind;
|
|
248
|
+
/**
|
|
249
|
+
* Optional modifiers for the kind (such as 'public').
|
|
250
|
+
*/
|
|
251
|
+
kindModifiers: string;
|
|
252
|
+
/**
|
|
253
|
+
* Starting file location of symbol.
|
|
254
|
+
*/
|
|
255
|
+
start: Location;
|
|
256
|
+
/**
|
|
257
|
+
* One past last character of symbol.
|
|
258
|
+
*/
|
|
259
|
+
end: Location;
|
|
260
|
+
/**
|
|
261
|
+
* Type and kind of symbol.
|
|
262
|
+
*/
|
|
263
|
+
displayString: string;
|
|
264
|
+
/**
|
|
265
|
+
* Documentation associated with symbol.
|
|
266
|
+
* Display parts when UserPreferences.displayPartsForJSDoc is true, flattened to string otherwise.
|
|
267
|
+
*/
|
|
268
|
+
documentation: string | SymbolDisplayPart[];
|
|
269
|
+
/**
|
|
270
|
+
* JSDoc tags associated with symbol.
|
|
271
|
+
*/
|
|
272
|
+
tags: JSDocTagInfo[];
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Information found in an "open" request.
|
|
276
|
+
*/
|
|
277
|
+
export interface OpenRequestArgs extends FileRequestArgs {
|
|
278
|
+
/**
|
|
279
|
+
* Used when a version of the file content is known to be more up to date than the one on disk.
|
|
280
|
+
* Then the known content will be used upon opening instead of the disk copy
|
|
281
|
+
*/
|
|
282
|
+
fileContent?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Used to limit the searching for project config file. If given the searching will stop at this
|
|
285
|
+
* root path; otherwise it will go all the way up to the dist root path.
|
|
286
|
+
*/
|
|
287
|
+
projectRootPath?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Used to specify the script kind of the file explicitly. It could be one of the following:
|
|
290
|
+
* "LPC"
|
|
291
|
+
*/
|
|
292
|
+
scriptKindName?: ScriptKindName;
|
|
293
|
+
}
|
|
294
|
+
export interface JSDocTagInfo {
|
|
295
|
+
/** Name of the JSDoc tag */
|
|
296
|
+
name: string;
|
|
297
|
+
/**
|
|
298
|
+
* Comment text after the JSDoc tag -- the text after the tag name until the next tag or end of comment
|
|
299
|
+
* Display parts when UserPreferences.displayPartsForJSDoc is true, flattened to string otherwise.
|
|
300
|
+
*/
|
|
301
|
+
text?: string | SymbolDisplayPart[];
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Arguments to UpdateOpenRequest
|
|
305
|
+
*/
|
|
306
|
+
export interface UpdateOpenRequestArgs {
|
|
307
|
+
/**
|
|
308
|
+
* List of newly open files
|
|
309
|
+
*/
|
|
310
|
+
openFiles?: OpenRequestArgs[];
|
|
311
|
+
/**
|
|
312
|
+
* List of open files files that were changes
|
|
313
|
+
*/
|
|
314
|
+
changedFiles?: FileCodeEdits[];
|
|
315
|
+
/**
|
|
316
|
+
* List of files that were closed
|
|
317
|
+
*/
|
|
318
|
+
closedFiles?: string[];
|
|
319
|
+
}
|
|
320
|
+
export interface CodeAction {
|
|
321
|
+
/** Description of the code action to display in the UI of the editor */
|
|
322
|
+
description: string;
|
|
323
|
+
/** Text changes to apply to each file as part of the code action */
|
|
324
|
+
changes: FileCodeEdits[];
|
|
325
|
+
/** A command is an opaque object that should be passed to `ApplyCodeActionCommandRequestArgs` without modification. */
|
|
326
|
+
commands?: {}[];
|
|
327
|
+
}
|
|
328
|
+
export interface FileCodeEdits {
|
|
329
|
+
fileName: string;
|
|
330
|
+
textChanges: CodeEdit[];
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Object found in response messages defining an editing
|
|
334
|
+
* instruction for a span of text in source code. The effect of
|
|
335
|
+
* this instruction is to replace the text starting at start and
|
|
336
|
+
* ending one character before end with newText. For an insertion,
|
|
337
|
+
* the text span is empty. For a deletion, newText is empty.
|
|
338
|
+
*/
|
|
339
|
+
export interface CodeEdit {
|
|
340
|
+
/**
|
|
341
|
+
* First character of the text span to edit.
|
|
342
|
+
*/
|
|
343
|
+
start: Location;
|
|
344
|
+
/**
|
|
345
|
+
* One character past last character of the text span to edit.
|
|
346
|
+
*/
|
|
347
|
+
end: Location;
|
|
348
|
+
/**
|
|
349
|
+
* Replace the span defined above with this string (may be
|
|
350
|
+
* the empty string).
|
|
351
|
+
*/
|
|
352
|
+
newText: string;
|
|
353
|
+
}
|
|
354
|
+
export type CreateFileWatcherEventName = "createFileWatcher";
|
|
355
|
+
export interface CreateFileWatcherEventBody {
|
|
356
|
+
readonly id: number;
|
|
357
|
+
readonly path: string;
|
|
358
|
+
}
|
|
359
|
+
export type CreateDirectoryWatcherEventName = "createDirectoryWatcher";
|
|
360
|
+
export interface CreateDirectoryWatcherEvent extends Event {
|
|
361
|
+
readonly event: CreateDirectoryWatcherEventName;
|
|
362
|
+
readonly body: CreateDirectoryWatcherEventBody;
|
|
363
|
+
}
|
|
364
|
+
export interface CreateDirectoryWatcherEventBody {
|
|
365
|
+
readonly id: number;
|
|
366
|
+
readonly path: string;
|
|
367
|
+
readonly recursive: boolean;
|
|
368
|
+
readonly ignoreUpdate?: boolean;
|
|
369
|
+
}
|
|
370
|
+
export type CloseFileWatcherEventName = "closeFileWatcher";
|
|
371
|
+
export interface CloseFileWatcherEvent extends Event {
|
|
372
|
+
readonly event: CloseFileWatcherEventName;
|
|
373
|
+
readonly body: CloseFileWatcherEventBody;
|
|
374
|
+
}
|
|
375
|
+
export interface CloseFileWatcherEventBody {
|
|
376
|
+
readonly id: number;
|
|
377
|
+
}
|
|
378
|
+
export interface WatchChangeRequestArgs {
|
|
379
|
+
id: number;
|
|
380
|
+
created?: string[];
|
|
381
|
+
deleted?: string[];
|
|
382
|
+
updated?: string[];
|
|
383
|
+
}
|
|
384
|
+
export interface RequestCompletedEventBody {
|
|
385
|
+
request_seq: number;
|
|
386
|
+
}
|
|
387
|
+
export interface DiagnosticEventBody {
|
|
388
|
+
/**
|
|
389
|
+
* The file for which diagnostic information is reported.
|
|
390
|
+
*/
|
|
391
|
+
file: string;
|
|
392
|
+
/**
|
|
393
|
+
* An array of diagnostic information items.
|
|
394
|
+
*/
|
|
395
|
+
diagnostics: Diagnostic[];
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Item of diagnostic information found in a DiagnosticEvent message.
|
|
399
|
+
*/
|
|
400
|
+
export interface Diagnostic {
|
|
401
|
+
/**
|
|
402
|
+
* Starting file location at which text applies.
|
|
403
|
+
*/
|
|
404
|
+
start: Location;
|
|
405
|
+
/**
|
|
406
|
+
* The last file location at which the text applies.
|
|
407
|
+
*/
|
|
408
|
+
end: Location;
|
|
409
|
+
/**
|
|
410
|
+
* Text of diagnostic message.
|
|
411
|
+
*/
|
|
412
|
+
text: string;
|
|
413
|
+
/**
|
|
414
|
+
* The category of the diagnostic message, e.g. "error", "warning", or "suggestion".
|
|
415
|
+
*/
|
|
416
|
+
category: string;
|
|
417
|
+
reportsUnnecessary?: {};
|
|
418
|
+
reportsDeprecated?: {};
|
|
419
|
+
/**
|
|
420
|
+
* Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites
|
|
421
|
+
*/
|
|
422
|
+
relatedInformation?: DiagnosticRelatedInformation[];
|
|
423
|
+
/**
|
|
424
|
+
* The error code of the diagnostic message.
|
|
425
|
+
*/
|
|
426
|
+
code?: number;
|
|
427
|
+
/**
|
|
428
|
+
* The name of the plugin reporting the message.
|
|
429
|
+
*/
|
|
430
|
+
source?: string;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Represents additional spans returned with a diagnostic which are relevant to it
|
|
434
|
+
*/
|
|
435
|
+
export interface DiagnosticRelatedInformation {
|
|
436
|
+
/**
|
|
437
|
+
* The category of the related information message, e.g. "error", "warning", or "suggestion".
|
|
438
|
+
*/
|
|
439
|
+
category: string;
|
|
440
|
+
/**
|
|
441
|
+
* The code used ot identify the related information
|
|
442
|
+
*/
|
|
443
|
+
code: number;
|
|
444
|
+
/**
|
|
445
|
+
* Text of related or additional information.
|
|
446
|
+
*/
|
|
447
|
+
message: string;
|
|
448
|
+
/**
|
|
449
|
+
* Associated location
|
|
450
|
+
*/
|
|
451
|
+
span?: FileSpan;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Object found in response messages defining a span of text in source code.
|
|
455
|
+
*/
|
|
456
|
+
export interface TextSpan {
|
|
457
|
+
/**
|
|
458
|
+
* First character of the definition.
|
|
459
|
+
*/
|
|
460
|
+
start: Location;
|
|
461
|
+
/**
|
|
462
|
+
* One character past last character of the definition.
|
|
463
|
+
*/
|
|
464
|
+
end: Location;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Object found in response messages defining a span of text in a specific source file.
|
|
468
|
+
*/
|
|
469
|
+
export interface FileSpan extends TextSpan {
|
|
470
|
+
/**
|
|
471
|
+
* File containing text span.
|
|
472
|
+
*/
|
|
473
|
+
file: string;
|
|
474
|
+
}
|
|
475
|
+
export type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag" | "allDiag";
|
|
476
|
+
export interface SemanticDiagnosticsSyncRequestArgs extends FileRequestArgs {
|
|
477
|
+
includeLinePosition?: boolean;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Represents diagnostic info that includes location of diagnostic in two forms
|
|
481
|
+
* - start position and length of the error span
|
|
482
|
+
* - startLocation and endLocation - a pair of Location objects that store start/end line and offset of the error span.
|
|
483
|
+
*/
|
|
484
|
+
export interface DiagnosticWithLinePosition {
|
|
485
|
+
message: string;
|
|
486
|
+
start: number;
|
|
487
|
+
length: number;
|
|
488
|
+
startLocation: Location;
|
|
489
|
+
endLocation: Location;
|
|
490
|
+
category: string;
|
|
491
|
+
code: number;
|
|
492
|
+
/** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */
|
|
493
|
+
reportsUnnecessary?: {};
|
|
494
|
+
reportsDeprecated?: {};
|
|
495
|
+
relatedInformation?: DiagnosticRelatedInformation[];
|
|
496
|
+
}
|
|
497
|
+
export interface DiagnosticWithFileName extends Diagnostic {
|
|
498
|
+
/**
|
|
499
|
+
* Name of the file the diagnostic is in
|
|
500
|
+
*/
|
|
501
|
+
fileName: string;
|
|
502
|
+
}
|
|
503
|
+
export interface TextSpanWithContext extends TextSpan {
|
|
504
|
+
contextStart?: Location;
|
|
505
|
+
contextEnd?: Location;
|
|
506
|
+
}
|
|
507
|
+
export interface FileSpanWithContext extends FileSpan, TextSpanWithContext {
|
|
508
|
+
}
|
|
509
|
+
export interface DefinitionInfo extends FileSpanWithContext {
|
|
510
|
+
/**
|
|
511
|
+
* When true, the file may or may not exist.
|
|
512
|
+
*/
|
|
513
|
+
unverified?: boolean;
|
|
514
|
+
}
|
|
515
|
+
/** protocol.NavigationTree is identical to ts.NavigationTree, except using protocol.TextSpan instead of ts.TextSpan */
|
|
516
|
+
export interface NavigationTree {
|
|
517
|
+
text: string;
|
|
518
|
+
kind: ScriptElementKind;
|
|
519
|
+
kindModifiers: string;
|
|
520
|
+
spans: TextSpan[];
|
|
521
|
+
nameSpan: TextSpan | undefined;
|
|
522
|
+
childItems?: NavigationTree[];
|
|
523
|
+
}
|
|
524
|
+
export interface FileRangeRequestArgs extends FileRequestArgs {
|
|
525
|
+
/**
|
|
526
|
+
* The line number for the request (1-based).
|
|
527
|
+
*/
|
|
528
|
+
startLine: number;
|
|
529
|
+
/**
|
|
530
|
+
* The character offset (on the line) for the request (1-based).
|
|
531
|
+
*/
|
|
532
|
+
startOffset: number;
|
|
533
|
+
/**
|
|
534
|
+
* The line number for the request (1-based).
|
|
535
|
+
*/
|
|
536
|
+
endLine: number;
|
|
537
|
+
/**
|
|
538
|
+
* The character offset (on the line) for the request (1-based).
|
|
539
|
+
*/
|
|
540
|
+
endOffset: number;
|
|
541
|
+
}
|
|
542
|
+
export declare const enum IndentStyle {
|
|
543
|
+
None = "None",
|
|
544
|
+
Block = "Block",
|
|
545
|
+
Smart = "Smart"
|
|
546
|
+
}
|
|
547
|
+
export type FormatCodeSettings = ChangePropertyTypes<lpc.FormatCodeSettings, {
|
|
548
|
+
indentStyle: IndentStyle | lpc.IndentStyle;
|
|
549
|
+
}>;
|
|
550
|
+
/**
|
|
551
|
+
* Arguments for format messages.
|
|
552
|
+
*/
|
|
553
|
+
export interface FormatRequestArgs extends FileLocationRequestArgs {
|
|
554
|
+
/**
|
|
555
|
+
* Last line of range for which to format text in file.
|
|
556
|
+
*/
|
|
557
|
+
endLine: number;
|
|
558
|
+
/**
|
|
559
|
+
* Character offset on last line of range for which to format text in file.
|
|
560
|
+
*/
|
|
561
|
+
endOffset: number;
|
|
562
|
+
/**
|
|
563
|
+
* Format options to be used.
|
|
564
|
+
*/
|
|
565
|
+
options?: FormatCodeSettings;
|
|
566
|
+
}
|
|
567
|
+
export interface ReferencesResponseItem extends FileSpanWithContext {
|
|
568
|
+
/**
|
|
569
|
+
* Text of line containing the reference. Including this
|
|
570
|
+
* with the response avoids latency of editor loading files
|
|
571
|
+
* to show text of reference line (the server already has loaded the referencing files).
|
|
572
|
+
*
|
|
573
|
+
* If {@link UserPreferences.disableLineTextInReferences} is enabled, the property won't be filled
|
|
574
|
+
*/
|
|
575
|
+
lineText?: string;
|
|
576
|
+
/**
|
|
577
|
+
* True if reference is a write location, false otherwise.
|
|
578
|
+
*/
|
|
579
|
+
isWriteAccess: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* Present only if the search was triggered from a declaration.
|
|
582
|
+
* True indicates that the references refers to the same symbol
|
|
583
|
+
* (i.e. has the same meaning) as the declaration that began the
|
|
584
|
+
* search.
|
|
585
|
+
*/
|
|
586
|
+
isDefinition?: boolean;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* The body of a "references" response message.
|
|
590
|
+
*/
|
|
591
|
+
export interface ReferencesResponseBody {
|
|
592
|
+
/**
|
|
593
|
+
* The file locations referencing the symbol.
|
|
594
|
+
*/
|
|
595
|
+
refs: readonly ReferencesResponseItem[];
|
|
596
|
+
/**
|
|
597
|
+
* The name of the symbol.
|
|
598
|
+
*/
|
|
599
|
+
symbolName: string;
|
|
600
|
+
/**
|
|
601
|
+
* The start character offset of the symbol (on the line provided by the references request).
|
|
602
|
+
*/
|
|
603
|
+
symbolStartOffset: number;
|
|
604
|
+
/**
|
|
605
|
+
* The full display name of the symbol.
|
|
606
|
+
*/
|
|
607
|
+
symbolDisplayString: string;
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Response to "references" request.
|
|
611
|
+
*/
|
|
612
|
+
export interface ReferencesResponse extends Response {
|
|
613
|
+
body?: ReferencesResponseBody;
|
|
614
|
+
}
|
|
615
|
+
export interface RenameResponseBody {
|
|
616
|
+
/**
|
|
617
|
+
* Information about the item to be renamed.
|
|
618
|
+
*/
|
|
619
|
+
info: RenameInfo;
|
|
620
|
+
/**
|
|
621
|
+
* An array of span groups (one per file) that refer to the item to be renamed.
|
|
622
|
+
*/
|
|
623
|
+
locs: readonly SpanGroup[];
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Information about the item to be renamed.
|
|
627
|
+
*/
|
|
628
|
+
export type RenameInfo = RenameInfoSuccess | RenameInfoFailure;
|
|
629
|
+
export type RenameInfoSuccess = ChangePropertyTypes<lpc.RenameInfoSuccess, {
|
|
630
|
+
triggerSpan: TextSpan;
|
|
631
|
+
}>;
|
|
632
|
+
/**
|
|
633
|
+
* A group of text spans, all in 'file'.
|
|
634
|
+
*/
|
|
635
|
+
export interface SpanGroup {
|
|
636
|
+
/** The file to which the spans apply */
|
|
637
|
+
file: string;
|
|
638
|
+
/** The text spans in this group */
|
|
639
|
+
locs: RenameTextSpan[];
|
|
640
|
+
}
|
|
641
|
+
export interface RenameTextSpan extends TextSpanWithContext {
|
|
642
|
+
readonly prefixText?: string;
|
|
643
|
+
readonly suffixText?: string;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Completions request; value of command field is "completions".
|
|
647
|
+
* Given a file location (file, line, col) and a prefix (which may
|
|
648
|
+
* be the empty string), return the possible completions that
|
|
649
|
+
* begin with prefix.
|
|
650
|
+
*/
|
|
651
|
+
export interface CompletionsRequest extends FileLocationRequest {
|
|
652
|
+
command: CommandTypes.Completions | CommandTypes.CompletionInfo;
|
|
653
|
+
arguments: CompletionsRequestArgs;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Completion entry details request; value of command field is
|
|
657
|
+
* "completionEntryDetails". Given a file location (file, line,
|
|
658
|
+
* col) and an array of completion entry names return more
|
|
659
|
+
* detailed information for each completion entry.
|
|
660
|
+
*/
|
|
661
|
+
export interface CompletionDetailsRequest extends FileLocationRequest {
|
|
662
|
+
command: CommandTypes.CompletionDetails;
|
|
663
|
+
arguments: CompletionDetailsRequestArgs;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Arguments for completions messages.
|
|
667
|
+
*/
|
|
668
|
+
export interface CompletionsRequestArgs extends FileLocationRequestArgs {
|
|
669
|
+
/**
|
|
670
|
+
* Optional prefix to apply to possible completions.
|
|
671
|
+
*/
|
|
672
|
+
prefix?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Character that was responsible for triggering completion.
|
|
675
|
+
* Should be `undefined` if a user manually requested completion.
|
|
676
|
+
*/
|
|
677
|
+
triggerCharacter?: CompletionsTriggerCharacter;
|
|
678
|
+
triggerKind?: CompletionTriggerKind;
|
|
679
|
+
/**
|
|
680
|
+
* @deprecated Use UserPreferences.includeCompletionsForModuleExports
|
|
681
|
+
*/
|
|
682
|
+
includeExternalModuleExports?: boolean;
|
|
683
|
+
/**
|
|
684
|
+
* @deprecated Use UserPreferences.includeCompletionsWithInsertText
|
|
685
|
+
*/
|
|
686
|
+
includeInsertTextCompletions?: boolean;
|
|
687
|
+
}
|
|
688
|
+
export type CompletionEntry = ChangePropertyTypes<Omit<lpc.CompletionEntry, "symbol">, {
|
|
689
|
+
replacementSpan: TextSpan;
|
|
690
|
+
data: unknown;
|
|
691
|
+
}>;
|
|
692
|
+
export type CompletionInfo = ChangePropertyTypes<lpc.CompletionInfo, {
|
|
693
|
+
entries: readonly CompletionEntry[];
|
|
694
|
+
optionalReplacementSpan: TextSpan;
|
|
695
|
+
}>;
|
|
696
|
+
/**
|
|
697
|
+
* Arguments for completion details request.
|
|
698
|
+
*/
|
|
699
|
+
export interface CompletionDetailsRequestArgs extends FileLocationRequestArgs {
|
|
700
|
+
/**
|
|
701
|
+
* Names of one or more entries for which to obtain details.
|
|
702
|
+
*/
|
|
703
|
+
entryNames: (string | CompletionEntryIdentifier)[];
|
|
704
|
+
}
|
|
705
|
+
export interface CompletionEntryIdentifier {
|
|
706
|
+
name: string;
|
|
707
|
+
source?: string;
|
|
708
|
+
data?: unknown;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Additional completion entry details, available on demand
|
|
712
|
+
*/
|
|
713
|
+
export type CompletionEntryDetails = ChangePropertyTypes<lpc.CompletionEntryDetails, {
|
|
714
|
+
tags: JSDocTagInfo[];
|
|
715
|
+
codeActions: CodeAction[];
|
|
716
|
+
}>;
|
|
717
|
+
/**
|
|
718
|
+
* Arguments for EncodedSemanticClassificationsRequest request.
|
|
719
|
+
*/
|
|
720
|
+
export interface EncodedSemanticClassificationsRequestArgs extends FileRequestArgs {
|
|
721
|
+
/**
|
|
722
|
+
* Start position of the span.
|
|
723
|
+
*/
|
|
724
|
+
start: number;
|
|
725
|
+
/**
|
|
726
|
+
* Length of the span.
|
|
727
|
+
*/
|
|
728
|
+
length: number;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Request whose sole parameter is a file name.
|
|
732
|
+
*/
|
|
733
|
+
export interface FileRequest extends Request {
|
|
734
|
+
arguments: FileRequestArgs;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* A request to get encoded semantic classifications for a span in the file
|
|
738
|
+
*/
|
|
739
|
+
export interface EncodedSemanticClassificationsRequest extends FileRequest {
|
|
740
|
+
arguments: EncodedSemanticClassificationsRequestArgs;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Arguments of a signature help request.
|
|
744
|
+
*/
|
|
745
|
+
export interface SignatureHelpRequestArgs extends FileLocationRequestArgs {
|
|
746
|
+
/**
|
|
747
|
+
* Reason why signature help was invoked.
|
|
748
|
+
* See each individual possible
|
|
749
|
+
*/
|
|
750
|
+
triggerReason?: SignatureHelpTriggerReason;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Represents a single signature to show in signature help.
|
|
754
|
+
*/
|
|
755
|
+
export type SignatureHelpItem = ChangePropertyTypes<lpc.SignatureHelpItem, {
|
|
756
|
+
tags: JSDocTagInfo[];
|
|
757
|
+
}>;
|
|
758
|
+
/**
|
|
759
|
+
* Signature help items found in the response of a signature help request.
|
|
760
|
+
*/
|
|
761
|
+
export interface SignatureHelpItems {
|
|
762
|
+
/**
|
|
763
|
+
* The signature help items.
|
|
764
|
+
*/
|
|
765
|
+
items: SignatureHelpItem[];
|
|
766
|
+
/**
|
|
767
|
+
* The span for which signature help should appear on a signature
|
|
768
|
+
*/
|
|
769
|
+
applicableSpan: TextSpan;
|
|
770
|
+
/**
|
|
771
|
+
* The item selected in the set of available help items.
|
|
772
|
+
*/
|
|
773
|
+
selectedItemIndex: number;
|
|
774
|
+
/**
|
|
775
|
+
* The argument selected in the set of parameters.
|
|
776
|
+
*/
|
|
777
|
+
argumentIndex: number;
|
|
778
|
+
/**
|
|
779
|
+
* The argument count
|
|
780
|
+
*/
|
|
781
|
+
argumentCount: number;
|
|
782
|
+
}
|
|
783
|
+
export interface CompileOnSaveMixin {
|
|
784
|
+
/**
|
|
785
|
+
* If compile on save is enabled for the project
|
|
786
|
+
*/
|
|
787
|
+
compileOnSave?: boolean;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* For external projects, some of the project settings are sent together with
|
|
791
|
+
* compiler settings.
|
|
792
|
+
*/
|
|
793
|
+
export type ExternalProjectCompilerOptions = CompilerOptions & CompileOnSaveMixin & WatchOptions;
|
|
794
|
+
/**
|
|
795
|
+
* External projects have a typeAcquisition option so they need to be added separately to compiler options for inferred projects.
|
|
796
|
+
*/
|
|
797
|
+
export type InferredProjectCompilerOptions = ExternalProjectCompilerOptions & TypeAcquisition;
|
|
798
|
+
/**
|
|
799
|
+
* Argument for SetCompilerOptionsForInferredProjectsRequest request.
|
|
800
|
+
*/
|
|
801
|
+
export interface SetCompilerOptionsForInferredProjectsArgs {
|
|
802
|
+
/**
|
|
803
|
+
* Compiler options to be used with inferred projects.
|
|
804
|
+
*/
|
|
805
|
+
options: InferredProjectCompilerOptions;
|
|
806
|
+
/**
|
|
807
|
+
* Specifies the project root path used to scope compiler options.
|
|
808
|
+
* It is an error to provide this property if the server has not been started with
|
|
809
|
+
* `useInferredProjectPerProjectRoot` enabled.
|
|
810
|
+
*/
|
|
811
|
+
projectRootPath?: string;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Arguments for ProjectInfoRequest request.
|
|
815
|
+
*/
|
|
816
|
+
export interface ProjectInfoRequestArgs extends FileRequestArgs {
|
|
817
|
+
/**
|
|
818
|
+
* Indicate if the file name list of the project is needed
|
|
819
|
+
*/
|
|
820
|
+
needFileNameList: boolean;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* A request to get the project information of the current file.
|
|
824
|
+
*/
|
|
825
|
+
export interface ProjectInfoRequest extends FileRequest {
|
|
826
|
+
command: CommandTypes.ProjectInfo;
|
|
827
|
+
arguments: ProjectInfoRequestArgs;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* A request whose arguments specify a file location (file, line, col).
|
|
831
|
+
*/
|
|
832
|
+
export interface FileLocationRequest extends FileRequest {
|
|
833
|
+
arguments: FileLocationRequestArgs;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Requests a JS Doc comment template for a given position
|
|
837
|
+
*/
|
|
838
|
+
export interface DocCommentTemplateRequest extends FileLocationRequest {
|
|
839
|
+
command: CommandTypes.DocCommentTemplate;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Response message body for "projectInfo" request
|
|
843
|
+
*/
|
|
844
|
+
export interface ProjectInfo {
|
|
845
|
+
/**
|
|
846
|
+
* For configured project, this is the normalized path of the 'tsconfig.json' file
|
|
847
|
+
* For inferred project, this is undefined
|
|
848
|
+
*/
|
|
849
|
+
configFileName: string;
|
|
850
|
+
/**
|
|
851
|
+
* The list of normalized file name in the project, including 'lib.d.ts'
|
|
852
|
+
*/
|
|
853
|
+
fileNames?: string[];
|
|
854
|
+
/**
|
|
855
|
+
* Indicates if the project has a active language service instance
|
|
856
|
+
*/
|
|
857
|
+
languageServiceDisabled?: boolean;
|
|
858
|
+
/**
|
|
859
|
+
* The project's driver type
|
|
860
|
+
*/
|
|
861
|
+
driverType?: string;
|
|
862
|
+
}
|
|
863
|
+
type commandSpec = typeof CommandTypes;
|
|
864
|
+
export type CommandTypeMap = {
|
|
865
|
+
[K in keyof commandSpec]: Request;
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Request to synchronize list of open files with the client
|
|
869
|
+
*/
|
|
870
|
+
export interface UpdateOpenRequest extends Request {
|
|
871
|
+
command: CommandTypes.UpdateOpen;
|
|
872
|
+
arguments: UpdateOpenRequestArgs;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* Arguments for geterr messages.
|
|
876
|
+
*/
|
|
877
|
+
export interface GeterrRequestArgs {
|
|
878
|
+
/**
|
|
879
|
+
* List of file names for which to compute compiler errors.
|
|
880
|
+
* The files will be checked in list order.
|
|
881
|
+
*/
|
|
882
|
+
files: string[];
|
|
883
|
+
/**
|
|
884
|
+
* Delay in milliseconds to wait before starting to compute
|
|
885
|
+
* errors for the files in the file list
|
|
886
|
+
*/
|
|
887
|
+
delay: number;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Geterr request; value of command field is "geterr". Wait for
|
|
891
|
+
* delay milliseconds and then, if during the wait no change or
|
|
892
|
+
* reload messages have arrived for the first file in the files
|
|
893
|
+
* list, get the syntactic errors for the file, field requests,
|
|
894
|
+
* and then get the semantic errors for the file. Repeat with a
|
|
895
|
+
* smaller delay for each subsequent file on the files list. Best
|
|
896
|
+
* practice for an editor is to send a file list containing each
|
|
897
|
+
* file that is currently visible, in most-recently-used order.
|
|
898
|
+
*/
|
|
899
|
+
export interface GeterrRequest extends Request {
|
|
900
|
+
command: CommandTypes.Geterr;
|
|
901
|
+
arguments: GeterrRequestArgs;
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Go to definition request; value of command field is
|
|
905
|
+
* "definition". Return response giving the file locations that
|
|
906
|
+
* define the symbol found in file at location line, col.
|
|
907
|
+
*/
|
|
908
|
+
export interface DefinitionRequest extends FileLocationRequest {
|
|
909
|
+
command: CommandTypes.Definition;
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Signature help request; value of command field is "signatureHelp".
|
|
913
|
+
* Given a file location (file, line, col), return the signature
|
|
914
|
+
* help.
|
|
915
|
+
*/
|
|
916
|
+
export interface SignatureHelpRequest extends FileLocationRequest {
|
|
917
|
+
command: CommandTypes.SignatureHelp;
|
|
918
|
+
arguments: SignatureHelpRequestArgs;
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Quickinfo request; value of command field is
|
|
922
|
+
* "quickinfo". Return response giving a quick type and
|
|
923
|
+
* documentation string for the symbol found in file at location
|
|
924
|
+
* line, col.
|
|
925
|
+
*/
|
|
926
|
+
export interface QuickInfoRequest extends FileLocationRequest {
|
|
927
|
+
command: CommandTypes.Quickinfo;
|
|
928
|
+
arguments: FileLocationRequestArgs;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Arguments for change request message.
|
|
932
|
+
*/
|
|
933
|
+
export interface ChangeRequestArgs extends FormatRequestArgs {
|
|
934
|
+
/**
|
|
935
|
+
* Optional string to insert at location (file, line, offset).
|
|
936
|
+
*/
|
|
937
|
+
insertString?: string;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Change request message; value of command field is "change".
|
|
941
|
+
* Update the server's view of the file named by argument 'file'.
|
|
942
|
+
* Server does not currently send a response to a change request.
|
|
943
|
+
*/
|
|
944
|
+
export interface ChangeRequest extends FileLocationRequest {
|
|
945
|
+
command: CommandTypes.Change;
|
|
946
|
+
arguments: ChangeRequestArgs;
|
|
947
|
+
}
|
|
948
|
+
export type ScriptKindName = "LPC";
|
|
949
|
+
/**
|
|
950
|
+
* Open request; value of command field is "open". Notify the
|
|
951
|
+
* server that the client has file open. The server will not
|
|
952
|
+
* monitor the filesystem for changes in this file and will assume
|
|
953
|
+
* that the client is updating the server (using the change and/or
|
|
954
|
+
* reload messages) when the file changes. Server does not currently
|
|
955
|
+
* send a response to an open request.
|
|
956
|
+
*/
|
|
957
|
+
export interface OpenRequest extends Request {
|
|
958
|
+
command: CommandTypes.Open;
|
|
959
|
+
arguments: OpenRequestArgs;
|
|
960
|
+
}
|
|
961
|
+
export {};
|
|
962
|
+
//# sourceMappingURL=protocol.d.ts.map
|