|
54 | 54 | from ...types.devboxes.base_workspace_edit_param import BaseWorkspaceEditParam
|
55 | 55 | from ...types.devboxes.code_action_context_param import CodeActionContextParam
|
56 | 56 | from ...types.devboxes.code_segment_info_response import CodeSegmentInfoResponse
|
57 |
| -from ...types.devboxes.references_request_body_param import ReferencesRequestBodyParam |
58 | 57 | from ...types.devboxes.code_action_application_result import CodeActionApplicationResult
|
59 |
| -from ...types.devboxes.signature_help_request_body_param import SignatureHelpRequestBodyParam |
60 |
| -from ...types.devboxes.file_definition_request_body_param import FileDefinitionRequestBodyParam |
61 | 58 | from ...types.devboxes.lsp_get_code_actions_for_diagnostic_response import LspGetCodeActionsForDiagnosticResponse
|
62 | 59 |
|
63 | 60 | __all__ = ["LspResource", "AsyncLspResource"]
|
@@ -346,7 +343,9 @@ def file_definition(
|
346 | 343 | self,
|
347 | 344 | id: str,
|
348 | 345 | *,
|
349 |
| - file_definition_request_body: FileDefinitionRequestBodyParam, |
| 346 | + character: float, |
| 347 | + line: float, |
| 348 | + uri: str, |
350 | 349 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
351 | 350 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
352 | 351 | extra_headers: Headers | None = None,
|
@@ -374,7 +373,14 @@ def file_definition(
|
374 | 373 | raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
375 | 374 | return self._post(
|
376 | 375 | f"/v1/devboxes/{id}/lsp/file-definition",
|
377 |
| - body=maybe_transform(file_definition_request_body, lsp_file_definition_params.LspFileDefinitionParams), |
| 376 | + body=maybe_transform( |
| 377 | + { |
| 378 | + "character": character, |
| 379 | + "line": line, |
| 380 | + "uri": uri, |
| 381 | + }, |
| 382 | + lsp_file_definition_params.LspFileDefinitionParams, |
| 383 | + ), |
378 | 384 | options=make_request_options(
|
379 | 385 | extra_headers=extra_headers,
|
380 | 386 | extra_query=extra_query,
|
@@ -566,7 +572,9 @@ def get_signature_help(
|
566 | 572 | self,
|
567 | 573 | id: str,
|
568 | 574 | *,
|
569 |
| - signature_help_request_body: SignatureHelpRequestBodyParam, |
| 575 | + character: float, |
| 576 | + line: float, |
| 577 | + uri: str, |
570 | 578 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
571 | 579 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
572 | 580 | extra_headers: Headers | None = None,
|
@@ -594,7 +602,14 @@ def get_signature_help(
|
594 | 602 | raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
595 | 603 | return self._post(
|
596 | 604 | f"/v1/devboxes/{id}/lsp/get-signature-help",
|
597 |
| - body=maybe_transform(signature_help_request_body, lsp_get_signature_help_params.LspGetSignatureHelpParams), |
| 605 | + body=maybe_transform( |
| 606 | + { |
| 607 | + "character": character, |
| 608 | + "line": line, |
| 609 | + "uri": uri, |
| 610 | + }, |
| 611 | + lsp_get_signature_help_params.LspGetSignatureHelpParams, |
| 612 | + ), |
598 | 613 | options=make_request_options(
|
599 | 614 | extra_headers=extra_headers,
|
600 | 615 | extra_query=extra_query,
|
@@ -643,7 +658,9 @@ def references(
|
643 | 658 | self,
|
644 | 659 | id: str,
|
645 | 660 | *,
|
646 |
| - references_request_body: ReferencesRequestBodyParam, |
| 661 | + character: float, |
| 662 | + line: float, |
| 663 | + uri: str, |
647 | 664 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
648 | 665 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
649 | 666 | extra_headers: Headers | None = None,
|
@@ -674,7 +691,14 @@ def references(
|
674 | 691 | raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
675 | 692 | return self._post(
|
676 | 693 | f"/v1/devboxes/{id}/lsp/references",
|
677 |
| - body=maybe_transform(references_request_body, lsp_references_params.LspReferencesParams), |
| 694 | + body=maybe_transform( |
| 695 | + { |
| 696 | + "character": character, |
| 697 | + "line": line, |
| 698 | + "uri": uri, |
| 699 | + }, |
| 700 | + lsp_references_params.LspReferencesParams, |
| 701 | + ), |
678 | 702 | options=make_request_options(
|
679 | 703 | extra_headers=extra_headers,
|
680 | 704 | extra_query=extra_query,
|
@@ -1012,7 +1036,9 @@ async def file_definition(
|
1012 | 1036 | self,
|
1013 | 1037 | id: str,
|
1014 | 1038 | *,
|
1015 |
| - file_definition_request_body: FileDefinitionRequestBodyParam, |
| 1039 | + character: float, |
| 1040 | + line: float, |
| 1041 | + uri: str, |
1016 | 1042 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
1017 | 1043 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
1018 | 1044 | extra_headers: Headers | None = None,
|
@@ -1041,7 +1067,12 @@ async def file_definition(
|
1041 | 1067 | return await self._post(
|
1042 | 1068 | f"/v1/devboxes/{id}/lsp/file-definition",
|
1043 | 1069 | body=await async_maybe_transform(
|
1044 |
| - file_definition_request_body, lsp_file_definition_params.LspFileDefinitionParams |
| 1070 | + { |
| 1071 | + "character": character, |
| 1072 | + "line": line, |
| 1073 | + "uri": uri, |
| 1074 | + }, |
| 1075 | + lsp_file_definition_params.LspFileDefinitionParams, |
1045 | 1076 | ),
|
1046 | 1077 | options=make_request_options(
|
1047 | 1078 | extra_headers=extra_headers,
|
@@ -1234,7 +1265,9 @@ async def get_signature_help(
|
1234 | 1265 | self,
|
1235 | 1266 | id: str,
|
1236 | 1267 | *,
|
1237 |
| - signature_help_request_body: SignatureHelpRequestBodyParam, |
| 1268 | + character: float, |
| 1269 | + line: float, |
| 1270 | + uri: str, |
1238 | 1271 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
1239 | 1272 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
1240 | 1273 | extra_headers: Headers | None = None,
|
@@ -1263,7 +1296,12 @@ async def get_signature_help(
|
1263 | 1296 | return await self._post(
|
1264 | 1297 | f"/v1/devboxes/{id}/lsp/get-signature-help",
|
1265 | 1298 | body=await async_maybe_transform(
|
1266 |
| - signature_help_request_body, lsp_get_signature_help_params.LspGetSignatureHelpParams |
| 1299 | + { |
| 1300 | + "character": character, |
| 1301 | + "line": line, |
| 1302 | + "uri": uri, |
| 1303 | + }, |
| 1304 | + lsp_get_signature_help_params.LspGetSignatureHelpParams, |
1267 | 1305 | ),
|
1268 | 1306 | options=make_request_options(
|
1269 | 1307 | extra_headers=extra_headers,
|
@@ -1313,7 +1351,9 @@ async def references(
|
1313 | 1351 | self,
|
1314 | 1352 | id: str,
|
1315 | 1353 | *,
|
1316 |
| - references_request_body: ReferencesRequestBodyParam, |
| 1354 | + character: float, |
| 1355 | + line: float, |
| 1356 | + uri: str, |
1317 | 1357 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
1318 | 1358 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
1319 | 1359 | extra_headers: Headers | None = None,
|
@@ -1344,7 +1384,14 @@ async def references(
|
1344 | 1384 | raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
1345 | 1385 | return await self._post(
|
1346 | 1386 | f"/v1/devboxes/{id}/lsp/references",
|
1347 |
| - body=await async_maybe_transform(references_request_body, lsp_references_params.LspReferencesParams), |
| 1387 | + body=await async_maybe_transform( |
| 1388 | + { |
| 1389 | + "character": character, |
| 1390 | + "line": line, |
| 1391 | + "uri": uri, |
| 1392 | + }, |
| 1393 | + lsp_references_params.LspReferencesParams, |
| 1394 | + ), |
1348 | 1395 | options=make_request_options(
|
1349 | 1396 | extra_headers=extra_headers,
|
1350 | 1397 | extra_query=extra_query,
|
|
0 commit comments