-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Provide option to disable autocompletion #24582
Comments
I seems that you are describing two problems here. Disable autocomplete when it has been enabled Disable ng completion question (Which appears to be the main reason why this issue has been opened) |
Well this is something what should automatically be resolved with an command like
I disagree |
No really following what what you mean that this does not work. I just tried it and it did work as expected. |
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list. You can find more details about the feature request process in our documentation. |
Please take a look at the attached gif. This is a totally new devcontainer no ng command has been executed before. On the left you will see the |
Since there is no completion config and the terminal is interactive (supports TTY) you get prompted the question when you run If you want to disable user interactivity completely even when the terminal supports interactivity you can use |
But this could only be a workaround. A reasonable command to enable and disable the feature should be the solution. |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
I have the same problem everytime i rebuild container i forget that i have to enable this can we get option in the config |
@alan-agius4, we have an exception to the analytics prompt for I agree that running
|
Another approach would be to actually set up autocompletion automatically in your container. We do check to see if it's set up before prompting, so I think if you just run |
That sounds reasonable, we just need to add
That is indeed correct. |
Maybe I am missing something. but why not just add the relevant line to the bashrc file in the docker build?
After rebuilding the container, I can run the cli commands without getting prompted and autocompletion is working. |
I didn't want to enable autocompletion, I want a command to disable it |
My mistake - I thought you wanted to avoid being prompted every time you rebuilt the container. I did not realize you wanted to disable it altogether. |
Which @angular/* package(s) are relevant/related to the feature request?
No response
Description
If you developing an angular web app in an dev container every time the container is created or rebuild and you are running the
ng
command for the first time, the angular cli asks:You can activate this "feature" but there is no way to disable it proactive.
You could run the command
ng config -g cli.completion.prompted true
but if this is the first execution of the angular cli this only lead to the question if I want to enable autocompletion. So this isn't a solution.Proposed solution
Because the user has the possibility to opt this feature out when the angular cli asks you if you want to enable the autocompletion and because there is an command to enable this without being asked there should also be to possibility to disable this feature with an command like
ng completion disable
Alternatives considered
As an alternative you could also make the global configuration settings
also available in the
angular.json
file.The text was updated successfully, but these errors were encountered: