From 8ee2d3ddc80b02d90e9e8df329ea5f37db441972 Mon Sep 17 00:00:00 2001 From: Norman Rauschen Date: Tue, 4 Dec 2018 21:02:19 +0100 Subject: [PATCH 1/5] Command names use title case --- README.md | 6 +++--- package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 156678d..7b2ca22 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Hope this extension helps you as well. *NOTICE* -Many report that the `List highlighted annotations` command is not working, make sure you have the file types included via `todohighlight.include`. +Many report that the `List Highlighted Annotations` command is not working, make sure you have the file types included via `todohighlight.include`. ### Preview @@ -113,9 +113,9 @@ an example of customizing configuration: This extension contributes the following commands to the Command palette. -- `Toggle highlight` : turn on/off the highlight +- `Toggle Highlight` : turn on/off the highlight ![](https://github.com/wayou/vscode-todo-highlight/raw/master/assets/toggle-highlight.gif) -- `List highlighted annotations` : list annotations and reveal from corresponding file +- `List Highlighted Annotations` : list annotations and reveal from corresponding file ![](https://github.com/wayou/vscode-todo-highlight/raw/master/assets/list-annotations.gif) diff --git a/package.json b/package.json index 0757496..59d34b1 100644 --- a/package.json +++ b/package.json @@ -70,12 +70,12 @@ "contributes": { "commands": [ { - "title": "Toggle highlight", + "title": "Toggle Highlight", "category": "TODO-Highlight", "command": "todohighlight.toggleHighlight" }, { - "title": "List highlighted annotations", + "title": "List Highlighted Annotations", "category": "TODO-Highlight", "command": "todohighlight.listAnnotations" } From 1177d098cb27b3b72f4f3f280f1a9251084b0b91 Mon Sep 17 00:00:00 2001 From: Norman Rauschen Date: Tue, 4 Dec 2018 21:05:44 +0100 Subject: [PATCH 2/5] Fix some markdown issues --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7b2ca22..78b87f1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ Hope this extension helps you as well. Many report that the `List Highlighted Annotations` command is not working, make sure you have the file types included via `todohighlight.include`. - ### Preview - with `material night` color theme: @@ -41,7 +40,6 @@ To customize the keywords and other stuff, command + , (Wi | todohighlight.maxFilesForSearch | number | 5120 | Max files for searching, mostly you don't need to configure this. | | todohighlight.toggleURI | boolean | false | If the file path within the output channel not clickable, set this to true to toggle the path patten between `#` and `::`. | - an example of customizing configuration: ```js @@ -118,12 +116,10 @@ This extension contributes the following commands to the Command palette. - `List Highlighted Annotations` : list annotations and reveal from corresponding file ![](https://github.com/wayou/vscode-todo-highlight/raw/master/assets/list-annotations.gif) +### Known Issue -### Known issue - - The clickable file pattern within the output channel differs from OS platform(`#` for Mac/Windows and `::` for Linux, for details see this [issue](https://github.com/Microsoft/vscode/issues/586) ). +The clickable file pattern within the output channel differs from OS platform(`#` for Mac/Windows and `::` for Linux, for details see this [issue](https://github.com/Microsoft/vscode/issues/586) ). - Basically the extension auto detects the OS platform. +Basically the extension auto detects the OS platform. - If you find that the file path is not clickable, set `todohighlight.toggleURI` to `true` to toggle the file pattern. - +If you find that the file path is not clickable, set `todohighlight.toggleURI` to `true` to toggle the file pattern. \ No newline at end of file From 98b499bc115c6fb391ae04e2ee6a39e00b50c2b7 Mon Sep 17 00:00:00 2001 From: Norman Rauschen Date: Wed, 5 Dec 2018 00:14:58 +0100 Subject: [PATCH 3/5] Add INFO and NOTE as default keywords Should close #117 if no other keywords are requested. --- src/util.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/util.js b/src/util.js index e1c8548..2a3ac15 100644 --- a/src/util.js +++ b/src/util.js @@ -8,17 +8,29 @@ var zapIcon = '$(zap)'; var defaultMsg = '0'; var DEFAULT_KEYWORDS = { - "TODO:": { - text: "TODO:", + 'TODO:': { + text: 'TODO:', color: '#fff', backgroundColor: '#ffbd2a', overviewRulerColor: 'rgba(255,189,42,0.8)' }, - "FIXME:": { - text: "FIXME:", + 'FIXME:': { + text: 'FIXME:', color: '#fff', backgroundColor: '#f06292', overviewRulerColor: 'rgba(240,98,146,0.8)' + }, + 'INFO:': { + text: 'INFO:', + color: '#fff', + backgroundColor: '#4dabf7', + overviewRulerColor: 'rgba(77,171,247,0.8)' + }, + 'NOTE:': { + text: 'NOTE:', + color: '#fff', + backgroundColor: '#69db7c', + overviewRulerColor: 'rgba(105,219,124,0.8)' } }; @@ -38,7 +50,7 @@ function getAssembledData(keywords, customDefaultStyle, isCaseSensitive) { text = text.toUpperCase(); } - if (text == 'TODO:' || text == 'FIXME:') { + if (text == 'TODO:' || text == 'FIXME:' || text == 'INFO:' || text == 'NOTE:') { v = Object.assign({}, DEFAULT_KEYWORDS[text], v); } result[text] = Object.assign({}, DEFAULT_STYLE, customDefaultStyle, v); From 4132fd962854cf3fa7abfb249fdae252df1a7773 Mon Sep 17 00:00:00 2001 From: "whitesource-bolt-for-github[bot]" Date: Wed, 8 May 2019 16:44:42 +0000 Subject: [PATCH 4/5] Initial WhiteSource configuration file --- .whitesource | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .whitesource diff --git a/.whitesource b/.whitesource new file mode 100644 index 0000000..f056952 --- /dev/null +++ b/.whitesource @@ -0,0 +1,8 @@ +{ + "generalSettings": { + "shouldScanRepo": true + }, + "checkRunSettings": { + "vulnerableCheckRunConclusionLevel": "failure" + } +} \ No newline at end of file From a4174862e95e6ee6c14b7ed1752fe7089b5a4834 Mon Sep 17 00:00:00 2001 From: Acid147 Date: Wed, 8 May 2019 18:51:03 +0200 Subject: [PATCH 5/5] Delete .whitesource --- .whitesource | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .whitesource diff --git a/.whitesource b/.whitesource deleted file mode 100644 index f056952..0000000 --- a/.whitesource +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generalSettings": { - "shouldScanRepo": true - }, - "checkRunSettings": { - "vulnerableCheckRunConclusionLevel": "failure" - } -} \ No newline at end of file