Skip to content

Commit f24db4c

Browse files
authored
Merge pull request #33921 from sQVe/refactor/correct-misspelled-response
refactor(spelling): correct misspelled response
2 parents 77f4d9f + 2f48ff3 commit f24db4c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/harness/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ namespace ts.server {
290290
const args: protocol.FileLocationRequestArgs = this.createFileLocationRequestArgs(fileName, position);
291291

292292
const request = this.processRequest<protocol.DefinitionRequest>(CommandNames.DefinitionAndBoundSpan, args);
293-
const response = this.processResponse<protocol.DefinitionInfoAndBoundSpanReponse>(request);
293+
const response = this.processResponse<protocol.DefinitionInfoAndBoundSpanResponse>(request);
294294
const body = Debug.assertDefined(response.body); // TODO: GH#18217
295295

296296
return {

src/server/protocol.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,13 @@ namespace ts.server.protocol {
918918
body?: FileSpanWithContext[];
919919
}
920920

921-
export interface DefinitionInfoAndBoundSpanReponse extends Response {
921+
export interface DefinitionInfoAndBoundSpanResponse extends Response {
922922
body?: DefinitionInfoAndBoundSpan;
923923
}
924924

925+
/** @deprecated Use `DefinitionInfoAndBoundSpanResponse` instead. */
926+
export type DefinitionInfoAndBoundSpanReponse = DefinitionInfoAndBoundSpanResponse;
927+
925928
/**
926929
* Definition response message. Gives text range for definition.
927930
*/

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6628,9 +6628,11 @@ declare namespace ts.server.protocol {
66286628
interface DefinitionResponse extends Response {
66296629
body?: FileSpanWithContext[];
66306630
}
6631-
interface DefinitionInfoAndBoundSpanReponse extends Response {
6631+
interface DefinitionInfoAndBoundSpanResponse extends Response {
66326632
body?: DefinitionInfoAndBoundSpan;
66336633
}
6634+
/** @deprecated Use `DefinitionInfoAndBoundSpanResponse` instead. */
6635+
type DefinitionInfoAndBoundSpanReponse = DefinitionInfoAndBoundSpanResponse;
66346636
/**
66356637
* Definition response message. Gives text range for definition.
66366638
*/

0 commit comments

Comments
 (0)