Skip to content

Commit

Permalink
feat(icon): add icon for rnc files
Browse files Browse the repository at this point in the history
RNC files are used for XML validation. There is an icon available on
https://github.com/relaxng, but it’s very detailed and there’s no SVG
version available. Instead the same icon is used as for XML,
but with the same cyan color as is used in the original icon.

The `rnc` language ID is registered by
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml
  • Loading branch information
remcohaszing committed Apr 25, 2024
1 parent 673d2e0 commit b936983
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions icons/file_type_rnc.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/iconsManifest/languages.ts
Expand Up @@ -321,6 +321,7 @@ export const languages: ILanguageCollection = {
rexx: { ids: 'rexx', defaultExtension: 'rex' },
riot: { ids: 'riot', defaultExtension: 'tag' },
rmd: { ids: 'rmd', defaultExtension: 'rmd' },
rnc: { ids: 'rnc', defaultExtension: 'rnc' },
robot: { ids: 'robot', defaultExtension: 'robot' },
ruby: { ids: 'ruby', defaultExtension: 'rb' },
rust: { ids: 'rust', defaultExtension: 'rs' },
Expand Down
6 changes: 6 additions & 0 deletions src/iconsManifest/supportedExtensions.ts
Expand Up @@ -4119,6 +4119,12 @@ export const extensions: IFileCollection = {
languages: [languages.riot],
format: FileFormat.svg,
},
{
icon: 'rnc',
extensions: ['.rnc'],
languages: [languages.rnc],
format: FileFormat.svg,
},
{
icon: 'robotframework',
extensions: [],
Expand Down
1 change: 1 addition & 0 deletions src/models/language/languageCollection.ts
Expand Up @@ -207,6 +207,7 @@ export interface ILanguageCollection extends INativeLanguageCollection {
rexx: ILanguage;
riot: ILanguage;
rmd: ILanguage;
rnc: ILanguage;
robot: ILanguage;
san: ILanguage;
sas: ILanguage;
Expand Down

0 comments on commit b936983

Please sign in to comment.