Fix typo in quickFix.ts and ensure correct grammar in references-view README

This commit is contained in:
Ebrahim 2025-05-13 14:59:00 +03:00
parent 7d2075b39a
commit 866c2ebb9d
2 changed files with 7 additions and 7 deletions

View File

@ -2,10 +2,10 @@
This extension shows reference search results as separate view, just like search results. It complements the peek view presentation that is also built into VS Code. The following features are available:
* List All References via the Command Palette, the Context Menu, or via <kbd>Alt+Shift+F12</kbd>
* View references in a dedicated tree view that sits in the sidebar
* Navigate through search results via <kbd>F4</kbd> and <kbd>Shift+F4</kbd>
* Remove references from the list via inline commands
- List All References via the Command Palette, the Context Menu, or via <kbd>Alt+Shift+F12</kbd>
- View references in a dedicated tree view that sits in the sidebar
- Navigate through search results via <kbd>F4</kbd> and <kbd>Shift+F4</kbd>
- Remove references from the list via inline commands
![](https://raw.githubusercontent.com/microsoft/vscode-references-view/master/media/demo.png)
@ -21,7 +21,7 @@ This extension ships with Visual Studio Code and uses its issue tracker. Please
# Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

View File

@ -450,7 +450,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
return results;
}
// Make sure there are multiple diagnostics of the same type in the file
// Make sure there are multiple different diagnostics of the same type in the file
if (!this.diagnosticsManager.getDiagnostics(resource).some(x => {
if (x === diagnostic) {
return false;
@ -479,7 +479,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
}
}
// Some fix all actions can actually fix multiple differnt diagnostics. Make sure we still show the fix all action
// Some fix all actions can actually fix multiple different diagnostics. Make sure we still show the fix all action
// in such cases
const fixAllErrorCodes = new Map<number, number>([
// Missing async