-
Notifications
You must be signed in to change notification settings - Fork 62
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(chat): add VSCode Copilot chat participant VSCODE-528 #839
Merged
Conversation
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
* feat: convert copilot POC to feature utilising latest API VSCODE-550 * refactor: use prompts in code * fix: use uri path * refactor: pass participant to playground controller
* fix: remove changelog from the bundle VSCODE-551 (#758) * Update changelog (#759) Co-authored-by: mcasimir <[email protected]> * Update changelog (#761) Co-authored-by: alenakhineika <[email protected]> * feat(telemetry): report host_id for atlas COMPASS-8092 (#763) * feat(telemetry): report host_id for atlas in VSCode COMPASS-8092 * test: add atlas host test and clean up * feat(telemetry): update new connection telemetry VSCODE-560 (#764) * feat(telemetry): update new connection telemetry VSCODE-560 * refactor: remove server_os * refactor: rename to atlas_hostname * docs: add comment * refactor(telemetry): use resolved srv from topology VSCODE-563 (#765) * Update changelog (#766) Co-authored-by: alenakhineika <[email protected]> * feat(telemetry): handle IPv6 addresses when parsing hostnames VSCODE-585 (#769) * feat(telemetry): handle IPv6 addresses when parsing hostnames VSCODE-585 * test: fallback to original uri * chore: reduce bundle size and add modules to externals * chore(deps): remove unused auto-prefixer (#771) * chore: use Node.js 20 in CI VSCODE-586 (#770) * chore: use Node.js 20 in CI VSCODE-586 * fix: try to resolve a regression of out of memory crashes of webpack --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mcasimir <[email protected]> Co-authored-by: Rhys <[email protected]>
* feat: opt-in via the initial chat participant message VSCODE-568 * test: increase connection form timeout * test: increase max_old_space_siz for test task
* feat: identify a namespace to place in generated query VSCODE-579 * feat: parse user prompt * feat: show names to copy * fat: clickable markdown links * feat: allow change connections * docs: add comments * refactor: revert some changes * feat: set isPartialQuery * refactor: remove auxiliary commands * refactor: organise code * docs: add comments * refactor: rename * refactor: remove empty connections list check * refactor: clean up * refactor: add return types * refactor: add todo * refactor: address pr comments * refactor: add new line after faq * docs: link the jira ticket in todos * refactor: address rest of the comments * fix: VSCODE-591
* test: setup participant unit tests VSCODE-592 * refactor: keep one restore * refactor: remove sandbox
* test: cover participant with unit tests VSCODE-592 * refactor: access connections via getSavedConnections
* chore(testing): use source map support, improve test cleanup error handling VSCODE-593 (#784) * feat: show survey VSCODE-562 (#780) --------- Co-authored-by: Rhys <[email protected]> Co-authored-by: Rhys Howell <[email protected]> * fix: add telemetry events for survey VSCODE-595 (#787) * fix(editors): don't show connect code lens on regular js files VSCODE-538 (#789) --------- Co-authored-by: Rhys <[email protected]> Co-authored-by: Paula Stachova <[email protected]> Co-authored-by: Rhys Howell <[email protected]>
* feat: send schema to the model for better results VSCODE-581 * refactor: change state in fetchCollectionSchema
* chore(testing): use source map support, improve test cleanup error handling VSCODE-593 (#784) * feat: show survey VSCODE-562 (#780) --------- Co-authored-by: Rhys <[email protected]> Co-authored-by: Rhys Howell <[email protected]> * fix: add telemetry events for survey VSCODE-595 (#787) * fix(editors): don't show connect code lens on regular js files VSCODE-538 (#789) * fix(deps): bump shell and data-service deps VSCODE-564 (#794) * fix: clean-up webpack config VSCODE-597 (#795) * Update changelog (#796) Co-authored-by: mcasimir <[email protected]> * Update changelog (#797) Co-authored-by: alenakhineika <[email protected]> * fix: cannot find module electron VSCODE-598 (#799) * Update changelog (#801) Co-authored-by: mcasimir <[email protected]> * Update changelog (#802) Co-authored-by: alenakhineika <[email protected]> --------- Co-authored-by: Rhys <[email protected]> Co-authored-by: Paula Stachova <[email protected]> Co-authored-by: Rhys Howell <[email protected]> Co-authored-by: Anna Henningsen <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mcasimir <[email protected]>
* feat: improve the format of the participant answer VSCODE-582 * refactor: move evaluateParticipantQuery back to playground controller * fix: use chat response in history when applicable
#806) * feat: send sample documents to the model for better results VSCODE-580 * refactor: address pr comments * refactor: count tokens
* Wire up telemetry to user feedback VSCODE-575 * Improve tests * Remove incorrect sandbox usage * Clean up some changes * Ignore external type definitions from eslint * Rename * Fix participant tests
* feat(copilot): implement the /docs command VSCODE-570 * feat: use conversationId from history * feat: use version in user-agent * test: add tests for DocsChatbotAIService * refactor: fix type * refactor: update messages * refactor: cleanup * feat: fall back to copilot when chatbot is not available * test: add fallback test * build: add docs chatbot env variable * refactor: update log message * chore: move mongodb-rag-core to dev deps * refactor: address pr comments * test: add test that uses chatbot
…ead of html a tag VSCODE-616 (#826)
… fetch request, remove unused abort controllers (#831)
…to include proposed api types (#828)
* Refactor prompt hierarchy * reformat * Fix build * Address feedback, remove connect messages from all prompt builders * Add tests and fix historyMessages not removing the pre-connection prompt * Remove .only
* Wire up telemetry for user prompts * Remove .only * Clean up rebase artifacts * Remove .only * Address CR feedback * history_length -> history_size
…#841) * docs: update README with information about the participant VSCODE-587 * refactor: wrap participant id * refactor: remove empty line * Update README.md Co-authored-by: Rhys <[email protected]> * Update README.md Co-authored-by: Rhys <[email protected]> * Update README.md Co-authored-by: Rhys <[email protected]> * Update README.md Co-authored-by: Rhys <[email protected]> * docs: update screenshot --------- Co-authored-by: Rhys <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
VSCODE-528
Adds an
@MongoDB
participant to the extension. https://code.visualstudio.com/api/extension-guides/chat