Skip to content

Commit

Permalink
fix: adapt the new API of LSP4IJ
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Jun 13, 2024
1 parent f694071 commit 7641f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.intellij.ide.plugins.PluginManagerCore;
import com.intellij.openapi.extensions.PluginId;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.redhat.devtools.lsp4ij.server.JavaProcessCommandBuilder;
import com.redhat.devtools.lsp4ij.server.ProcessStreamConnectionProvider;
import com.redhat.devtools.intellij.lsp4mp4ij.settings.UserDefinedMicroProfileSettings;
Expand Down Expand Up @@ -62,7 +63,7 @@ public QuarkusServer(Project project) {
}

@Override
public Object getInitializationOptions(URI rootUri) {
public Object getInitializationOptions(VirtualFile rootUri) {
Map<String, Object> root = new HashMap<>();
Map<String, Object> settings = UserDefinedMicroProfileSettings.getInstance(project).toSettingsForMicroProfileLS();
root.put("settings", settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.intellij.ide.plugins.PluginManagerCore;
import com.intellij.openapi.extensions.PluginId;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.redhat.devtools.lsp4ij.server.JavaProcessCommandBuilder;
import com.redhat.devtools.lsp4ij.server.ProcessStreamConnectionProvider;
import com.redhat.devtools.intellij.quarkus.TelemetryService;
Expand Down Expand Up @@ -60,7 +61,7 @@ public QuteServer(Project project) {
}

@Override
public Object getInitializationOptions(URI rootUri) {
public Object getInitializationOptions(VirtualFile rootUri) {
Map<String, Object> root = new HashMap<>();
Map<String, Object> settings = UserDefinedQuteSettings.getInstance(project).toSettingsForQuteLS();
Map<String, Object> extendedClientCapabilities = new HashMap<>();
Expand Down

0 comments on commit 7641f57

Please sign in to comment.