mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-23 18:48:40 -05:00
Update LKG
This commit is contained in:
26
lib/protocol.d.ts
vendored
26
lib/protocol.d.ts
vendored
@@ -46,6 +46,7 @@ declare namespace ts.server.protocol {
|
||||
OpenExternalProject = "openExternalProject",
|
||||
OpenExternalProjects = "openExternalProjects",
|
||||
CloseExternalProject = "closeExternalProject",
|
||||
GetOutliningSpans = "getOutliningSpans",
|
||||
TodoComments = "todoComments",
|
||||
Indentation = "indentation",
|
||||
DocCommentTemplate = "docCommentTemplate",
|
||||
@@ -204,6 +205,31 @@ declare namespace ts.server.protocol {
|
||||
*/
|
||||
onlyMultiLine: boolean;
|
||||
}
|
||||
/**
|
||||
* Request to obtain outlining spans in file.
|
||||
*/
|
||||
interface OutliningSpansRequest extends FileRequest {
|
||||
command: CommandTypes.GetOutliningSpans;
|
||||
}
|
||||
interface OutliningSpan {
|
||||
/** The span of the document to actually collapse. */
|
||||
textSpan: TextSpan;
|
||||
/** The span of the document to display when the user hovers over the collapsed span. */
|
||||
hintSpan: TextSpan;
|
||||
/** The text to display in the editor for the collapsed region. */
|
||||
bannerText: string;
|
||||
/**
|
||||
* Whether or not this region should be automatically collapsed when
|
||||
* the 'Collapse to Definitions' command is invoked.
|
||||
*/
|
||||
autoCollapse: boolean;
|
||||
}
|
||||
/**
|
||||
* Response to OutliningSpansRequest request.
|
||||
*/
|
||||
interface OutliningSpansResponse extends Response {
|
||||
body?: OutliningSpan[];
|
||||
}
|
||||
/**
|
||||
* A request to get indentation for a location in file
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user