Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleangela committed Jun 15, 2023
1 parent 0a845fa commit 75eb950
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class CallHierarchyProvider implements vscode.CallHierarchyProvider {
}

// Listen to a cancellation for this request. When this request is cancelled,
// use a local cancellation source to implicitly cancel a token.
// use a local cancellation source to explicitly cancel a token.
let requestCanceled: CancellationSender | undefined;
const cancelSource: vscode.CancellationTokenSource = new vscode.CancellationTokenSource();
const cancellationTokenListener: vscode.Disposable = token.onCancellationRequested(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class FindAllReferencesProvider implements vscode.ReferenceProvider {
workspaceReferences.cancelCurrentReferenceRequest(CancellationSender.NewRequest);

// Listen to a cancellation for this request. When this request is cancelled,
// use a local cancellation source to implicitly cancel a token.
// use a local cancellation source to explicitly cancel a token.
const cancelSource: vscode.CancellationTokenSource = new vscode.CancellationTokenSource();
const cancellationTokenListener: vscode.Disposable = token.onCancellationRequested(() => { cancelSource.cancel(); });
const requestCanceledListener: vscode.Disposable = workspaceReferences.onCancellationRequested(sender => { cancelSource.cancel(); });
Expand Down
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/Providers/renameProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class RenameProvider implements vscode.RenameProvider {
}

// Listen to a cancellation for this request. When this request is cancelled,
// use a local cancellation source to implicitly cancel a token.
// use a local cancellation source to explicitly cancel a token.
// Don't listen to the token from the provider, as it will cancel when the cursor is moved to a different position.
const cancelSource: vscode.CancellationTokenSource = new vscode.CancellationTokenSource();
const requestCanceledListener: vscode.Disposable = workspaceReferences.onCancellationRequested(sender => { cancelSource.cancel(); });
Expand Down

0 comments on commit 75eb950

Please sign in to comment.