Skip to content

Commit 5df9873

Browse files
authored
Merge pull request #271 from edgardmessias/news_commits_frequency
New commits frequency
2 parents 0a1eb0e + 2c67bc5 commit 5df9873

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ Example:
108108
|`svn.update.ignoreExternals`|Set to ignore externals definitions on update (add --ignore-externals)|`true`|
109109
|`svn.default.encoding`|Encoding of svn output if the output is not utf-8. When this parameter is null, the encoding is automatically detected. Example: 'windows-1252'.|`null`|
110110
|`svn.showUpdateMessage`|Show the update message when update is run|`true`|
111+
|`svn.newCommits.checkFrequency`|Set the interval in seconds to check new commits on remote repository and show in statusbar. 0 to disable|`300`|

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,12 @@
666666
"type": "boolean",
667667
"description": "Show the update message when update is run",
668668
"default": true
669+
},
670+
"svn.newCommits.checkFrequency": {
671+
"type": "number",
672+
"description":
673+
"Set the interval in seconds to check new commits on remote repository and show in statusbar. 0 to disable",
674+
"default": 300
669675
}
670676
}
671677
}

src/repository.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ export class Repository {
296296
this.disposables.push(this.unversioned);
297297
this.disposables.push(this.conflicts);
298298

299-
const updateFreqNew = configuration.get<number>("svn.newCommits.update");
299+
const updateFreqNew = configuration.get<number>(
300+
"newCommits.checkFrequency"
301+
);
300302
if (updateFreqNew) {
301303
const interval = setInterval(() => {
302304
this.updateNewCommits();

0 commit comments

Comments
 (0)