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
18.18k stars 1.44k forks source link

Inline chat (Ctrl+I) is not available, and it is not found in the shortcut settings. #2005

Closed imoyy closed 2 months ago

imoyy commented 2 months ago

Before submitting your bug report

Relevant environment info

- OS: Windows 11 24H2
- Continue: v0.9.197
- IDE: VSCode 1.92.1
- Model: ALL
- config.json:
  ```json
{
  "models": [
    {
      "model": "gpt-4o-extended",
      "contextLength": 128000,
      "title": "GPT-4o",
      "provider": "openai",
      "apiBase": "**",
      "apiKey": "**"
    },
    {
      "model": "claude-3-5-sonnet",
      "contextLength": 200000,
      "title": "Claude 3.5 Sonnet",
      "provider": "openai",
      "apiBase": "**",
      "apiKey": "**"
    },
    {
      "model": "gemini-1.5-pro-latest",
      "title": "Gemini 1.5 Pro",
      "contextLength": 2000000,
      "apiKey": "**",
      "provider": "gemini"
    }
  ],
  "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"
    }
  ],
  "tabAutocompleteModel": {
    "model": "deepseek-coder",
    "title": "Deepseek",
    "provider": "openai",
    "apiBase": "**",
    "apiKey": "**"
  },
  // "tabAutocompleteModel": {
  //   "title": "Codestral",
  //   "provider": "mistral",
  //   "model": "codestral-latest",
  //   "apiKey": "**"
  // },
  "embeddingsProvider": {
    "provider": "openai",
    "model": "voyage-large-2-instruct",
    "apiBase": "**",
    "apiKey": "**"
  },
  "reranker": {
    "name": "voyage",
    "params": {
      "model": "rerank-lite-1",
      "apiKey": "**"
    }
  },
  // "embeddingsProvider": {
  //   "provider": "openai",
  //   "model": "text-embedding-3-large",
  //   "apiBase": "**",
  //   "apiKey": "**"
  // },
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    { "name": "tree" },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 30,
        "nFinal": 5,
        "useReranking": true
      }
    },
    { "name": "url" }
  ],
  "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"
    },
    {
      "name": "http",
      "description": "Does something custom",
      "params": { "url": "**" }
    }
  ],
  "experimental": {
    "quickActions": [
      {
        "title": "Detailed explanation",
        "prompt": "Explain the following code in detail, including all methods and properties.",
        "sendToChat": true
      }
    ]
  }
}

Description

Everything works fine except for the inline chat triggered by Ctrl+I (see picture). I can't find any related settings for this shortcut key either.
image image

To reproduce

  1. open the editor
  2. Can't use Ctrl+I to bring up the chat.

Log output

No response

imoyy commented 2 months ago

You'll also see these kind of prompts on the image within the editor, but they can't be triggered. image

fry69 commented 2 months ago

Check if not other extension and VSCode extensions block Continue, see here for a check list -> https://docs.continue.dev/features/tab-autocomplete#im-not-seeing-any-completions (ignore Ollama entries in this list if you are not using this)

You can also reverse search in the keybindings for a key press like Ctrl+I so see where it ends up currently, my guess is that something else grabs this with a higher priority than Continue.

imoyy commented 2 months ago

Check if not other extension and VSCode extensions block Continue, see here for a check list -> https://docs.continue.dev/features/tab-autocomplete#im-not-seeing-any-completions检查是否有其他扩展和 VSCode 扩展阻止 Continue,请参见此处的检查列表 -> https://docs.continue.dev/features/tab-autocomplete#im-not-seeing-any-completions (ignore Ollama entries in this list if you are not using this) (如果您没有使用此功能,请忽略此列表中的 Ollama 条目)

You can also reverse search in the keybindings for a key press like Ctrl+I so see where it ends up currently, my guess is that something else grabs this with a higher priority than Continue.你也可以在按键绑定中反向搜索 Ctrl+I 这样的按键,看看它目前的最终位置,我猜是其他东西以比 Continue 更高的优先级抓取了它。

The issue is that I've already removed all the shortcuts bound to Ctrl+I, but the inline chat box still doesn't appear. Autocomplete is working fine though.

fry69 commented 2 months ago

That is a bit strange. Maybe you can add the necessary keyboard shortcut manually?

To verify you can make a reverse keyboard search like this (with "ctrl+i" instead of my macOS "cmd+i" of course)

shortcut
imoyy commented 2 months ago

That is a bit strange. Maybe you can add the necessary keyboard shortcut manually?

  • search for "generate code" in the keyboard setting dialog
  • click on the row to change the keyboard shortcut
  • press your shortcut combination (Ctrl+I)
  • make sure that the When column shows - so it will trigger always

To verify you can make a reverse keyboard search like this (with "ctrl+i" instead of my macOS "cmd+i" of course)

shortcut

I misunderstanding something? Is the continue plugin not yet able to do inline chat within VSCode like in the image, not just like what this command does to generate code? image

Patrick-Erichsen commented 2 months ago

Screenshot 2024-08-14 at 9 25 40 AM

Here is what Cmd+I should open up in VS Code. We don't have the ability to do true "inline chat" in VS Code since it isn't exposed through the API.

I am not sure what extension would be triggering the other inline chat, but you could attempt a bisect to determine: https://code.visualstudio.com/blogs/2021/02/16/extension-bisect

imoyy commented 2 months ago

Screenshot 2024-08-14 at 9 25 40 AM

Here is what Cmd+I should open up in VS Code. We don't have the ability to do true "inline chat" in VS Code since it isn't exposed through the API.

I am not sure what extension would be triggering the other inline chat, but you could attempt a bisect to determine: https://code.visualstudio.com/blogs/2021/02/16/extension-bisect

Thanks for your reply. I saw a similar inline chatbox to Copilot in the documentation for JetBrains's ide and mistakenly thought it was also available in VSCode.

Patrick-Erichsen commented 2 months ago

It's unfortunate that VS Code doesn't provide that capability but hopefully they will enable it in the near future.