-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f91fc9c
commit 7b24220
Showing
14 changed files
with
229 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Note: It may not actually be a good idea | ||
to make this setting configurable. | ||
|
||
This could cause issues in shared repositories | ||
where one user has customized their note prefix | ||
and others have not. In order to ameliorate this | ||
issue, workspace settings would have to be committed | ||
which does not feel ideal for such a simple plugin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
{ | ||
"name": "linenoteplus", | ||
"displayName": "Line Note Plus", | ||
"description": "Add notes to the line of source code", | ||
"version": "1.2.2", | ||
"description": "Annotate lines of code with Markdown notes visible on hover.", | ||
"version": "2.1.0", | ||
"publisher": "prmichaelsen", | ||
"author": { | ||
"name": "Patrick Michaelsen", | ||
"email": "[email protected]", | ||
"url": "https://github.com/prmichaelsen" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "James Norton", | ||
"email": "[email protected]", | ||
"url": "https://github.com/indiejames" | ||
}, | ||
{ | ||
"name": "tkrkt", | ||
"url": "https://github.com/tkrkt" | ||
} | ||
], | ||
"readme": "./README.md", | ||
"engines": { | ||
"vscode": "^1.30.0" | ||
}, | ||
|
@@ -13,20 +30,22 @@ | |
"license": "MIT", | ||
"icon": "images/icon.png", | ||
"activationEvents": [ | ||
"*" | ||
"onStartupFinished" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/prmichaelsen/linenoteplus.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/prmichaelsen/linenoteplus/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"vscode", | ||
"note", | ||
"comment", | ||
"notataion", | ||
"annotation", | ||
"line", | ||
"tooltip" | ||
"sidenotes", | ||
"marginalia" | ||
], | ||
"main": "./out/extension.js", | ||
"contributes": { | ||
|
@@ -105,7 +124,7 @@ | |
"type": "array", | ||
"default": [ | ||
"**/src/**/*", | ||
"**/.vscode/linenoteplus/**/*" | ||
"**/.vscode/.linenoteplus/**/*" | ||
], | ||
"description": "%configuration.includePaths.description%" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"command.addNote.title": "Line Note Plus: Add note at current position", | ||
"command.openNote.title": "Line Note: Edit note at current position", | ||
"command.revealLine.title": "Line Note Plus: Reveal line in notated file", | ||
"command.removeNote.title": "Line Note Plus: Remove note at current position", | ||
"configuration.cleanUpOrphanedNotesInterval.description": "Interval at which to clean up unused notes in the background in ms. Only applies if cleanupOprhanedNotes is set to 'on-interval' or 'on-save-and-on-interval'. Default: 60000 (60s). For performance, a large value is recommended. In order to determine if a note has a corresponding marker, the entire project directory must be scanned.", | ||
"configuration.cleanUpOrphanedNotes.description": "Whether to cleanup orphaned notes on save file, on change file, on an interval, or never. Default: 'on-save'. Warning: On change file will provide more realtime updates but may affect performance and will delete note files instantly if not found in the changed file. Requires reload.", | ||
"configuration.includePaths.description": "File pattern globs to scan for note markers. Unmatched directories will be ignored.", | ||
"configuration.gutterIconPath.description": "File path of the icon to be displayed", | ||
"configuration.lineColor.description": "Background color of line with notes (name, HEX, or RGB)", | ||
"configuration.rulerColor.description": "Color of the ruler with notes (name, HEX, or RGB)", | ||
"configuration.showGutterIcon.description": "If it set to true, displays the icon on the line where the note exists. Default true." | ||
"command.addNote.title": "Line Note Plus: Add note at current position (Annotate Line)", | ||
"command.openNote.title": "Line Note Plus: Edit note at current position (Open Note)", | ||
"command.revealLine.title": "Line Note Plus: Reveal line in notated file (Show Note Marker)", | ||
"command.removeNote.title": "Line Note Plus: Remove note at current position (Delete Note)", | ||
"configuration.cleanUpOrphanedNotesInterval.description": "Interval at which to clean up unused notes in the background in ms. Only applies if `cleanUpOrphanedNotes` is set to `on-interval` or `on-save-and-on-interval`. Default: `60000` (60s). For performance, a larger value is recommended.", | ||
"configuration.cleanUpOrphanedNotes.description": "Defines the cleanup behavior for orphaned notes. It can be set to `on-save`, `on-interval`, `on-save-and-on-interval`, or `never`. Default: `on-save-and-on-internal`. Note that when using `on-save` or `on-save-and-on-interval`, if you delete a note marker and save the file then your note file will also be deleted.", | ||
"configuration.includePaths.description": "Specifies file pattern globs to scan for note markers. Directories that don't match these patterns will be ignored.", | ||
"configuration.gutterIconPath.description": "File path of the icon to be displayed in gutter.", | ||
"configuration.lineColor.description": "Sets the background color for inline note markers (Name, HEX, or RGB).", | ||
"configuration.rulerColor.description": "Sets the ruler color for notated lines (Name, HEX, or RGB).", | ||
"configuration.showGutterIcon.description": "Whether to display the gutter icon in the gutter for a noted line. Default: `true`." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as assert from "assert"; | ||
import { getNoteMarkerRegex } from "../noteUtil"; | ||
|
||
suite("noteUtil", function() { | ||
suite("getNoteMarkerRegex", function() { | ||
test('produces correct regex', () => { | ||
assert.equal( | ||
getNoteMarkerRegex().toString(), | ||
/note:[A-Za-z0-9]{1,}\s/g.toString() | ||
); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.