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

Add Language Mode "javascriptreact" #145

Merged
merged 2 commits into from
Oct 23, 2017
Merged

Add Language Mode "javascriptreact" #145

merged 2 commits into from
Oct 23, 2017

Conversation

madiodio
Copy link

"javascriptreact" is a language mode that replace the default "javascript" mode when a .js is opened in vscode. This can be done via the settings:

{
  "files.associations": {
    "*.js": "javascriptreact"
  }
}

So I choose the already present "react.svg" file inside the icons folder to do the maching.

"javascriptreact" is a language mode that replace the default "javascript" mode when a .js is opened in vscode. This can be done via the settings: 

````json
{
  "files.associations": {
      "*.js": "javascriptreact"
   }
}
````
So I choose the already present "react.svg" file inside the icons folder to do the maching.
@@ -33,6 +33,9 @@
"_file_js": {
"iconPath": "./../../icons/javascript.svg"
},
"_file_jsreact": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_file_react already exists with this icon

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I can map _file_react with javascriptreact "languageIds" field and remove _file_jsreact

Copy link
Author

@madiodio madiodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@@ -33,6 +33,9 @@
"_file_js": {
"iconPath": "./../../icons/javascript.svg"
},
"_file_jsreact": {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I can map _file_react with javascriptreact "languageIds" field and remove _file_jsreact

@PKief PKief merged commit 7a7a027 into material-extensions:master Oct 23, 2017
@madiodio madiodio deleted the patch-1 branch October 23, 2017 18:37
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.

3 participants