-
Notifications
You must be signed in to change notification settings - Fork 749
feat(amazonq): re-add basic chat through a language server #6781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
| return result.payload as T | ||
| } | ||
|
|
||
| async function handlePartialResult<T extends ChatResult>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's a partial result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a docstring but its basically a partial chat response that needs to get rendered. Then handleCompleteResult is the final chat response that gets rendered
| languageClient.info(`[VSCode Client] Received ${JSON.stringify(message)} from chat`) | ||
|
|
||
| switch (message.command) { | ||
| case COPY_TO_CLIPBOARD: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems some cases only log. Can we handle them or TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added todos to unblock other teams but I'll look into them seperately
|
|
||
| constructor(private readonly mynahUIPath: string) {} | ||
|
|
||
| public resolveWebviewView(webviewView: WebviewView, context: WebviewViewResolveContext, _token: CancellationToken) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean the chat webview resources come from the LSP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort of, both the client assets (mynah UI) and the lsp assets come in the same zip but different subfolders
0eb6596 to
83ce24b
Compare
hayemaxi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after CI
82e266d to
7d9e047
Compare
|
Turns out the problem was we can't import |
Problem
feature/amazonqLSPbranch because we were just starting with inline suggestionsSolution
Notes
feature/xbranches will not be squash-merged at release time.