1

There are some useless warnings I want to disable but I don't know who is giving this warning. How to determine which plugin is sending problems?

horizontal-align: center is supported by nativescript

Who is giving this error

{
    "resource": "/Login.vue",
    "owner": "_generated_diagnostic_collection_name_#1",
    "code": "unknownProperties",
    "severity": 4,
    "message": "Unknown property: 'horizontal-align'",
    "source": "css",
    "startLineNumber": 191,
    "startColumn": 9,
    "endLineNumber": 191,
    "endColumn": 25
}
Manoj
  • 21,753
  • 3
  • 20
  • 41
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55

1 Answers1

1

VS Code doesn't know {N} supports those attributes. But it lets you extend the CSS data set to introduce new attributes.

In your VS Code settings under CSS, you can add Custom Data set. For more details refer official docs.

Manoj
  • 21,753
  • 3
  • 20
  • 41
  • I didn't understand how to apply it. :-) (https://github.com/Microsoft/vscode-css-languageservice/blob/master/docs/customData.md) – Cem Kaan Mar 16 '20 at 13:05
  • 1
    You might want to checkout the [examples here](https://github.com/microsoft/vscode-custom-data). If you still have issues, you may have to raise an issue on their repo or start an SO thread specific to the problem. – Manoj Mar 16 '20 at 14:42
  • FYI, it worked perfectly fine on my end. The warnings went away after I added the attribute in the JSON file. I had to restart the project window though. – Manoj Mar 16 '20 at 14:44