-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot apply html (twig) as default language for .twig file #35
Comments
While my VS Code was claiming it recognised my Twig files as Twig, my custom Twig snippets stopped working with this extension enabled ( Downgrading to |
In 0.5.1 I have changed same language settings for fix syntax highlighting. Can you show me example of you custom snippet and settings? |
where my configuration file {
"intelephense.files.associations": [
"*.php",
"*.phtml",
"*.module",
"*.theme"
],
"files.associations": {
"*.theme": "php",
"*.module": "php",
"*.svelte": "html",
"*.install": "php",
"*.twig": "twig"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.stickyScroll.enabled": true
},
"[typescript]": {
"editor.stickyScroll.enabled": true,
"editor.defaultFormatter": "vscode.typescript-language-features",
},
"[vue]": {
"editor.defaultFormatter": "Vue.volar"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"emmet.includeLanguages": {
"twig": "html"
},
"editor.fontFamily": "\"Fira Code\"",
"editor.fontLigatures": true,
"editor.cursorBlinking": "phase",
"editor.cursorWidth": 3,
} in my vscode i choose the HTML(twig) for the .html.twig file but after that when i reopen a twig file ... it fallback on default HTML |
Same issue here! |
Hello,
I recently attempted to install your extension for syntax highlighting and completion. However, I encountered an issue in setting up the extension by default in the language mode. Despite configuring the file association in VS Code and selecting HTML (Twig), the changes reflected in my configuration file appeared as follows:
Yet, when I reopen a file with the extension .html.twig, it defaults to HTML rather than HTML (Twig). Do you have any insights into why VS Code fails to select the correct language?
have nice day
The text was updated successfully, but these errors were encountered: