Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable include path completion suggestion insertion on entering a path separator #7084

Closed
sean-mcmanus opened this issue Mar 1, 2021 · 1 comment
Labels
Feature: Auto-complete Feature Request help wanted Can be fixed in the public (open source) repo. Language Service more votes needed Issues that have been postponed until more community members upvote it
Milestone

Comments

@sean-mcmanus
Copy link
Contributor

Hello,

(TL;DR) How can I disable include path completion insertion on typing a path separator character?

Background:
When typing an include like (like #include <foo, where foo is the exact and complete folder name I want to use) a completion suggestion list pops up. Unfortunately when I enter a path separator (/ or \) it automatically chooses the first entry and inserts it. Due to fuzzy matching it often (way too often) replaces the previously typed path segment with something completely different (to continue the example: #include <forever_oppressing_your_workflow.h/, because foo got fuzzy-matched with forever_oppressing_your_workflow). Even with leaves (header files), which makes no sense, because why would I enter a path separator, if the previous segment is a leaf?

Of course the reason for it not completing to foo is that it doesn't have foo in its include path at the time, but I often run into situations where this is (temporarily) the case. Probably because I'm using CMake and the CMake extension wants me to reconfigure for each new file I create and I usually procrastinate that to a later point in time.

All I want is to disable this feature (inserting completion suggestion on path sep). I have my Tab key for inserting completion suggestions and I'm fine with that. I have searched the settings and the web, but couldn't find a way to disable it. I hope I just oversaw it and you can point me to the right setting.

Originally posted by @Neonit in #7055

@sean-mcmanus sean-mcmanus added Feature Request Feature: Auto-complete help wanted Can be fixed in the public (open source) repo. Language Service more votes needed Issues that have been postponed until more community members upvote it labels Mar 1, 2021
@Colengms Colengms added this to the Triage milestone Mar 4, 2021
@github-actions
Copy link

github-actions bot commented May 4, 2021

This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.

@github-actions github-actions bot closed this as completed May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Auto-complete Feature Request help wanted Can be fixed in the public (open source) repo. Language Service more votes needed Issues that have been postponed until more community members upvote it
Projects
None yet
Development

No branches or pull requests

2 participants