Vscode-yaml: Ignore yarn.lock files

Created on 17 Jan 2018  路  6Comments  路  Source: redhat-developer/vscode-yaml

Ignore yarn lockfile v1.

Currently an opened yarn.lock file looks like this:

image

All 6 comments

It looks like yarn is semi-yaml but not quite fully but I could be wrong because those look like errors thrown by https://github.com/mulesoft-labs/yaml-ast-parser

Is there a way to tell vscode to ignore yarn.lock files in terms of syntax testing? Or to tell it to test as though it were a plain txt file?

A little late on the response but I'll look to see if we can ignore that file. It shouldn't be picked up at all since its not actual yaml. I could be wrong but it seems as though VSCode is associating it with yaml for some reason.

if you want yarn.lock ignored until this is fixed you can change the Language Mode of the file to i.e. plain text and it won't get picked up by the validator.

I've opened an issue on VSCode side. They were registering yarn.lock as yaml for some reason. Once that is fixed yarn.lock will on longer be associated with yaml.

VSCode has now removed yarn.lock from the yaml language contribution so yarn.lock will no longer be associated with yaml. I'm closing this now because its fixed on both sides. All that is required is to upgrade to new VSCode version that doesn't have that language contribution and the vscode-yaml release that will happen monday.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

remcohaszing picture remcohaszing  路  4Comments

Chagrilled picture Chagrilled  路  4Comments

ssbarnea picture ssbarnea  路  3Comments

joshuaavalon picture joshuaavalon  路  4Comments

miqm picture miqm  路  4Comments