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
Respect Inline Suggestion to improve compatibility with GitHub Copilot #1011
Comments
Tab
Tab|
Additional reference from the VSCode repo: microsoft/vscode#131953 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
We can add the (should be available in the dev build now.) |
|
I've confirmed this works to solve the problem I was experiencing in microsoft/vscode#131953. Thank you for this solution. |
|
GitHub Copilot takes advantage of several proposed or private features of VS Code, such as Inline Suggestion (microsoft/vscode#124024). In case of intense changes like microsoft/vscode#125498, we should keep this issue open until the finalization of these APIs, and also monitor the following: |
|
The Solution provided by @adam-coster worked for me, Thank you ! |
|
Solution referenced above works for me as well! Thank you!! |
|
This does not work for me on Windows (nor does uninstalling Markdown All In One). |
|
I tried the solution, but could not edit the
EDIT: I was wrong, i was in the default keyboard settings... |
|
Just a note, you can install the dev build to get the fix. |
|
@adam-coster 's workaround is works for me for now! Thanks @adam-coster . |
|
Thanks @adam-coster. It worked for me! |
I was using another extension (GitHub CoPilot) and I was finding that the tab-to-complete wasn't working with it. Similar to the diagnosis at yzhang-gh/vscode-markdown#1011, the keybinding for this extension was taking precedence, eating the tab before CoPilot could get it. Therefore, this PR makes the keybinding more strict in when it accepts a "tab" event. Tested on my machine, it fixes the problem as described in that issue. Not sure if this will affect other aspects of this extension?
|
This solution is working great for me at the time! for those who on mac can use (⇧⌘P) to select the Preferences: Open Keyboard Shortcuts (JSON) |
|
It's also conflicts with the docs-markdown extension. It works after deleting the docs-markdown extension. |
I noticed that tab-completion for GitHub Copilot was not working for me in markdown files. I found a workaround that someone posted and it seems to do the trick for me. yzhang-gh/vscode-markdown#1011 In my reading of the linked issue it seems that a fix may eventually land in the extension in which case I should be able to remove this keybinding.
|
Checking in here. It would be nice to get copilot compatibility out of the box. |
|
Thank you very much works fine for me on my Mac. |
|
has been fixed in v3.4.2 |
|
Thank you so much |
|
The Inline Completions API is finalized in VS Code May 2022 (version 1.68) released this weekend. No noticeable changes.
Sigh: It has been one year. |
Issue: The inline suggestions provided by GitHub Copilot cannot be used in Markdown files while Markdown All In One is active.
Feature Request: Can we get a config option to toggle allowing Tab to take inline suggestions?
Update (@yzhang-gh): It has been fixed in the dev build.
Background & Workaround
I changed the
markdown.extension.onTabKeykeyboard shortcut to add!inlineSuggestionVisibleto thewhenconditions. This disables the Markdown extension's Tab behavior when Copilot is showing a suggestion, allowing theeditor.action.inlineSuggest.commitbinding on Tab to take over.Whether or not this option gets added, for anyone else needing to enable Copilot or other inline-suggestion tools to work when using this extension, you can update your
keybindings.json(Ctrl+Shift+p, then findPreferences: Open Keyboard Shortcuts (JSON)) by adding the following:[ { "key": "tab", "command": "markdown.extension.onTabKey", "when": "editorTextFocus && !inlineSuggestionVisible && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'" }, { "key": "tab", "command": "-markdown.extension.onTabKey", "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'" } ]The first entry adds the
!inlineSuggestionVisiblecondition, and the second entry essentially blocks the shortcut that comes with the Markdown All In One extension.The text was updated successfully, but these errors were encountered: