sharpSteff / lapce-csharp-plugin

Apache License 2.0
5 stars 1 forks source link

So how do you actually configure this plugin? #2

Closed macco3k closed 1 year ago

macco3k commented 1 year ago

I've downloaded and extracted omnisharp in a dir under my home. But what should I set the configuration file to to make this plugin work? If I open the .toml config file I can see the following:

name = "csharp"
version = "1.1.0"
display-name = "C#"
author = "sharpSteff"
description = "C# for lapce using OmniSharp"
icon = "logo.png"
repository = "https://github.com/sharpSteff/lapce-csharp-plugin.git"
wasm = "target/wasm32-wasi/release/lapce-plugin-csharp.wasm"

[activation]
language = ["csharp"]
workspace-contains = [
    "*/*.csx",
    "*/*.cs",
    "*/*.sln",
    "*/omnisharp.json",
]

[config."volt.serverArgs"]
default = ["--languageserver"]
description = "LSP server arguments to pass when launching"

[config."volt.serverPath"]
default = ""
description = "Path to custom LSP executable"

What should I put into the serverPath setting?

sharpSteff commented 1 year ago

make sure omnisharp is globally accessible. you can test it by open your terminal and just tip omnisharp and press enter

macco3k commented 1 year ago

I did just that and could indeed run it as OmniSharp. Should it be all lowercase? I don't get auto completion in the ide, nor squiggly lines when there's errors.

Op wo 22 mrt. 2023 19:26 schreef sharpSteff @.***>:

make sure omnisharp is globally accessible. you can test it by open your terminal and just tip omnisharp and press enter

— Reply to this email directly, view it on GitHub https://github.com/sharpSteff/lapce-csharp-plugin/issues/2#issuecomment-1480063874, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLI6UL5KA55PXN4FR5FBM3W5M73ZANCNFSM6AAAAAAWDXCJ2Y . You are receiving this because you authored the thread.Message ID: @.***>

sharpSteff commented 1 year ago

than you've done everything right. is omnisharp running, when you opened a cs file or a folder with a sln file? can you provide the lapce log file to check?

sharpSteff commented 1 year ago

please check v.2.0.0 I switched the LSP to the open source project csharp-ls, which works out of the box after installing the LSP via: dotnet tool install --global csharp-ls

macco3k commented 1 year ago

Cool, will. give it a try 👍

Op zo 9 apr. 2023 23:42 schreef sharpSteff @.***>:

please check v.2.0.0 I switched the LSP to the open source project csharp-ls https://github.com/razzmatazz/csharp-language-server, which works out of the box after installing the LSP via: dotnet tool install --global csharp-ls

— Reply to this email directly, view it on GitHub https://github.com/sharpSteff/lapce-csharp-plugin/issues/2#issuecomment-1501219620, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLI6UJGINEK6R3Z6WKBJADXAMUKVANCNFSM6AAAAAAWDXCJ2Y . You are receiving this because you authored the thread.Message ID: @.***>