TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
625 stars 25 forks source link

Implement Copilot Settings #39

Closed TerminalFi closed 1 year ago

TerminalFi commented 1 year ago

Here are the settings pulled from VSCode

{
    "configuration": [
        {
            "title": "Copilot",
            "properties": {
                "github.copilot.advanced": {
                    "type": "object",
                    "title": "Advanced Settings",
                    "properties": {
                        "secret_key": {
                            "type": "string",
                            "default": "",
                            "description": "Secret API key"
                        },
                        "length": {
                            "type": "integer",
                            "default": 500,
                            "description": "Length of code to generate in tokens"
                        },
                        "temperature": {
                            "type": "string",
                            "default": "",
                            "description": "Override sampling temperature (range 0.0 - 1.0)"
                        },
                        "top_p": {
                            "type": "number",
                            "default": 1,
                            "description": "Top probability mass to consider"
                        },
                        "stops": {
                            "type": "object",
                            "default": {
                                "*": [
                                    "\\n\\n\\n"
                                ],
                                "python": [
                                    "\\ndef ",
                                    "\\nclass ",
                                    "\\nif ",
                                    "\\n\\n#"
                                ]
                            },
                            "description": "Configure per-language stop sequences"
                        },
                        "indentationMode": {
                            "type": "object",
                            "default": {
                                "python": false,
                                "javascript": false,
                                "javascriptreact": false,
                                "jsx": false,
                                "typescript": false,
                                "typescriptreact": false,
                                "go": false,
                                "ruby": false,
                                "*": true
                            },
                            "markdownDescription": "Enable or disable indentation block termination for specified [languages](https://code.visualstudio.com/docs/languages/identifiers)."
                        },
                        "inlineSuggestCount": {
                            "type": "integer",
                            "default": 3,
                            "description": "Number of inline suggestions to fetch"
                        },
                        "listCount": {
                            "type": "integer",
                            "default": 10,
                            "description": "Number of solutions to list in Open GitHub Copilot"
                        },
                        "debug.showScores": {
                            "type": "boolean",
                            "default": false,
                            "description": "Show scores in sorted solutions"
                        },
                        "debug.overrideEngine": {
                            "type": "string",
                            "default": "",
                            "description": "Override engine name"
                        },
                        "debug.overrideProxyUrl": {
                            "type": "string",
                            "default": "",
                            "description": "Override GitHub authentication proxy full URL"
                        },
                        "debug.testOverrideProxyUrl": {
                            "type": "string",
                            "default": "",
                            "description": "Override GitHub authentication proxy URL when running tests"
                        },
                        "debug.overrideLogLevels": {
                            "type": "object",
                            "default": {},
                            "description":"Override what the minimum logged level is per logger (or \'*\' for all loggers). Levels are \'DEBUG\', \'INFO\', \'WARN\', \'ERROR\'. Ex: `{\\"default\\": \\"DEBUG\\"}` to see all things logged to the \'default\' logger."
                        },
                        "debug.filterLogCategories": {
                            "type": "array",
                            "default": [],
                            "description": "Show only log categories listed in this setting. If an array is empty, show all loggers"
                        }
                    }
                },
                "github.copilot.enable": {
                    "type": "object",
                    "default": {
                        "*": true,
                        "yaml": false,
                        "plaintext": false,
                        "markdown": false
                    },
                    "markdownDescription": "Enable or disable Copilot for specified [languages](https://code.visualstudio.com/docs/languages/identifiers)"
                },
                "github.copilot.inlineSuggest.enable": {
                    "type": "boolean",
                    "default": true,
                    "description": "Show inline suggestions"
                }
            }
        }
    ]
}
TerminalFi commented 1 year ago

Not all of these likely need supported.

Which of these should be try to mirror ?

WillTaylor22 commented 1 year ago

I appreciate this is an old thread, but it would be great to be able to turn off inlineSuggest.

timfjord commented 1 year ago

@WillTaylor22 this can be done by setting auto_ask_completions to false