microsoft / microsoft/vscode-html-languageservice

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

Open
#128 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
284
Forks
138
Avg merge
19h 11m
Merged PRs (30d)
5

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the HTML language service's completion entry points for typing inside tags versus quoted or braced attribute values. Reproduce the steps in an HTML file, then identify where automatic completion triggering differs from Ctrl+Space. Done means typing inside "" or {} opens the appropriate completion list without an explicit trigger, with the existing tag behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.