microsoft / microsoft/vscode-custom-data

How do I use css.customData for postcss syntax

Open
#12 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
240
Forks
95
PR merge metrics
No merged PRs in 30d

Description

I havepostcss selected as syntax for *.css files and I found I'm unable to use autocomplete values defined in css.css-data.json until I choose css syntax for those files which obviously disables other language features.

How do I configure customData so whatever I define in css.css-data.json will work with postcss syntax?

I tried postcss.customData without any luck

Thanks in advance

Contributor guide

Open the contributing guide

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

Review the repository's documentation and sample for VS Code custom data, starting with how syntax-specific custom data is described. Clarify whether css.css-data.json can apply to PostCSS syntax, document the supported configuration if it can, and make the resulting guidance answer the reported autocomplete question.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, vscode
Domain
developer-experience, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.