-
Notifications
You must be signed in to change notification settings - Fork 15
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
Completion -- when not exactly at the end of the line #6
Comments
What is expected behaviour? Is it to retain the special characters such as |
Right, it does this by relying on the model -- that it will produce all the characters needed. The plugin need to replace the rest of the current string with the model output. |
Can you please provide me steps on how do i setup local dev environment? I can work on this |
Oh awesome that you want to check it out! I can't reproduce the exact steps I followed to install it on my Windows box, but I remember it was easy. Something like:
If you want to try this, you can record your actions and write it down to CONTRIBUTING.md -- that would we fantastic. |
@sakshambp this may not be the best issue for you to work on as it requires a major refactor to get the plugin to insert grey text in between the text in the document. |
* adding files for refact extension * testing github workflow * removing default exe to test workflow * uploading artifacts in workflow * readding exe * cleaning up files * C/C++ now works with grey text * fixed minor typo * can now select intellisense options, whitespace causes less problems for grey text completions and the code will only ask for completions when the cursor is at the end of a line * removing binary and updating build scripts * fixing build script typo * fixing minor build naming issue * Updating code to be consistent with new build script * improved the options page * added comments and fixed formatting * updating enter behaviour * fixing minor bugs and functional issues * added code to fix issues around single vs multiline completions issues #9 and #6 * added scroll bars for the options page * adding status bar and killing server process on shutdown * fixing minor bug where grey text was inserted into incorrect places
Checked plugin version 0.0.2 from marketplace - problem is no longer reproducible. |
Cursor is not at the end of the line, but behind some special characters (regex) like closing parenthesis: "def f(x: stri|):", completion should give "ng):" and replace the rest or the string.
From VS Code the regex is:
let right_of_cursor_has_only_special_chars = Boolean(right_of_cursor.match(/^[:\s\t\n\r(){},."'];]*$/));
The other keyword is "multiline=False", the model switches to a special mode to replace the rest of the current string.
The text was updated successfully, but these errors were encountered: