Skip to content

Commit 075f8ca

Browse files
Merge branch 'lsp4jakarta-0.2.5' into issue_1401_v2
2 parents 435a39a + b6bbe6d commit 075f8ca

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on:
4747
push:
4848
branches: '**'
4949
pull_request:
50-
branches: [ main ]
50+
branches: [ main, lsp4jakarta-0.2.5-integration ]
5151

5252
jobs:
5353
fetch_merge_commit_sha_from_lsp4ij_PR:

src/main/java/io/openliberty/tools/intellij/lsp4jakarta/lsp4ij/PropertiesManagerForJakarta.java

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2020, 2024 Red Hat, Inc.
2+
* Copyright (c) 2020, 2025 Red Hat, Inc.
33
* Distributed under license by Red Hat, Inc. All rights reserved.
44
* This program is made available under the terms of the
55
* Eclipse Public License v2.0 which accompanies this distribution,
@@ -122,19 +122,9 @@ private MicroProfileJavaCompletionParams adapt(JakartaJavaCompletionParams param
122122

123123
private JavaCursorContextResult adapt(org.eclipse.lsp4mp.commons.JavaCursorContextResult contextResult) {
124124
if (contextResult != null) {
125-
return new JavaCursorContextResult(adapt(contextResult.getKind()), contextResult.getPrefix());
126-
}
127-
return null;
128-
}
129-
130-
private JavaCursorContextKind adapt(org.eclipse.lsp4mp.commons.JavaCursorContextKind kind) {
131-
if (kind != null) {
132-
// Workaround for an issue with JavaCursorContextKind.forValue().
133-
// See https://github.com/OpenLiberty/liberty-tools-intellij/issues/681 for details.
134-
if (kind == org.eclipse.lsp4mp.commons.JavaCursorContextKind.NONE) {
135-
return JavaCursorContextKind.NONE;
136-
}
137-
return JavaCursorContextKind.forValue(kind.getValue());
125+
var kind = contextResult.getKind();
126+
if(kind != null)
127+
return new JavaCursorContextResult(JavaCursorContextKind.forValue(kind.getValue()), contextResult.getPrefix());
138128
}
139129
return null;
140130
}

0 commit comments

Comments
 (0)