-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agent: Use updated agent protocols (#44)
Update to use the latest changes for the agent protocols from sourcegraph/cody#5211 This let agent knows when we have a workspace added or removed. Also updated to use `View = WebviewView.Single,` for webview to always run chats in sidebar view ``` 22:05:32.767: [ProcessId:38884] [ThreadId:5] Debug [AgentJsonMessageFormatter.OnSerializationComplete] Sending to agent: {"jsonrpc":"2.0","id":3,"method":"workspaceFolder/didChange","params":[{"uris":["file:///C:/Users/BeatrixW/source/repos/TestingApp"]}]} ```
- Loading branch information
Showing
7 changed files
with
386 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cody.Core.Agent.Protocol | ||
{ | ||
public class WebviewCapabilities | ||
{ | ||
public string CspSource { get; set; } | ||
public string WebviewBundleServingPrefix { get; set; } | ||
public WebviewView View { get; set; } | ||
} | ||
|
||
public enum WebviewView | ||
{ | ||
Single, | ||
Multiple | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Cody.Core/Agent/Protocol/WorkspaceFolderDidChangeEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cody.Core.Agent.Protocol | ||
{ | ||
public class WorkspaceFolderDidChangeEvent | ||
{ | ||
public List<string> Uris { get; set; } | ||
|
||
public WorkspaceFolderDidChangeEvent() | ||
{ | ||
Uris = new List<string>(); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.