microsoft / microsoft/vscode-html-languageservice

Default Values

Open
#52 0 comments 2 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

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

Description

Wondering about support for default values? Say I type in

<foo |
I see attribute baz.
Now if I select off list I see:
<foo baz=""
If I ctrl-space, I get list of say:
baz-val-1
baz-val-2

If I could mark "baz-val-1" as the default, I would want
<foo |
and selecting "baz" from the list of attributes, now I would get this
<foo baz="baz-val-1"
ie, instead of just "", I would get "defaultvalue" selected..

Also, if I just type:
< foo baz=
then the drop would change from
baz-val-1
baz-val-2
to
baz-val-1 - default
baz-val-2

If no default flag was indicated in the json, then the original behaviour would continue.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.