Skip to content

Commit 965f7f8

Browse files
committed
Cancels tokens because of vscode api change
See microsoft/vscode#46102
1 parent 609125c commit 965f7f8

12 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
### Fixed
9+
- Fixes issues where quick pick menu progress indicators will get stuck in some cases because of a vscode api change in [Microsoft/vscode#46102](https://github.com/Microsoft/vscode/pull/46102)
10+
711
## [8.2.0] - 2018-03-31
812
### Added
913
- Adds new stand-alone *GitLens History* explorer to visualize the history of the current file — undocked version of the *GitLens* explorer history view

src/commands/diffBranchWithBranch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class DiffBranchWithBranchCommand extends ActiveEditorCommand {
8484
return window.showErrorMessage(`Unable to open branch compare. See output channel for more details`);
8585
}
8686
finally {
87-
progressCancellation && progressCancellation.dispose();
87+
progressCancellation && progressCancellation.cancel();
8888
}
8989
}
9090
}

src/commands/diffDirectory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class DiffDirectoryCommand extends ActiveEditorCommand {
9393
return window.showErrorMessage(`Unable to open directory compare. See output channel for more details`);
9494
}
9595
finally {
96-
progressCancellation && progressCancellation.dispose();
96+
progressCancellation && progressCancellation.cancel();
9797
}
9898
}
9999
}

src/commands/diffWithBranch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class DiffWithBranchCommand extends ActiveEditorCommand {
8585
return commands.executeCommand(Commands.DiffWith, diffArgs);
8686
}
8787
finally {
88-
progressCancellation.dispose();
88+
progressCancellation.cancel();
8989
}
9090
}
9191
}

src/commands/diffWithRevision.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class DiffWithRevisionCommand extends ActiveEditorCommand {
115115
return window.showErrorMessage(`Unable to open compare. See output channel for more details`);
116116
}
117117
finally {
118-
progressCancellation.dispose();
118+
progressCancellation.cancel();
119119
}
120120
}
121121
}

src/commands/openFileRevision.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class OpenFileRevisionCommand extends ActiveEditorCommand {
137137
return window.showErrorMessage(`Unable to open file revision. See output channel for more details`);
138138
}
139139
finally {
140-
progressCancellation && progressCancellation.dispose();
140+
progressCancellation && progressCancellation.cancel();
141141
}
142142
}
143143
}

src/commands/showCommitSearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class ShowCommitSearchCommand extends ActiveEditorCachedCommand {
160160
return window.showErrorMessage(`Unable to find commits. See output channel for more details`);
161161
}
162162
finally {
163-
progressCancellation.dispose();
163+
progressCancellation.cancel();
164164
}
165165
}
166166
}

src/commands/showQuickBranchHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class ShowQuickBranchHistoryCommand extends ActiveEditorCachedCommand {
8383
return window.showErrorMessage(`Unable to show branch history. See output channel for more details`);
8484
}
8585
finally {
86-
progressCancellation && progressCancellation.dispose();
86+
progressCancellation && progressCancellation.cancel();
8787
}
8888
}
8989
}

src/commands/showQuickFileHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand {
107107
return window.showErrorMessage(`Unable to show file history. See output channel for more details`);
108108
}
109109
finally {
110-
progressCancellation.dispose();
110+
progressCancellation.cancel();
111111
}
112112
}
113113
}

src/commands/showQuickStashList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class ShowQuickStashListCommand extends ActiveEditorCachedCommand {
6262
return window.showErrorMessage(`Unable to show stashed changes. See output channel for more details`);
6363
}
6464
finally {
65-
progressCancellation.dispose();
65+
progressCancellation.cancel();
6666
}
6767
}
6868
}

0 commit comments

Comments
 (0)