-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for extracting styles to tss from views (#1177)
* build: update node related build settings to use newer syntax * feat(providers/codeaction): allow extracting styles from an xml tag to a tss file Implements a code action that allows extract styles from an xml node into a tss document. It can be triggered using the usual refactor shortcut, menu item, or lightbulb and supports running on an entire line or just the selected properties. Some known todos are: * Support nested properties (font stuff) * Multiline properties * Better handling of class merging * Tests! * feat: handle extracting object style properties * fix: handle multi-line strings * fix: allow percentages in values * fix: handle not wrapping numbers, Alloy, Titanium APIs, wrap using correct quotes for file * fix: handle “$.args” in attributes, show number-properties without quotes * chore: add comma after new property * fix: fix typo * chore: remove last comma --------- Co-authored-by: Hans Knöchel <h.knoechel@lambus.com>
- Loading branch information
1 parent
ce06bd6
commit 67fa837
Showing
7 changed files
with
181 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters