0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VS Codeのsetting.jsonで"yaml.customTags"がうまく適用されない時の対処

Last updated at Posted at 2020-12-13

ほぼ自分用のメモ

対象の読者

VS Codeでyamlファイルを編集する人
CloudFormationとかAnsibleとかのyamlファイルを取り扱う人
VS Codeのsetting.jsonの"yaml.customTags"がうまく適用されてなくて悩んでいる人

何が起きたか

VS CodeでCloudformationのyamlファイルをセコセコと記述していたら

image.png

!Refなんてタグがないよと言われている。

ググったら
setting.jsonのyaml.customTagsを追加してあげれば回避できるとのこと

上記リンクの手順通りやっていてもエラーが解消されず。。。

原因

VS Codeの拡張機能でAnsible Extensionを有効にしている場合に発生するっぽい。
image.png

この拡張機能を無効にしたら解決できました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?