-
Notifications
You must be signed in to change notification settings - Fork 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
feat: adding clickble symbol render in chat panel #3420
base: main
Are you sure you want to change the base?
Changes from all commits
4d75874
d23e21e
9bc7372
06e3c86
8916a6a
ddcbe91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -53,7 +53,14 @@ export interface ServerApi { | |||||
updateTheme: (style: string, themeClass: string) => void | ||||||
updateActiveSelection: (context: Context | null) => void | ||||||
} | ||||||
|
||||||
export interface KeywordInfo { | ||||||
sourceFile: string | ||||||
sourceLine: number | ||||||
sourceChar: number | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
targetFile: string | ||||||
targetLine: number | ||||||
targetChar: number | ||||||
} | ||||||
export interface ClientApi { | ||||||
navigate: (context: Context, opts?: NavigateOpts) => void | ||||||
refresh: () => Promise<void> | ||||||
|
@@ -69,6 +76,10 @@ export interface ClientApi { | |||||
onCopy: (content: string) => void | ||||||
|
||||||
onKeyboardEvent: (type: 'keydown' | 'keyup' | 'keypress', event: KeyboardEventInit) => void | ||||||
onRenderLsp: (filepaths: string[], keywords: string[]) => Promise<Record< | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Instead of return |
||||||
string, | ||||||
KeywordInfo | ||||||
>> | ||||||
} | ||||||
|
||||||
export interface ChatMessage { | ||||||
|
@@ -94,6 +105,7 @@ export function createClient(target: HTMLIFrameElement, api: ClientApi): ServerA | |||||
onLoaded: api.onLoaded, | ||||||
onCopy: api.onCopy, | ||||||
onKeyboardEvent: api.onKeyboardEvent, | ||||||
onRenderLsp: api.onRenderLsp, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
}, | ||||||
}) | ||||||
} | ||||||
|
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.