mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-04-22 10:52:13 +00:00
Default to langId if not a manually mapped name.
Added Elixir and Elm to mapped language names.
This commit is contained in:
parent
574fa9f2e4
commit
1921c28636
@ -6,6 +6,10 @@ All notable changes to the "code-stats-vscode" extension will be documented in t
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
## [1.0.6] - 2017-03-24
|
||||||
|
### Changed
|
||||||
|
Changed the plugin to default to just langId if the langId is not found in the mapped language names.
|
||||||
|
Added Elm and Elixir to mapped names.
|
||||||
|
|
||||||
## [1.0.5] - 2017-03-18
|
## [1.0.5] - 2017-03-18
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -18,6 +18,11 @@ This extension contributes the following settings:
|
|||||||
|
|
||||||
## Release Notes
|
## Release Notes
|
||||||
|
|
||||||
|
### 1.0.6
|
||||||
|
|
||||||
|
Changed to return just the langId if not found in the mapped languages names.
|
||||||
|
Added Elm and Elixir to the mapped names.
|
||||||
|
|
||||||
### 1.0.5
|
### 1.0.5
|
||||||
|
|
||||||
Changed language names to reflect the ones already used in Code::Stats.
|
Changed language names to reflect the ones already used in Code::Stats.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "code-stats-vscode",
|
"name": "code-stats-vscode",
|
||||||
"displayName": "Code::Stats",
|
"displayName": "Code::Stats",
|
||||||
"description": "Code::Stats package for Visual Studio Code",
|
"description": "Code::Stats package for Visual Studio Code",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"publisher": "juha-ristolainen",
|
"publisher": "juha-ristolainen",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -33,6 +33,8 @@ export function getLanguageName(langId: string): string {
|
|||||||
"css": "CSS",
|
"css": "CSS",
|
||||||
"diff": "Diff",
|
"diff": "Diff",
|
||||||
"dockerfile": "Docker",
|
"dockerfile": "Docker",
|
||||||
|
"elixir": "Elixir",
|
||||||
|
"elm": "Elm",
|
||||||
"fsharpcss": "F#",
|
"fsharpcss": "F#",
|
||||||
"git-commit": "Git",
|
"git-commit": "Git",
|
||||||
"git-rebase": "Git",
|
"git-rebase": "Git",
|
||||||
@ -79,7 +81,7 @@ export function getLanguageName(langId: string): string {
|
|||||||
let languageName: string = languageNames[langId];
|
let languageName: string = languageNames[langId];
|
||||||
|
|
||||||
if (languageName === null || languageName === undefined) {
|
if (languageName === null || languageName === undefined) {
|
||||||
return "Plain text";
|
return langId;
|
||||||
}
|
}
|
||||||
return languageName;
|
return languageName;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ export class XpCounter {
|
|||||||
constructor() {
|
constructor() {
|
||||||
this.pulse = new Pulse();
|
this.pulse = new Pulse();
|
||||||
|
|
||||||
/*
|
/* // print out supported language names
|
||||||
let allLanguages = languages.getLanguages().then(
|
let allLanguages = languages.getLanguages().then(
|
||||||
(result => {
|
(result => {
|
||||||
console.log(JSON.stringify(result));
|
console.log(JSON.stringify(result));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user