Identify and replace CSS 💪 physical properties with 🧠 logical properties.
This extension contributes the following:
- Command pallet -
Replace all 💪 physical properties with 🧠 logical properties.
- keybindings:
ctrl+shift+L
/cmd+shift+L
- Editor Context Menu:
Replace all 💪 physical properties with 🧠 logical properties.
- Problems
- Quick Fix/Light Bulb
- Status Bar
- Ignore Properties
- Ignore Language IDs
- Supported Languages
- Testing has only been done on
.css
,.html
, and.jsx
files. - In theory the following languages are supported:
- coffeescript
- css
- html
- javascript
- javascriptreact
- less
- markdown
- php
- plaintext
- sass
- scss
- stylus
- typescript
- typescriptreact
- vue
- vue-html
- xml
- xsl
- Testing has only been done on
A few things to be aware of when using this extension:
- False positives/negatives are possible.
- For example, in an HTML file if you use an
image
tag with theheight
attribute, the extension will currently detect theheight
attribute as a physical property. - Double check your file after using the
replace all
feature.
- For example, in an HTML file if you use an
- Changing a physical property to a logical property may or may not have an effect on styles that override styles from other files and third-party files.
Limited testing of this extension has been done.
- Ignore specific files
- Added a way to ignore specific files through
ignoreLanguageIds
. - See: https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers
- Added a way to ignore specific files through
- Renamed
ignoreList
toignoreProperties
.ignoreList
is now depricated and will be removed from a future version.
- Fixed the extension to no longer check for or update values within media queries.
- Logical properties aren't supported in media queries.
- See #4
- Note that the check is very simple and checks for parenthesis to determine if a replacement should be made. This could lead to false positives or false negatives.
- Logical properties aren't supported in media queries.
- Ignore specific CSS properties
- Added a way to ignore specific properties through
ignoreList
(depricated, see: v0.1.15) - See #14
- Added a way to ignore specific properties through
- Fixed
border-top-right-radius
-->border-start-end-radius
and Fixedborder-bottom-left-radius
-->border-end-start-radius
- See #7
- See #8
- See #9
Fix an issue related to regex matching indices not currently supported in node.js
- VSCode uses Electron
- Electron uses node.js for local apis
- node.js does not currently support regex matching indices (
d
flag,hasIndices
)
- node.js does not currently support regex matching indices (
- Electron uses node.js for local apis
- Using a polyfill
- See #2
Fixed which files diagnostics are shown for
- Previously
.git
files were showing diagnostics - Files that were closed were still showing in
Problems
Fixed activation
- Fixes a bug where the extension would not work on the first time it was installed.
- See #1
Initial release
- Update additional checks and logic for logical properties that do not map to physical properties
- Write Tests
- Link to or document basic info about logical properties