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

[WIP] Add vscode webview context and load content from TextDocument #977

Closed
wants to merge 4 commits into from

Conversation

zakariassoul
Copy link
Contributor

@zakariassoul zakariassoul commented Jan 19, 2024

[WIP] Add vscode webview context and load content from TextDocument

Get the aiconfig from the VSCode textdocument:

  • The extension sends an update request to the webview when the TextDocument changes.

  • The webview handles that by updating the state of the AIConfig, which will trigger a re-render.


Stack created with Sapling. Best reviewed with ReviewStack.

Successfully loads the local editor as a VSCode webview
Now that our actual local-editor works, no need to use the sample webview-ui to test the extension
Get the aiconfig from the VSCode textdocument:

* The extension sends an `update` request to the webview when the TextDocument changes.

* The webview handles that by updating the state of the AIConfig, which will trigger a re-render.
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