Skip to content

Commit

Permalink
Fix small typos in CONTRIBUTING.md and LSPCodeActionMarkerResolution.…
Browse files Browse the repository at this point in the history
…java
  • Loading branch information
joaodinissf committed Oct 18, 2023
1 parent 0c1970d commit fc9e857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Latest snapshot builds, for testing, can usually be found at `https://download.e
#### Install Software

1. Install the **Eclipse IDE for Eclipse Committers** from https://www.eclipse.org/downloads/packages/ or
any another Eclipse distrubition with:
any another Eclipse distribution with:
1. [Plug-in Development Environment (PDE)](https://www.eclipse.org/pde/) installed
1. Eclipse [m2e](https://www.eclipse.org/m2e/) installed
1. To run Maven builds from the command line, install [JDK17](https://adoptium.net/temurin/releases/?version=17) and [Maven 3.9.x](https://maven.apache.org/download.cgi)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public IMarkerResolution[] getResolutions(IMarker marker) {
try {
att = marker.getAttribute(LSP_REMEDIATION);
if (att == null) {
checkMarkerResoultion(marker);
checkMarkerResolution(marker);
att = marker.getAttribute(LSP_REMEDIATION);
}
} catch (IOException | CoreException | ExecutionException e) {
Expand All @@ -119,7 +119,7 @@ public IMarkerResolution[] getResolutions(IMarker marker) {
.toArray(IMarkerResolution[]::new);
}

private void checkMarkerResoultion(IMarker marker) throws IOException, CoreException, InterruptedException, ExecutionException {
private void checkMarkerResolution(IMarker marker) throws IOException, CoreException, InterruptedException, ExecutionException {
IResource res = marker.getResource();
if (res instanceof IFile file) {
Object[] attributes = marker.getAttributes(new String[]{LSPDiagnosticsToMarkers.LANGUAGE_SERVER_ID, LSPDiagnosticsToMarkers.LSP_DIAGNOSTIC});
Expand Down Expand Up @@ -205,7 +205,7 @@ public boolean hasResolutions(IMarker marker) {
try {
Object remediation = marker.getAttribute(LSP_REMEDIATION);
if (remediation == null) {
checkMarkerResoultion(marker);
checkMarkerResolution(marker);
remediation = marker.getAttribute(LSP_REMEDIATION);
}
return remediation == COMPUTING || (remediation instanceof Collection<?> collection && !collection.isEmpty());
Expand Down

0 comments on commit fc9e857

Please sign in to comment.