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

Intellisense for ="" needs Ctrl + Space to wake up #128

Open
floralan opened this issue May 10, 2022 · 1 comment
Open

Intellisense for ="" needs Ctrl + Space to wake up #128

floralan opened this issue May 10, 2022 · 1 comment

Comments

@floralan
Copy link

floralan commented May 10, 2022

inside a tag, if I have a = before "" or {}, eg: <div if:true="">, or <div if:true={}>, I need Ctrl + Space to wake up intellisense so I can have a autocomplete list for "" or {}. But for tag, I can have a dynamical autocomplete list whenever I type a character, the intellisense is automatically waked up by user typing a character.
Can you point out to me which lines/block of code in this repo that define this behavior? Our team is developing an extended html language server based on this repo, and we want a autocomplete list for {} but without asking user to use Ctrl + Space to trigger the intellisense.

Steps to Reproduce:
1, go to a html file
2, <div if:true=""
3, move your cursor away, then move it back inside ""
4, typing a character does not trigger a autocomplete list
5, using Ctrl + Space, you can see a autocomplete list.

@trapgar
Copy link

trapgar commented Jan 11, 2023

Provided I correctly understand what you are asking, this is the wrong repo. The correct one is the mainline vscode repository.

The built-in extension for html-language-features has a file called htmlServer.ts that controls what characters trigger the retrieval of completion items.

See line 196 where it defines the server capabilities as completionProvider: clientSnippetSupport ? { resolveProvider: true, triggerCharacters: ['.', ':', '<', '"', '=', '/'] } : undefined,.

Change the character list to include a-z and you should see the behavior you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants