Skip to content

support additional langs #56

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

Merged
merged 1 commit into from
Nov 16, 2019
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
update typings for supported languages
  • Loading branch information
ShMcK committed Nov 16, 2019
commit de743a4319e000af1d94f3f36bec26bfd989934f
10 changes: 1 addition & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"eslint.validate": ["javascript", { "language": "typescript", "autoFix": true }],
"[javascript]": {
"editor.formatOnSave": false
},
"[typescript]": {
"editor.formatOnSave": false
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"files.exclude": {
"build": false // set this to true to hide the "out" folder with the compiled JS files
Expand All @@ -21,7 +15,5 @@
"titleBar.activeBackground": "#000000",
"titleBar.activeForeground": "#FFFFFF"
},
"cSpell.ignoreWords": [
"camelcase"
]
"cSpell.ignoreWords": ["camelcase"]
}
20 changes: 10 additions & 10 deletions src/editor/languageMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import * as G from 'typings/graphql'
const languageMap: {
[lang: string]: G.FileFormat
} = {
// go: 'GO',
go: 'GO',
javascript: 'JS',
javascriptreact: 'JSX',
json: 'JSON',
// less: 'LESS',
// lua: 'LUA',
// php: 'PHP',
// python: 'PY',
// ruby: 'RB',
// sass: 'SASS',
// scss: 'SCSS',
// sql: 'SQL',
less: 'LESS',
lua: 'LUA',
php: 'PHP',
python: 'PY',
ruby: 'RB',
sass: 'SASS',
scss: 'SCSS',
sql: 'SQL',
typescript: 'TS',
typescriptreact: 'TSX',
// yaml: 'YAML'
yaml: 'YAML',
}

export default languageMap
Loading