Skip to content

Commit

Permalink
added fileExtname
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmel committed Feb 11, 2024
1 parent cba11d4 commit 1e4633a
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 137 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [2.0.10] - 2024-03-01

- Added variable substitution for `${fileExtname}`
- Updated documentation
- Ported config to typescript

## [2.0.9] - 2024-02-01

- Added optional auto validation
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ The following variable substitutions are supported for local style sheets as wel
| ---------------------------- | ----------------------------------------- |
| `${fileBasename}` | Current file's basename |
| `${fileBasenameNoExtension}` | Current file's basename with no extension |
| `${fileExtname}` | Current file's extension |

## Examples

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

```json
{
"css.styleSheets": ["src/${fileBasenameNoExtension}-css.ts"]
"css.styleSheets": ["**/${fileBasenameNoExtension}-css.ts"]
}
```

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

```json
{
"css.styleSheets": ["app/${fileBasenameNoExtension}.css"]
"css.styleSheets": ["**/${fileBasenameNoExtension}.css"]
}
```

Expand Down
179 changes: 65 additions & 114 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1e4633a

Please sign in to comment.