mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-06 21:44:32 +01:00
Fix tests
This commit is contained in:
@@ -157,10 +157,6 @@ export class CancelAction extends Action2 {
|
||||
id: MenuId.ChatExecute,
|
||||
when: CONTEXT_CHAT_REQUEST_IN_PROGRESS,
|
||||
group: 'navigation',
|
||||
},
|
||||
keybinding: {
|
||||
weight: KeybindingWeight.WorkbenchContrib,
|
||||
primary: KeyMod.CtrlCmd | KeyCode.Escape,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+15
-11
@@ -11,7 +11,6 @@
|
||||
text: "@ChatProviderWithUsedContext test request",
|
||||
parts: [
|
||||
{
|
||||
kind: "agent",
|
||||
range: {
|
||||
start: 0,
|
||||
endExclusive: 28
|
||||
@@ -23,11 +22,18 @@
|
||||
endColumn: 29
|
||||
},
|
||||
agent: {
|
||||
id: "ChatProviderWithUsedContext",
|
||||
name: "ChatProviderWithUsedContext",
|
||||
description: undefined,
|
||||
metadata: { }
|
||||
}
|
||||
id: "ChatProviderWithUsedContext",
|
||||
extensionId: {
|
||||
value: "nullExtensionDescription",
|
||||
_lower: "nullextensiondescription"
|
||||
},
|
||||
extensionPublisher: "",
|
||||
locations: [ "panel" ],
|
||||
metadata: { },
|
||||
slashCommands: [ ]
|
||||
},
|
||||
kind: "agent"
|
||||
},
|
||||
{
|
||||
range: {
|
||||
@@ -52,18 +58,16 @@
|
||||
isCanceled: false,
|
||||
vote: undefined,
|
||||
agent: {
|
||||
id: "ChatProviderWithUsedContext",
|
||||
name: "ChatProviderWithUsedContext",
|
||||
description: undefined,
|
||||
id: "ChatProviderWithUsedContext",
|
||||
extensionId: {
|
||||
value: "nullExtensionDescription",
|
||||
_lower: "nullextensiondescription"
|
||||
},
|
||||
metadata: { },
|
||||
slashCommands: [ ],
|
||||
extensionPublisher: "",
|
||||
locations: [ "panel" ],
|
||||
isDefault: undefined,
|
||||
extensionPublisher: ""
|
||||
metadata: { },
|
||||
slashCommands: [ ]
|
||||
},
|
||||
slashCommand: undefined,
|
||||
usedContext: {
|
||||
|
||||
+15
-11
@@ -10,7 +10,6 @@
|
||||
message: {
|
||||
parts: [
|
||||
{
|
||||
kind: "agent",
|
||||
range: {
|
||||
start: 0,
|
||||
endExclusive: 28
|
||||
@@ -22,14 +21,21 @@
|
||||
endColumn: 29
|
||||
},
|
||||
agent: {
|
||||
id: "ChatProviderWithUsedContext",
|
||||
name: "ChatProviderWithUsedContext",
|
||||
description: undefined,
|
||||
id: "ChatProviderWithUsedContext",
|
||||
extensionId: {
|
||||
value: "nullExtensionDescription",
|
||||
_lower: "nullextensiondescription"
|
||||
},
|
||||
extensionPublisher: "",
|
||||
locations: [ "panel" ],
|
||||
metadata: {
|
||||
requester: { name: "test" },
|
||||
fullName: "test"
|
||||
}
|
||||
}
|
||||
},
|
||||
slashCommands: [ ]
|
||||
},
|
||||
kind: "agent"
|
||||
},
|
||||
{
|
||||
range: {
|
||||
@@ -55,21 +61,19 @@
|
||||
isCanceled: false,
|
||||
vote: undefined,
|
||||
agent: {
|
||||
id: "ChatProviderWithUsedContext",
|
||||
name: "ChatProviderWithUsedContext",
|
||||
description: undefined,
|
||||
id: "ChatProviderWithUsedContext",
|
||||
extensionId: {
|
||||
value: "nullExtensionDescription",
|
||||
_lower: "nullextensiondescription"
|
||||
},
|
||||
extensionPublisher: "",
|
||||
locations: [ "panel" ],
|
||||
metadata: {
|
||||
requester: { name: "test" },
|
||||
fullName: "test"
|
||||
},
|
||||
slashCommands: [ ],
|
||||
locations: [ "panel" ],
|
||||
isDefault: undefined,
|
||||
extensionPublisher: ""
|
||||
slashCommands: [ ]
|
||||
},
|
||||
slashCommand: undefined,
|
||||
usedContext: {
|
||||
|
||||
@@ -163,7 +163,7 @@ suite('ChatService', () => {
|
||||
|
||||
await response.responseCompletePromise;
|
||||
|
||||
serializedChatData = chatModel1.toJSON();
|
||||
serializedChatData = JSON.parse(JSON.stringify(chatModel1));
|
||||
}
|
||||
|
||||
// try deserializing the state into a new service
|
||||
|
||||
Reference in New Issue
Block a user