jamesonknutson / disable-copilot-comment-completions

MIT License
17 stars 3 forks source link

Not working with Remote Workspaces #8

Open V-Cent opened 10 months ago

V-Cent commented 10 months ago

When using Remote Workspaces (like WSL), the extension seems to fail. Debug menu always outputs:

[info] [onDidChangeTextEditorSelection]: Copilot should not be silenced, no matching exclusion rules found

My configs are:

"github.copilot.enable": {
        "*": true,
        "yaml": false,
        "plaintext": false,
        "markdown": true
    },
"github.copilot.inlineSuggest.enable": true,
"disable-copilot-comment-completions.textMateRules": [

    {
        "mode": "includes",
        "type": "string",
        "value": "comment"
    }
],
"disable-copilot-comment-completions.active": true,
"disable-copilot-comment-completions.debug": true,

Testing on a C++ project, for both "//" and "/ /" comments.

jamesonknutson commented 6 months ago

I have not personally tested the extension with remote workspaces (or at least, not with WSL ones). Can you take a screenshot of the scopes displayed for the cases you mentioned (use "Inspect Editor Tokens and Scopes" command)?

V-Cent commented 5 months ago

They seem to have the same tokens from the "Inspect Editor Tokens and Scopes" command (screenshots at the end). I've also tried installing/uninstalling/enabling/disabling the extension from the remote and removing configs from both the workspace and my user. It does seem to be enabled, due to the debug logs, but some sort of configuration/property of remotes makes it fail.

Normal Workspace, Single line comment: baseSingle Remote Workspace, Single line comment: remoteSingle Normal Workspace, multi-line comment: baseBlock Remote Workspace, multi-line comment: remoteBlock