continue icon indicating copy to clipboard operation
continue copied to clipboard

Ability to disable tab completion based on language type

Open zbarbuto opened this issue 1 year ago • 13 comments

Validations

  • [ ] I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • [X] I'm not able to find an open issue that requests the same enhancement

Problem

Currently, you can disable tab completions for particular file extensions e.g.

  config.tabAutocompleteOptions = {
    useOtherFiles: true,
    disableInFiles: ['.env', '*.env', '*.md'],
  };

However, it would also be useful to disable tab completions based on the currently set language mode. For example, if you create a new file and set the language mode to "markdown" you still get completions:

image

Solution

The VSCode way™ to do this would be to use language-override settings in a user's settings.json

For example I might have something like:

  "[markdown]": {
    "continue.enableTabAutocomplete": false,
     // Any of my other settings ....
    "editor.wordWrap": "off",
  },
  "[html]": {
    // ...
  },
  // ...

However, continue settings don't seem to work with this feature:

image image

zbarbuto avatar Jul 12 '24 00:07 zbarbuto

Yes, my point is that this setting doesn't work with files that are not currently saved but have a particular language mode enabled.

zbarbuto avatar Jul 12 '24 00:07 zbarbuto

Yeah sorry I totally skimmed over your issue before sending that : )

sestinj avatar Jul 12 '24 00:07 sestinj

This is a nice idea—certainly annoying to be getting unwanted completions in empty files

sestinj avatar Jul 12 '24 00:07 sestinj

Yes, it's particularly annoying in contexts where you might not necessarily need to save the file. For example a scratchpad for taking notes (a TODO-list for the next couple of hours) or experimenting with extensions like REST client

zbarbuto avatar Jul 12 '24 00:07 zbarbuto

I'm not much of an extension developer, but looking at some other extensions that do support this, in VSCode at least might be as simple as adding the "scope" property to the existing config:

See here for an example.

zbarbuto avatar Jul 12 '24 00:07 zbarbuto

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 03 '25 04:03 github-actions[bot]

Still a feature that I would like.

zbarbuto avatar Mar 03 '25 21:03 zbarbuto

That's censured I cannot disable autocompletion for files which are unsaved, my personal notes, etc. The AI ​​intervenes and puts in its weird thoughts, and it can't be turned off

plashenkov avatar Mar 05 '25 23:03 plashenkov

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Aug 14 '25 02:08 github-actions[bot]

Still a feature that I would like.

zbarbuto avatar Aug 14 '25 02:08 zbarbuto

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Nov 14 '25 02:11 github-actions[bot]

Still a feature that I would like.

(Sorry, I'm not trying to be annoying, I'm providing activity for the bot)

zbarbuto avatar Nov 14 '25 02:11 zbarbuto

Still a feature that I would like.

Agreed.

plashenkov avatar Nov 14 '25 02:11 plashenkov