Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode only shows one line of Github Copilot suggestion

I've activated github copilot and it works fine but, while typing it only shows one line of suggestion. After all of my tryings, It still shows one line of suggestion. But I want to see multi-line suggestions.

One line suggestion

Even the all solutions tab show one line of complete solutions.

enter image description here

Here is my user settings.json

{
    "editor.formatOnSave": true,
    "prettier.singleQuote": true,
    "prettier.tabWidth": 4,
    "prettier.useTabs": true,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "diffEditor.codeLens": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "files.exclude": {
        "**/.DS_Store": false,
        "**/.hg": false,
        "**/.svn": false,
        "**/CVS": false,
        "node_modules": true
    },
    "thunder-client.codeSnippetLanguage": "js-axios",
    "editor.fontSize": 13,
    "aws.profile": "profile:kahramanlar",
    "editor.accessibilitySupport": "off",
    "window.zoomLevel": -1,
    "github.copilot.inlineSuggest.enable": true,
    "editor.inlineSuggest.enabled": true,
}
like image 316
Samil Kahraman Avatar asked Dec 18 '25 14:12

Samil Kahraman


2 Answers

This bug currently affects all versions of vs code and is known to the developers. Since yesterday they officially announced that they are working on the issue:

Hi folks, this is GH Copilot team. We hear your feedback and are actively working to address it. Dave and I will keep you folks updated on the progress. Thanks again!

like image 93
David Fischer Avatar answered Dec 21 '25 04:12

David Fischer


For VSCode in Mac OS changing the n.multiline||(h.stop=["\n"] to n.multiline||(h.stop=["\n\n\n"] in /dist/extention.js file fix the problem for me.

Or using just this single-line code from here:

sed -i 's/\["\\n"\]/["\\n\\n\\n"]/' $(ls ~/.vscode/extensions/github.copilot-*/dist/extension.js)
like image 30
shahryarab Avatar answered Dec 21 '25 03:12

shahryarab