diff --git a/CHANGELOG.md b/CHANGELOG.md index 4154b405..2a934efe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [ ] Preview window (#6) - [ ] File globbing pattern support (#49) - [ ] Add minification default settings +- [x] Support for the old Sass syntax and `.sass` files Features that have a checkmark are complete and available for download in the diff --git a/src/WebCompiler/Compile/CompilerService.cs b/src/WebCompiler/Compile/CompilerService.cs index 8e1c1cd2..a78e210c 100644 --- a/src/WebCompiler/Compile/CompilerService.cs +++ b/src/WebCompiler/Compile/CompilerService.cs @@ -11,7 +11,7 @@ namespace WebCompiler public static class CompilerService { internal const string Version = "1.4.166"; - private static readonly string[] _allowed = new[] { ".LESS", ".SCSS", ".COFFEE", ".ICED", ".JS", ".JSX", ".ES6" }; + private static readonly string[] _allowed = new[] { ".LESS", ".SCSS", ".SASS", ".COFFEE", ".ICED", ".JS", ".JSX", ".ES6" }; private static readonly string _path = Path.Combine(Path.GetTempPath(), "WebCompiler" + Version); private static object _syncRoot = new object(); // Used to lock on the initialize step @@ -44,6 +44,7 @@ internal static ICompiler GetCompiler(Config config) break; case ".SCSS": + case ".SASS": compiler = new SassCompiler(_path); break; diff --git a/src/WebCompilerVsix/JSON/compilerconfig-schema.json b/src/WebCompilerVsix/JSON/compilerconfig-schema.json index d611a805..0d599a84 100644 --- a/src/WebCompilerVsix/JSON/compilerconfig-schema.json +++ b/src/WebCompilerVsix/JSON/compilerconfig-schema.json @@ -22,7 +22,7 @@ "sassOptions": { "properties": { "inputFile": { - "pattern": "\\.scss$" + "pattern": "\\.(scss|sass)$" }, "options": { "$ref": "compilerdefaults-schema.json#/definitions/sass" diff --git a/src/WebCompilerVsix/registry.pkgdef b/src/WebCompilerVsix/registry.pkgdef index d36a713e..23bff2ab 100644 --- a/src/WebCompilerVsix/registry.pkgdef +++ b/src/WebCompilerVsix/registry.pkgdef @@ -10,4 +10,7 @@ "DefaultIconMoniker"="KnownMonikers.Binding" [$RootKey$\ShellFileAssociations\.defaults] -"DefaultIconMoniker"="KnownMonikers.SettingsFile" \ No newline at end of file +"DefaultIconMoniker"="KnownMonikers.SettingsFile" + +[$RootKey$\ShellFileAssociations\.sass] +"DefaultIconMoniker"="KnownMonikers.SASSStyleSheet" \ No newline at end of file