Skip to content

Commit

Permalink
🐛 Fix file URI for Windows (#730) (#732)
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <emcmulla@redhat.com>
Signed-off-by: Cherry Picker <noreply@github.com>

Signed-off-by: Emily McMullan <emcmulla@redhat.com>
Signed-off-by: Cherry Picker <noreply@github.com>
Co-authored-by: Emily McMullan <emcmulla@redhat.com>
  • Loading branch information
konveyor-ci-bot[bot] and eemcmullan authored Nov 20, 2024
1 parent 770609e commit 6692d3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (p *javaServiceClient) initialization(ctx context.Context) {

//TODO(shawn-hurley): add ability to parse path to URI in a real supported way
params := &protocol.InitializeParams{}
params.RootURI = fmt.Sprintf("file://%v", absLocation)
params.RootURI = string(uri.File(absLocation))
params.Capabilities = protocol.ClientCapabilities{}
params.ExtendedClientCapilities = map[string]interface{}{
"classFileContentsSupport": true,
Expand All @@ -261,7 +261,7 @@ func (p *javaServiceClient) initialization(ctx context.Context) {
java8home := os.Getenv("JAVA8_HOME")
params.InitializationOptions = map[string]interface{}{
"bundles": absBundles,
"workspaceFolders": []string{fmt.Sprintf("file://%v", absLocation)},
"workspaceFolders": []string{string(uri.File(absLocation))},
"settings": map[string]interface{}{
"java": map[string]interface{}{
"configuration": map[string]interface{}{
Expand Down

0 comments on commit 6692d3b

Please sign in to comment.