Skip to content
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

Merged
merged 4 commits into from
Feb 1, 2025
Merged

Conversation

AndreasArvidsson
Copy link
Collaborator

While I was at it I added missing languages and a few snippets

Fixes #1712

@@ -123,30 +124,6 @@ def get_snippets() -> list[Snippet]:
return result


def get_super_languages(language: str) -> list[str]:
Copy link
Collaborator Author

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.

@@ -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())
Copy link
Collaborator Author

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
Copy link
Collaborator Author

@AndreasArvidsson AndreasArvidsson Jan 31, 2025

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
Copy link
Collaborator Author

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

Copy link
Collaborator

@nriley nriley left a 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

core/snippets/snippets.py Outdated Show resolved Hide resolved
@nriley nriley merged commit e9cb231 into main Feb 1, 2025
2 checks passed
@nriley nriley deleted the snippetLanguageInheritance branch February 1, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove snippet language inheritance
2 participants