diff --git a/CHANGELOG.md b/CHANGELOG.md index e710e1a..1e01e44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how * workspace counter in status bar. +## [2.4.0] + +### Removed + +- disuse config 'outputMarkdownSeparately' + ## [2.3.0] ### Fixed diff --git a/package.json b/package.json index 2c841a1..45b6a3c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-counter", "displayName": "VS Code Counter", "description": "Count lines of code in many programming languages.", - "version": "2.3.0", + "version": "2.4.0", "publisher": "uctakeoff", "author": { "name": "Ushiyama Kentaro" @@ -167,11 +167,6 @@ "type": "boolean", "default": true }, - "VSCodeCounter.outputMarkdownSeparately": { - "description": "%configuration.outputMarkdownSeparately.description%", - "type": "boolean", - "default": true - }, "VSCodeCounter.outputPreviewType": { "description": "%configuration.outputPreviewType.description%", "type": "string", diff --git a/package.nls.ja.json b/package.nls.ja.json index e180468..9832161 100644 --- a/package.nls.ja.json +++ b/package.nls.ja.json @@ -18,7 +18,6 @@ "configuration.outputAsText.description": "結果をテキストファイルで出力する.", "configuration.outputAsCSV.description": "結果をCSVファイルで出力する.", "configuration.outputAsMarkdown.description": "結果をMarkdown形式で出力する.", - "configuration.outputMarkdownSeparately.description": "Markdown結果を概要と詳細で分けて出力する.", "configuration.outputPreviewType.description": "カウント後にプレビューする出力ファイルの種類.", "configuration.saveLocation.description": "集めた言語設定を保存する場所を指定する.", "configuration.languages.description": "保存された言語設定.", diff --git a/package.nls.json b/package.nls.json index 362c9d7..ce1e339 100644 --- a/package.nls.json +++ b/package.nls.json @@ -18,7 +18,6 @@ "configuration.outputAsText.description": "Whether to output the result as a text file.", "configuration.outputAsCSV.description": "Whether to output the result as a CSV file.", "configuration.outputAsMarkdown.description": "Whether to output the result as a Markdown file.", - "configuration.outputMarkdownSeparately.description": "Whether to output summary and details separately.", "configuration.outputPreviewType.description": "Type of output file to preview after counting.", "configuration.saveLocation.description": "Specify where to store the collected language configurations.", "configuration.languages.description": "Saved Language Configurations.", diff --git a/src/extension.ts b/src/extension.ts index 96f8553..f7a5e4e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -88,7 +88,6 @@ const loadConfig = () => { outputAsText: conf.get('outputAsText', true), outputAsCSV: conf.get('outputAsCSV', true), outputAsMarkdown: conf.get('outputAsMarkdown', true), - outputMarkdownSeparately: conf.get('outputMarkdownSeparately', true), }; } type Config = ReturnType; @@ -544,13 +543,8 @@ const outputResults = async (date: Date, targetDirUri: vscode.Uri, results: Resu } if (conf.outputAsMarkdown) { try { - let resultsUri: vscode.Uri; - if (conf.outputMarkdownSeparately) { - await writeTextFile(outputDirUri, `${outputFilename}-details.md`, resultTable.toMarkdownDetails(date, `${outputFilename}.md`)); - resultsUri = await writeTextFile(outputDirUri, `${outputFilename}.md`, resultTable.toMarkdownSummary(date, `${outputFilename}-details.md`)); - } else { - resultsUri = await writeTextFile(outputDirUri, `${outputFilename}.md`, resultTable.toMarkdown(date)); - } + await writeTextFile(outputDirUri, `${outputFilename}-details.md`, resultTable.toMarkdownDetails(date, `${outputFilename}.md`)); + const resultsUri = await writeTextFile(outputDirUri, `${outputFilename}.md`, resultTable.toMarkdownSummary(date, `${outputFilename}-details.md`)); if (conf.outputPreviewType === 'markdown') { vscode.commands.executeCommand("markdown.showPreview", resultsUri); }