Skip to content

Commit 6ad5ee6

Browse files
h9jianggopherbot
authored andcommitted
extension/src/language: organize interactive param
This CL is organizing the interactive methods parameter together. Change-Id: I72c4b11b950e8e42ab0eddbf2d99bf88cacb8b72 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/780401 Reviewed-by: Madeline Kalil <mkalil@google.com> Auto-Submit: Hongxiang Jiang <hxjiang@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent cd17659 commit 6ad5ee6

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

extension/src/language/form.ts

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,41 @@ export interface InteractiveExecuteCommandParams extends InteractiveParams {
247247
arguments?: any[];
248248
}
249249

250+
/**
251+
* InteractiveListEnumParams defines the parameters for the
252+
* 'interactive/listEnum' request.
253+
*/
254+
export interface InteractiveListEnumParams {
255+
/**
256+
* Source identifies the data source on the server.
257+
*
258+
* The client treats this as opaque data and echoes it back in the
259+
* 'interactive/listEnum' request.
260+
*
261+
* Examples: "workspace/symbol", "database/schema", "git/tags".
262+
*/
263+
source: string;
264+
265+
/**
266+
* Config contains the static settings for the specified source.
267+
*
268+
* The client treats this as opaque data and echoes it back in the
269+
* 'interactive/listEnum' request.
270+
*/
271+
config?: any;
272+
273+
/**
274+
* A query string to filter enum entries by.
275+
*
276+
* The exact interpretation of this string (e.g., fuzzy matching, exact
277+
* match, prefix search, or regular expression) is entirely up to the
278+
* server and may vary depending on the source. This follows the similar
279+
* semantics as the standard 'workspace/symbol' request. Clients may
280+
* send an empty string here to request a default set of enum entries.
281+
*/
282+
query: string;
283+
}
284+
250285
/**
251286
* MAX_RETRY defined the maximum number of user collection allowed for when
252287
* resolving a command.
@@ -408,41 +443,6 @@ async function CollectAnswers(
408443
return answers;
409444
}
410445

411-
/**
412-
* InteractiveListEnumParams defines the parameters for the
413-
* 'interactive/listEnum' request.
414-
*/
415-
interface InteractiveListEnumParams {
416-
/**
417-
* Source identifies the data source on the server.
418-
*
419-
* The client treats this as opaque data and echoes it back in the
420-
* 'interactive/listEnum' request.
421-
*
422-
* Examples: "workspace/symbol", "database/schema", "git/tags".
423-
*/
424-
source: string;
425-
426-
/**
427-
* Config contains the static settings for the specified source.
428-
*
429-
* The client treats this as opaque data and echoes it back in the
430-
* 'interactive/listEnum' request.
431-
*/
432-
config?: any;
433-
434-
/**
435-
* A query string to filter enum entries by.
436-
*
437-
* The exact interpretation of this string (e.g., fuzzy matching, exact
438-
* match, prefix search, or regular expression) is entirely up to the
439-
* server and may vary depending on the source. This follows the similar
440-
* semantics as the standard 'workspace/symbol' request. Clients may
441-
* send an empty string here to request a default set of enum entries.
442-
*/
443-
query: string;
444-
}
445-
446446
/**
447447
* Opens a Quick Pick that dynamically fetches options from the Language Server.
448448
*/

0 commit comments

Comments
 (0)