Skip to content
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
merged 47 commits into from
Sep 30, 2024

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Sep 27, 2024

VSCODE-528

Adds an @MongoDB participant to the extension. https://code.visualstudio.com/api/extension-guides/chat

image

alenakhineika and others added 30 commits July 23, 2024 11:07
* 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
@Anemy Anemy added the WIP label Sep 27, 2024
Anemy and others added 9 commits September 27, 2024 13:24
* 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]>
@Anemy Anemy removed the WIP label Sep 30, 2024
@Anemy Anemy merged commit 16c4204 into main Sep 30, 2024
5 checks passed
@Anemy Anemy deleted the VSCODE-528-mongodb-copilot branch September 30, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants