mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Mark getOccurrences as deprecated in protocol.ts like it is in services/types.ts (#22067)
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user