jamesonknutson / disable-copilot-comment-completions

MIT License
17 stars 3 forks source link

ignoring comments in openSCAD file not working #6

Open eparadis opened 1 year ago

eparadis commented 1 year ago

I am editing openSCAD files (https://openscad.org/) and the extension seems to be switching on and off but ... backwards?

My config:

"disable-copilot-comment-completions.textMateRules": [
    {
      "type": "string",
      "value": "comment",
      "mode": "includes"
    }
  ],

The file I am editing

// 1. test one
// 2. test two
// <---- cursor here will have copilot suggest "3. test three". "√ Suggestions Enabled" indicator in the status bar.

<---- cursor here, copilot will not suggest anything and "X Suggestions Disabled" indicator in the status bar.

So it seems backwards. Or at least in the first case seems completely wrong.

The wild thing is that using the arrow keys to move the cursor back and forth or pressing Return to insert new blank lines will occasionally swap the "Suggestions Enabled/Disabled" state, but not consistently, and not correctly either.

Any ideas? Is this simply a configuration issue? Does it have to do with editing OpenSCAD files?

Any help would be appreciated. Copilot suggesting during comments is like having some one in the back seat with a megaphone shouting at you directions to a place you don't even want to drive to.

jamesonknutson commented 4 months ago

Sorry for taking so long to reply here. If this is still a relevant issue, can you replicate the problem and take a screenshot of the scopes at the caret position for both when you're expecting the extension to "kick in" and when you're expecting it to "lay off"? Use the VSCode Command Palette command "inspect editor tokens and scopes" to do this.