Mark getOccurrences as deprecated in protocol.ts like it is in services/types.ts (#22067)

This commit is contained in:
Andy
2018-02-22 13:21:40 -08:00
committed by GitHub
parent 8463b1e028
commit b90a56dc7a
2 changed files with 8 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ namespace ts.server.protocol {
NavtoFull = "navto-full",
NavTree = "navtree",
NavTreeFull = "navtree-full",
/** @deprecated */
Occurrences = "occurrences",
DocumentHighlights = "documentHighlights",
/* @internal */
@@ -829,6 +830,7 @@ namespace ts.server.protocol {
}
/**
* @deprecated
* Get occurrences request; value of command field is
* "occurrences". Return response giving spans that are relevant
* in the file at a given line and column.
@@ -837,6 +839,7 @@ namespace ts.server.protocol {
command: CommandTypes.Occurrences;
}
/** @deprecated */
export interface OccurrencesResponseItem extends FileSpan {
/**
* True if the occurrence is a write location, false otherwise.
@@ -849,6 +852,7 @@ namespace ts.server.protocol {
isInString?: true;
}
/** @deprecated */
export interface OccurrencesResponse extends Response {
body?: OccurrencesResponseItem[];
}

View File

@@ -5058,6 +5058,7 @@ declare namespace ts.server.protocol {
Navto = "navto",
NavTree = "navtree",
NavTreeFull = "navtree-full",
/** @deprecated */
Occurrences = "occurrences",
DocumentHighlights = "documentHighlights",
Open = "open",
@@ -5658,6 +5659,7 @@ declare namespace ts.server.protocol {
openingBrace: string;
}
/**
* @deprecated
* Get occurrences request; value of command field is
* "occurrences". Return response giving spans that are relevant
* in the file at a given line and column.
@@ -5665,6 +5667,7 @@ declare namespace ts.server.protocol {
interface OccurrencesRequest extends FileLocationRequest {
command: CommandTypes.Occurrences;
}
/** @deprecated */
interface OccurrencesResponseItem extends FileSpan {
/**
* True if the occurrence is a write location, false otherwise.
@@ -5675,6 +5678,7 @@ declare namespace ts.server.protocol {
*/
isInString?: true;
}
/** @deprecated */
interface OccurrencesResponse extends Response {
body?: OccurrencesResponseItem[];
}