Skip to content

Commit 1e4633a

Browse files
committed
added fileExtname
1 parent cba11d4 commit 1e4633a

File tree

7 files changed

+97
-137
lines changed

7 files changed

+97
-137
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the extension will be documented in this file.
44

5+
## [2.0.10] - 2024-03-01
6+
7+
- Added variable substitution for `${fileExtname}`
8+
- Updated documentation
9+
- Ported config to typescript
10+
511
## [2.0.9] - 2024-02-01
612

713
- Added optional auto validation

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The following variable substitutions are supported for local style sheets as wel
4747
| ---------------------------- | ----------------------------------------- |
4848
| `${fileBasename}` | Current file's basename |
4949
| `${fileBasenameNoExtension}` | Current file's basename with no extension |
50+
| `${fileExtname}` | Current file's extension |
5051

5152
## Examples
5253

@@ -116,7 +117,7 @@ Variable substitution can be used to refer to a related `css` file. If you are w
116117

117118
```json
118119
{
119-
"css.styleSheets": ["src/${fileBasenameNoExtension}-css.ts"]
120+
"css.styleSheets": ["**/${fileBasenameNoExtension}-css.ts"]
120121
}
121122
```
122123

@@ -140,7 +141,7 @@ Variable substitution can be used for Angular development:
140141

141142
```json
142143
{
143-
"css.styleSheets": ["app/${fileBasenameNoExtension}.css"]
144+
"css.styleSheets": ["**/${fileBasenameNoExtension}.css"]
144145
}
145146
```
146147

package-lock.json

Lines changed: 65 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)