continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.43k stars 1.69k forks source link

autocomplete "ReferenceError: ignore is not defined" #3011

Closed funghetto closed 1 day ago

funghetto commented 1 day ago

Before submitting your bug report

Relevant environment info

- OS: Ubuntu
- Continue version: v0.9.231
- IDE version: VSCode 1.95.3
- Model: Qwen2.5-coder
- config.json:

{
  "models":[
    {
      "title": "mistral-nemo:12b-instruct-2407-q6_K",
      "provider": "ollama",
      "model": "mistral-nemo:12b-instruct-2407-q6_K"
    }],
  "tabAutocompleteModel": 
  {
    "title": "qwen2.5-coder_q8",
    "provider": "ollama",
    "model": "qwen2.5-coder:7b-base-q8_0"
},
  "tabAutocompleteOptions": {
    "maxPromptTokens": 8192,
    "disableInFiles": ["*.md"]
  },
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ]
}

![image](https://github.com/user-attachments/assets/074644ee-159c-4a0a-b5a1-a1ea9ab28256)

### Description

Autocomplete doesn't work and when the model is triggered a popup comes and the logs report that error.

### To reproduce

- Enable autocomplete.
- Try edit some code to trigger the model.
- Get the error

### Log output

```Shell
Extension Host] Error generating autocompletion: ReferenceError: ignore is not defined
    at isDisabledForFile (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:90065:21)
    at async shouldPrefilter (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:90078:7)
    at async CompletionProvider.provideInlineCompletionItems (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:92133:15)
    at async ContinueCompletionProvider.provideInlineCompletionItems (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:541673:27)
    at async RH.provideInlineCompletions (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:137:142456)
uGi @ console.ts:137