Questions tagged [omnisharp]

OmniSharp provides refactoring and AST support for the C# language for a variety of plugins written for popular text editors, including Vim, Emacs, Atom, Sublime Text, VS Code, and Brackets.

OmniSharp is a family of Open Source projects, each with one goal - To enable great .NET development in YOUR editor of choice. ~ omnisharp.net)

Background

OmniSharp Server, a project started by Jason Imison was written with the intention of providing refactoring and AST support for the C# language for Vim and later Emacs. Initially it was intended for own use, but grew in popularity and has had wide adoption in the game development community and developers writing C# on non Microsoft platforms.

Support has since been extended by the community to include Atom, Sublime Text and Brackets. OmniSharp has grown to be an umbrella term referring to the server and all plugins.

Today OmniSharp offers a lightweight alternative to traditional IDE's for developers wishing to write in their favourite editors. Offering code completion, formatting and other popular refactoring operations, syntax checking and easy code navigation.

309 questions
0
votes
2 answers

VSCode .Net Core MVC reports problems but Project Builds and Runs just fine

I have been using VSCode on OSX to develop a .Net Core Web MVC app. I can build and run the app using dotnet build cmd. No errors are reported when built. But today I opened VSCode and I am getting 100's of VSCode Problems reported by the C#…
Mike Murphy
  • 910
  • 2
  • 11
  • 27
0
votes
1 answer

LSP hover text markdown links from C# not working

I'm working on a VSCode extension with an LSP (implemented in C#/Omnisharp). I've implemented my language hover provider in the LSP and it's working fine. However, I want to add a clickable [vscode] command link to the hover. I've done this before…
0
votes
1 answer

ECONNREFUSED 127.0.0.1:9000 on OmniSharp install in Visual Studio Code on WSL2 behind corporate cloud proxy

I have Visual Studio Code operating with Remote WSL 2 on Ubuntu 20.04 (on a Win10 box behind a corporate firewall) and wanted to install the C# extension. On addition of the extension and each time I entered VS Code / WSL 2 on that particular…
0
votes
0 answers

visual studio code not working c# cannot debug omnisharp problem

So im a bit pissed off as visual studio code is such a good program but this issue ive had is now over a year old. I recently came back to see if it was fixed but it was not so im asking for help this time. So the error message i get when pressing…
0
votes
1 answer

Editorconfig: How to Get Warnings for All Uses of `public`

Because I'm not creating a library, I want to replace all uses of public inside my project to internal. While I can do this with Find and Replace, is there a configuration that I can add to .editorconfig that will give me warnings about all uses of…
Floating Sunfish
  • 4,920
  • 5
  • 29
  • 48
0
votes
1 answer

Error when trying to use .NET Generate Assets for Building and Debug in VSCode

I'll make this brief, below is the main issue I'm having. I'm learning C# again so I can expand my skillset. Long story short, the tutorial I was following was showing the viewer how to use the above command from VSCode's command palette. Whenever I…
DizzyYellow
  • 21
  • 1
  • 4
0
votes
1 answer

VSCode + Non-core Net Framework

I currently have a 4.5 .NET framework (not the core one) web/webapi project that I want to debug in VSCode. I've been search for some way to accomplish this, but it seems that VSCode has no support for this (but I have successfully built the whole…
0
votes
0 answers

Serve csharp-language-server-protocol instance through a web socket

I am using the csharp-language-server-protocol implementation to create a custom language server and it works great (see LSP). The only problem is that I am not finding a nice way to connect the in/out streams the server uses to a websocket using…
0
votes
2 answers

How can I determine the names and default values of the formatting options provided by the C#/OmniSharp extension for Visual Studio Code?

I am creating an omnisharp.json file to set my C# formatting preferences. How do I know what properties are available to set and what their default values are? I can press Ctrl + Space to display IntelliSense and that suggests some properties, but…
0
votes
1 answer

VSCode different permissions when opened with CLI versus shortcut (macOS Catalina)

I am using the OmniSharp/Microsoft C# extension with VSCode. When I open my project using the code . command inside my project folder, the extension is able to find the dotnet SDKs just fine and everything is good. When I open VSCode using the…
Finley
  • 392
  • 1
  • 8
  • 18
0
votes
1 answer

Fail OmniSharp MSBuild ProjectManager

Note: I already search other similar question related to OmniSharp issue, could not find proper solution.Intellisense of vs code c# not working. I uninstall the c# extension and install again but it can not resolve my issue.I also install previous…
0
votes
1 answer

Confused by the version of C# used by Visual Studio Code

I have the latest version of Visual Studio Code (1.39.2) on Windows 10 (1809). I also installed the OmniSharp C# extension (extension identifier ms-vscode.csharp, version 1.21.5). When I run the command csc -langversion:? from the integrated…
Sabuncu
  • 5,095
  • 5
  • 55
  • 89
0
votes
2 answers

How to create a new executable C# project with Visual Studio Code

I want to create a new executable project with Visual Studio Code + omnisharp. It works for dll but not for an exe file. Created a folder for my new project (e.g. myApp) Open Visual studio code -> file -> open folder Open internal VSC terminal and…
mA1k
  • 3
  • 1
  • 2
0
votes
1 answer

How to use Omnisharp Server to compile project asynchronously in a VS Code extension?

I need to compile c# projects from my VS Code extension and extract the emitted binary file. I have found that C# extension install and uses the Omnisharp server for compilation. Is there a way to tap in to the same Omnisharp server to trigger…
Bandara
  • 780
  • 8
  • 29
0
votes
1 answer

OmniSharp not functioning properly in one project but is in another

I have two identical projects that I am using to create a full stack Ember web-ui with .NET Core JSON API. I notice that in one project, OmniSharp is not providing the include using statement, but it does in the other project. Additionally, for the…
J Weezy
  • 3,507
  • 3
  • 32
  • 88