Skip to content

Commit

Permalink
🐛 Fix file URI for Windows (#730)
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
  • Loading branch information
eemcmullan authored and web-flow committed Nov 20, 2024
1 parent 770609e commit b652979
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 b652979

Please sign in to comment.