Skip to content

Enable Continue Plugin Causes Significant Slowdown in Python Inline Suggestions #4483

Open
@Driftcell

Description

@Driftcell

Before submitting your bug report

Relevant environment info

OS: Windows 11 Pro (Version 24H2, OS Build 26100.3194)
Continue version: 1.0.2
IDE version: Visual Studio Code 1.97.2
Model: deepseek v3 official

{
  "models": [
    {
      "title": "Deepseek",
      "model": "deepseek-chat",
      "provider": "deepseek",
      "apiKey": "sk-xxx"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Deepseek",
    "model": "deepseek-chat",
    "provider": "deepseek",
    "apiKey": "sk-xxx"
  },
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "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"
    }
  ],
  "embeddingsProvider": {
    "provider": "free-trial"
  },
  "reranker": {
    "name": "free-trial"
  }
}

Description

After enabling the Continue plugin in VS Code, I noticed a significant performance degradation in Python inline suggestions. Normally, inline suggestions (e.g., for basic constructs like async def pass) appear almost instantly. However, with the Continue plugin enabled, it takes approximately 5 seconds for these suggestions to appear.

This issue occurs consistently across different Python files and projects. Disabling the Continue plugin immediately resolves the slowdown, and inline suggestions return to their normal speed.

To reproduce

  1. Install the Continue plugin in VS Code.
  2. Open a Python file.
  3. Start typing a basic Python construct, such as async def pass.
  4. Observe the delay in inline suggestions.

Log output

==========================================================================
==========================================================================
##### Completion options #####
{
  "contextLength": 8096,
  "model": "deepseek-chat",
  "maxTokens": 4096,
  "temperature": 0.01,
  "stop": [
    "<|fim▁begin|>",
    "<|fim▁hole|>",
    "<|fim▁end|>",
    "//",
    "<|end▁of▁sentence|>",
    "/src/",
    "#- coding: utf-8",
    ""
  ]
}

##### Prompt #####
Prefix: 
# login/goofish.py
import asyncio

class GoofishLoginHelper:
    def __init__(self):
        ...

    async def login(self):
        ...

    a
Suffix: 
==========================================================================
==========================================================================
##### Completion options #####
{
  "contextLength": 8096,
  "model": "deepseek-chat",
  "maxTokens": 4096,
  "temperature": 0.01,
  "stop": [
    "<|fim▁begin|>",
    "<|fim▁hole|>",
    "<|fim▁end|>",
    "//",
    "<|end▁of▁sentence|>",
    "/src/",
    "#- coding: utf-8",
    ""
  ]
}

##### Prompt #####
Prefix: 
# login/goofish.py
import asyncio

class GoofishLoginHelper:
    def __init__(self):
        ...

    async def login(self):
        ...

    
Suffix: 
==========================================================================
==========================================================================
##### Completion options #####
{
  "contextLength": 8096,
  "model": "deepseek-chat",
  "maxTokens": 4096,
  "temperature": 0.01,
  "stop": [
    "<|fim▁begin|>",
    "<|fim▁hole|>",
    "<|fim▁end|>",
    "//",
    "<|end▁of▁sentence|>",
    "/src/",
    "#- coding: utf-8",
    ""
  ]
}

##### Prompt #####
Prefix: 
# login/goofish.py
import asyncio

class GoofishLoginHelper:
    def __init__(self):
        ...

    async def login(self):
        ...

    a
Suffix: 
==========================================================================
==========================================================================
##### Completion options #####
{
  "contextLength": 8096,
  "model": "deepseek-chat",
  "maxTokens": 4096,
  "temperature": 0.01,
  "stop": [
    "<|fim▁begin|>",
    "<|fim▁hole|>",
    "<|fim▁end|>",
    "//",
    "<|end▁of▁sentence|>",
    "/src/",
    "#- coding: utf-8",
    ""
  ]
}

##### Prompt #####
Prefix: 
# login/goofish.py
import asyncio

class GoofishLoginHelper:
    def __init__(self):
        ...

    async def login(self):
        ...

    
Suffix: 
==========================================================================
==========================================================================
Completion:
async def logout(self):
        ...

Metadata

Metadata

Labels

area:inline-editRelates to the auto refactor featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorneeds-triageos:windowsHappening specifically on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions