microsoft / vscode-custom-data

Documentation and sample for using VS Code custom data format
MIT License
196 stars 75 forks source link

Missing suggestions for "white-space" in CSS #55

Closed otomad closed 1 year ago

otomad commented 1 year ago

Type: Bug

Enter the white-space property in a CSS file, but no suggestions are triggered.

With the Trigger Suggest keyboard shortcut, there are only some common values.

image

Values such as nowrap and pre disappear.

Expect like this:

image


VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2112)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|11.80GB (5.14GB free)| |Process Argv|--crash-reporter-id 76088c10-0186-42e8-9434-fc9aba83ae2a --crash-reporter-id 76088c10-0186-42e8-9434-fc9aba83ae2a| |Screen Reader|no| |VM|0%|
Extensions (1) Extension|Author (truncated)|Version ---|---|--- vscode-language-pack-zh-hans|MS-|1.72.10121008
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 vscccc:30566498 pyindex848:30577860 nodejswelcome1:30587005 fc301958:30595537 2e4cg342:30596373 ```
aeschli commented 1 year ago

There's currently no value set defined for white-space. From the mdn data sytnax field we would know all the values.

otomad commented 1 year ago

These values are listed in the mdn. https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#syntax

Syntax

/* Keyword values */
white-space: normal;
white-space: nowrap;
white-space: pre;
white-space: pre-wrap;
white-space: pre-line;
white-space: break-spaces;

/* Global values */
white-space: inherit;
white-space: initial;
white-space: revert;
white-space: revert-layer;
white-space: unset;

And hovering over the white-space property also gives some values. image