Skip to content

VSCode Extension API: Cannot register custom context providers #3678

@ajshedivy

Description

@ajshedivy

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: latest pre-release (v0.9.250)
- IDE version:
- Model:
- config.json:

Description

In the latest pre-release, I am not able to register custom context providers using the Extension API. This issue does not occur in the latest release version (0.8.66), where the extension API works correctly.

Suspected Cause:
I suspect that the recent changes to the ConfigHandler (commit: 9edd5e3) might be responsible for this issue.

To reproduce

I have a vscode extension for testing the API. here are the steps to test:

  1. install the test extension from vsix: https://ibm.box.com/s/i5qjumy947zevgdz0q3k2k3v0b6lnaw7
  2. switch Continue to release version
  3. open command pallet and activate the test suite:
    image
    you should see a status message in the IDE when the extension is activated
  4. Open Continue chat window and type @ and you should see 2 context providers: custom-provider-normal and custom-provider-submenu
    image

This is the working case. Now switch Continue to the pre-release version and restart the extensions. Repeat the steps above. This time, the context providers are not "registered" and do not appear in the drop down.

The test extension uses the Continue Types API: https://www.npmjs.com/package/@continuedev/core which was last released several months ago

Possible Solutions:

  • test ConfigHandler (reloadConfig) methods used by API
  • rebuild types API

Log output

No response

Metadata

Metadata

Assignees

Labels

area:context-providersRelates to context providerside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions