ionide / FsAutoComplete

F# language server using Language Server Protocol
Other
385 stars 151 forks source link

AutomaticWorkspaceInit is ignored if rootUri is used instead of rootPath #1277

Closed oupson closed 2 months ago

oupson commented 2 months ago

Version

v0.72.1

Dotnet Info

SDK .NET :
 Version:           8.0.104
 Commit:            034f91fcc0
 Workload version:  8.0.100-manifests.cd97f1c9

Environnement d'exécution :
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/8.0.104/

Charges de travail .NET installées :
 Workload version: 8.0.100-manifests.cd97f1c9
Il n'y a aucune charge de travail installée à afficher.

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529

.NET SDKs installed:
  8.0.104 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Steps to reproduce

Use an editor that use rootUri instead of rootPath, such as zed (you can try with this extension and try to load a fsharp project.

When using an editor such as helix that use rootPath, the workspace is correctly loaded.

Details

When initializing fsautocomplete with a rootUri, no rootPath and AutomaticWorkspaceInit, fsautocomplete should load the workspace.

Instead, it is ignored and fsautocomplete does not load the workspace as it does when using rootPath.

Logs

No response

Checklist