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

[VSCode Extension] Enable code generation with user selected text only (CVS-119131) #757

Closed
wants to merge 2 commits into from

Conversation

luke-lin-vmc
Copy link
Contributor

@luke-lin-vmc luke-lin-vmc commented Nov 9, 2023

Enable code generation with user selected text only (CVS-119131)

For inline code completion context is used and it is sent to the generation model as input.
Now this context/input is a text from the beginning of the file till current cursor position.

The idea is to add mechanism that will limit this context by sending to generation model only text explicitly selected by user.

It is an open question how to implement it from the UI/UX perspective, how it should look like and how user should interact with it.
Such feature and interaction examples can be found in other similar VSCode extensions (e.g. refact.ai, cody, etc.)

https://jira.devtools.intel.com/browse/CVS-119131

For inline code completion context is used and it is sent to the generation model as input.
Now this context/input is a text from the beginning of the file till current cursor position.

The idea is to add mechanism that will limit this context by sending to generation model only text explicitly selected by user.

It is an open question how to implement it from the UI/UX perspective, how it should look like and how user should interact with it. 
Such feature and interaction examples can be found in other similar VSCode extensions (e.g. refact.ai, cody, etc.)
(CVS-119131) Enable code generation with user selected text only
@luke-lin-vmc luke-lin-vmc requested a review from a team as a code owner November 9, 2023 06:39
@luke-lin-vmc luke-lin-vmc changed the title (CVS-119131) Enable code generation with user selected text only [VSCode Extension] Enable code generation with user selected text only (CVS-119131) Nov 9, 2023
@apaniukov
Copy link
Contributor

@luke-lin-vmc thanks for the contribution.
Could you update README.md and the side panel description of the code completion feature?

@andrei-kochin
Copy link
Contributor

@luke-lin-vmc please address lint issues in failed CI

@luke-lin-vmc
Copy link
Contributor Author

Error happens if "--max-warnings 0" is set. Will modify the code then submit new PR

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