webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
23 stars 3 forks source link

VSCode: Drupal custom file types not recognized at startup #49

Closed JPustkuchen closed 2 years ago

JPustkuchen commented 2 years ago

With drowl-init (Drupal projects) we should ensure Drupal file types are recognized and mapped correctly in VSCode.

grafik

JPustkuchen commented 2 years ago

Installing this plugin might be the most simple solution: https://marketplace.visualstudio.com/items?itemName=marcostazi.VS-code-drupal

Otherwise the types should be added to the VSCode settings when using Drupal.

joshsedl commented 2 years ago

The types are already set in the VSCode settings, I don't know why this happens, but you can fix this Problem simply by reloading the page via "F1-> Developer:Reload Window"

joshsedl commented 2 years ago

Closing this, as the config is loaded correctly on startup now and therefore Drupal files are recognized, even without needing to reload the page.