mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
parent
b233985fea
commit
77cfadf532
7 changed files with 240 additions and 1 deletions
|
@ -703,6 +703,15 @@ delete Object.prototype.__proto__;
|
|||
),
|
||||
);
|
||||
}
|
||||
case "getSmartSelectionRange": {
|
||||
return respond(
|
||||
id,
|
||||
languageService.getSmartSelectionRange(
|
||||
request.specifier,
|
||||
request.position,
|
||||
),
|
||||
);
|
||||
}
|
||||
case "getSupportedCodeFixes": {
|
||||
return respond(
|
||||
id,
|
||||
|
|
7
cli/tsc/compiler.d.ts
vendored
7
cli/tsc/compiler.d.ts
vendored
|
@ -61,6 +61,7 @@ declare global {
|
|||
| GetQuickInfoRequest
|
||||
| GetReferencesRequest
|
||||
| GetSignatureHelpItemsRequest
|
||||
| GetSmartSelectionRange
|
||||
| GetSupportedCodeFixes;
|
||||
|
||||
interface BaseLanguageServerRequest {
|
||||
|
@ -169,6 +170,12 @@ declare global {
|
|||
options: ts.SignatureHelpItemsOptions;
|
||||
}
|
||||
|
||||
interface GetSmartSelectionRange extends BaseLanguageServerRequest {
|
||||
method: "getSmartSelectionRange";
|
||||
specifier: string;
|
||||
position: number;
|
||||
}
|
||||
|
||||
interface GetSupportedCodeFixes extends BaseLanguageServerRequest {
|
||||
method: "getSupportedCodeFixes";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue