From ddbf47df7f35ec6b3f091cd196bdf0377069d017 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 29 May 2026 14:20:21 +0800 Subject: [PATCH] chore(vscode): update extensions and settings for improved SCSS and template support --- .vscode/extensions.json | 3 ++- .vscode/settings.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index ce684cdd..a990b7ca 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,6 +4,7 @@ "kaellarkin.hugo-shortcode-syntax", "lruihao.hugo-partials-refs", "tamasfe.even-better-toml", - "casualjim.gotemplate" + "casualjim.gotemplate", + "SomewhatStationery.some-sass" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index f1e319b7..b039f432 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,14 @@ "hugo.toml": "theme.toml, .hugo_build.lock", "vercel.json": "build.sh" }, + "files.associations": { + "*.template.scss": "gocss", + "*.template.svg": "html", + "**/plugin/script.html": "gohtml", + "**/layouts/**/*.json": "gojson", + "**/layouts/**/*.xml": "gohtml", + "**/layouts/**/*.md": "gotemplate" + }, // Disable the default formatter, use eslint instead "prettier.enable": false, "editor.formatOnSave": false, @@ -69,6 +77,9 @@ "fixable": true } ], + // SCSS path resolution (Some Sass extension) + "somesass.workspace.loadPaths": ["assets/scss"], + "somesass.scss.links.enabled": true, // Enable eslint for all supported languages "eslint.validate": [ "go-html-template",