Merge branch 'main' into oleina/logging
This commit is contained in:
commit
e573e855f0
1 changed files with 212 additions and 3 deletions
|
|
@ -201,6 +201,7 @@ export function useConnection({
|
|||
ref: ResourceReference | PromptReference,
|
||||
argName: string,
|
||||
value: string,
|
||||
context?: Record<string, string>,
|
||||
signal?: AbortSignal,
|
||||
): Promise<string[]> => {
|
||||
if (!mcpClient || !completionsSupported) {
|
||||
|
|
@ -218,6 +219,12 @@ export function useConnection({
|
|||
},
|
||||
};
|
||||
|
||||
if (context) {
|
||||
request["params"]["context"] = {
|
||||
arguments: context,
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(request, CompleteResultSchema, {
|
||||
signal,
|
||||
|
|
|
|||
Loading…
Reference in a new issue