-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove snippet language inheritance #1715
Conversation
@@ -123,30 +124,6 @@ def get_snippets() -> list[Snippet]: | |||
return result | |||
|
|||
|
|||
def get_super_languages(language: str) -> list[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the principal logic that was removed.
core/snippets/snippets.py
Outdated
@@ -200,7 +177,7 @@ def create_lists( | |||
|
|||
|
|||
def on_ready(): | |||
fs.watch(str(SNIPPETS_DIR), lambda _1, _2: update_snippets()) | |||
fs.watch(SNIPPETS_DIR, lambda _1, _2: update_snippets()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type change in Talon
--- | ||
|
||
name: element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are moved to xml.snippet
@@ -39,18 +39,9 @@ const $1 = ($2) => { | |||
} | |||
--- | |||
|
|||
name: reactUseState |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are moved to javascriptreact.snippet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK if you add a message to breaking changes
While I was at it I added missing languages and a few snippets
Fixes #1712