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

feat: re-implement language pack updater #640

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
*.md.html

# Maven
/target
/*/target
target/

# OSX
.DS_Store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ public void addGrammar(final IRawGrammar grammar, @Nullable final Collection<Str
@Override
@Nullable
public IRawGrammar lookup(final String scopeName) {
var grammar = this._rawGrammars.get(scopeName);

// check if tm4e language pack is installed, e.g. "source.python" -> "lngpck.source.python"
if (grammar == null && !scopeName.startsWith("lngpck.")) {
grammar = this._rawGrammars.get("lngpck." + scopeName);
}

return grammar;
return this._rawGrammars.get(scopeName);
}

@Override
Expand Down
179 changes: 128 additions & 51 deletions org.eclipse.tm4e.language_pack/README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion org.eclipse.tm4e.language_pack/_update/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions org.eclipse.tm4e.language_pack/_update/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions org.eclipse.tm4e.language_pack/_update/README_template.md

This file was deleted.

47 changes: 0 additions & 47 deletions org.eclipse.tm4e.language_pack/_update/about.html

This file was deleted.

20 changes: 0 additions & 20 deletions org.eclipse.tm4e.language_pack/_update/about_template.md

This file was deleted.

32 changes: 0 additions & 32 deletions org.eclipse.tm4e.language_pack/_update/info.html

This file was deleted.

Loading
Loading