-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
refactor(agent&vscode): connect vscode extension to agent via lsp. #2247
Conversation
c2623b5
to
76cb653
Compare
this.config.on("updatedServerConfig", () => { | ||
console.log("updatedServerConfig", { config: this.config.server }); | ||
webviewView.webview.html = this._getWebviewContent(this.config.server); | ||
}); |
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.
@wwayne I added a listener for changes of server config.
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.
not sure if will affect other stuff like theme syncing, I will do more testing after merge
return ` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<!--hash: ${hashObject(server)}--> |
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.
@wwayne I added this hash for force refreshing when server config did change.
// We don't include DOM types in typescript building config | ||
|
||
// FIXME: This is required by `@quilted/threads` and `tabby-chat-panel` | ||
declare type HTMLIFrameElement = unknown; |
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.
@wwayne I remove DOM types dependencies in this refactor. But HTMLIFrameElement
is used by @quilted/threads
and tabby-chat-panel
. Added this dummy declaration for tsc checks.
Changes: