Skip to content

Commit

Permalink
Merge pull request #174 from incidentist/incidentist/issue117
Browse files Browse the repository at this point in the history
#117: Annotate file and current line
  • Loading branch information
incidentist authored Jan 8, 2022
2 parents cffcd0a + 001f8d7 commit 923f511
Show file tree
Hide file tree
Showing 12 changed files with 696 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

- Rebase support.

- Show annotation for current line

# Feedback & Contributing

- Please report any bugs, suggestions or documentation requests via the [Github issues](https://github.com/mrcrowl/vscode-hg/issues) (_yes_, I see the irony).
Expand Down Expand Up @@ -135,6 +137,10 @@
`"cli"` — spawn a new `hg` process per command (default).
`"server"` — run a command server process  _i.e. `hg serve --cmdserve`_

`hg.annotationEnabled`

- Enables annotation decorations at end of lines

# Acknowledgements

[ajansveld](https://github.com/ajansveld), [hoffmael](https://github.com/hoffmael), [nioh-wiki](https://github.com/nioh-wiki), [joaomoreno](https://github.com/joaomoreno), [nsgundy](https://github.com/nsgundy)
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,19 @@
"command": "hg.unshelveContinue",
"title": "%command.unshelveContinue%",
"category": "Hg"
},
{
"command": "hg.toggleAnnotations",
"title": "%command.toggleAnnotations%",
"category": "Hg"
}
],
"menus": {
"commandPalette": [
{
"command": "hg.toggleAnnotations",
"when": "config.hg.enabled && !hg.missing && hgOpenRepositoryCount != 0"
},
{
"command": "hg.clone",
"when": "config.hg.enabled && !hg.missing"
Expand Down Expand Up @@ -966,6 +975,11 @@
"%config.pushPullScope.default%"
],
"default": "all"
},
"hg.lineAnnotationEnabled": {
"type": "boolean",
"description": "%config.lineAnnotationEnabled%",
"default": false
}
}
},
Expand All @@ -991,6 +1005,7 @@
},
"dependencies": {
"tmp": "0.2.1",
"vscode-diff": "^2.0.2",
"vscode-nls": "^2.0.1"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"command.annotate": "Annotate",
"command.clone": "Clone",
"command.init": "Initialize Repository (Hg)",
"command.close": "Close Repository",
Expand Down Expand Up @@ -53,6 +54,7 @@
"command.unshelveKeep": "Unshelve and Keep",
"command.unshelveAbort": "Abort unshelve",
"command.unshelveContinue": "Continue unshelve",
"command.toggleAnnotations": "Toggle annotations for this file",
"config.enabled": "Whether Hg is enabled",
"config.path": "Path to the 'hg' executable (only required if auto-detection fails)",
"config.autoInOut": "Whether auto-incoming/outgoing counts are enabled",
Expand All @@ -77,5 +79,6 @@
"config.pushPullScope.all": "All branches / bookmarks",
"config.pushPullScope.current": "Only the current branch / bookmark",
"config.pushPullScope.default": "Only the default branch / bookmarks on the default branch",
"config.useBookmarks": "Use bookmarks instead of branches"
"config.useBookmarks": "Use bookmarks instead of branches",
"config.lineAnnotationEnabled": "Show hg annotation at the end of the line"
}
Loading

0 comments on commit 923f511

Please sign in to comment.