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.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
22 views

Visual Studio Code, how to remove a wrong package

My project contains a reference to a package I later decided not to use, since it isn't fully compatible with C# 8. I'm using VS Code (not the full Visual Studio) on Windows, but seem to be unable to ...
Peter's user avatar
  • 2,080
0 votes
1 answer
26 views

Autocompletion using CompletionItem.InsertText instead of CompletionItem.Label in Omnisharp VSSCode?

I'm trying to write an extension for VSCode with an auto-completion service, using the OmniSharp.Extensions.LanguageServer nuget package. I want to insert code snippets when the user selects a ...
bookofproofs's user avatar
0 votes
0 answers
9 views

VSCode C#, 2nd Project has no IntelliSense and Code Formatting

I'm currently reading Mark J. Prices' Book. But I came across a problem where I cannot find the OmniSharp: Select Project when finding it in the View | Command Palette. I guessed that's where the ...
Shiba's user avatar
  • 1
1 vote
1 answer
64 views

How to disable explicit type highlight in Visual Studio Code for C#?

I installed a new version of the C# extension for Visual Studio Code, and it started to provide highlights inline for explicit typing. How can I disable this without reverting the extension to an ...
bastardo's user avatar
0 votes
0 answers
74 views

How set C# omnisharp.json and .editorconfig in VScode?

3 month ago, I set "NewLinesForBracesInAccessors": false, in omnisharp.json. It can be solved. But today, I update VScode and C# expansion. omnisharp.json it can't solve. I want to set "...
wanzhi cui's user avatar
0 votes
0 answers
63 views

How to disable Omnisharp repeating warning popups?

In Visual Studio Code I have a popup that does not ends popping up: not sure what extension pops it up: ms-dotnettools.csharp or Omnisharp, I have in the output log [Warn - 12:10:45 PM] [...
serge's user avatar
  • 14.3k
1 vote
2 answers
688 views

C# formatting in VSCode since version 1.81 and C# Dev Kit

So, apparently there has been an update. And i don't really understand what changed because i don't really keep up to date with changelogs of VSCode, but my C# formatting that i used to define in user/...
Stbx's user avatar
  • 11
1 vote
0 answers
171 views

C# For Visual Studio Code - Acting as if not installed

I had installed the C# extension for Visual Studio Code for Microsoft. Everything was working fine for the longest time with getting intellisense, using OmniSharp commands. I installed another ...
Jim Campbell's user avatar
0 votes
0 answers
8 views

Unable to generate vs code settings for c# using omnisharp

When I open project without .vscode folder, omnisharp used to ask me to "Generate project assets, Yes, No, Don't ask again" And I pressed "Don't ask again" option, and found out ...
Kemsikov's user avatar
  • 492
0 votes
0 answers
1k views

Configure Omnisharp in Neovim

I am using lsp_zero to configure my lsp servers i am stuck with Omnisharp. i have this configuration file: local lsp = require('lsp-zero').preset({}) lsp.on_attach(function(client, bufnr) lsp....
Ernesto's user avatar
  • 129
0 votes
0 answers
226 views

Omnisharp commands are not found

I want to execute omnisharp command from command palette in VS Code, but I get an error that command not found. And thus no command is found: Restart omnisharp Select project Atc. Tried to update C# ...
iamnotkirill's user avatar
0 votes
0 answers
16 views

VSCode Omnisharp analyzing code twice for duplicate windows

I'm using VSCode for Unity development. I've noticed that when I open the project in VSCode, from Unity, it takes a long time to analyze my project. Is there some caching mechanism that I'm not ...
Ando's user avatar
  • 1,800
0 votes
1 answer
51 views

Is there a way to exclude infos from the problems count in Visual Studio Code

The problems tab in my Visual Studio Code installation has recently started showing a huge amount of "infos". I have no idea why it started doing this now. find it really distracting as ...
Bootlegger's user avatar
0 votes
0 answers
23 views

How to limit Omnisharp to loading a single project?

How to limit Omnisharp to loading a single project? I am using the Cake plugin for VSCode https://cakebuild.net/docs/integrations/editors/vscode/ In my set-up, I have a build.cake at the root of my ...
Wilfredo Velázquez-Rodríguez's user avatar
2 votes
1 answer
148 views

Visual Studio Code is detecting wrongly that I don't need a using C# / .NET Core

I'm using Visual Studio Code with C# Microsoft Extension. I also have the following setting to format and fix all issues each time I save a file: "editor.codeActionsOnSave": { "...
Ricardo Rocha's user avatar
0 votes
0 answers
191 views

Omnisharp 1.25.7 and VScode formatting error .razor files

On my mac m1, when I try to auto format .razor files, Omnisharp throws the following error: [Error - 16:20:32] Request textDocument/formatting failed. Message: Specified argument was out of the range ...
crio212's user avatar
1 vote
0 answers
267 views

Project-Specific Omnisharp Formatting Not Working

I'm using VSCode and have the official Microsoft C# extension installed. Can't seem to figure out how to edit Omnisharp's formatting rules. I have an 'omnisharp.json' file in the root of my directory, ...
Stochastis's user avatar
2 votes
1 answer
2k views

Omnisharp C# LSP with Neovim on Windows

As the title says I need help with setting up C# LSP with Omnisharp. I have already installed the latest version. I downloaded omnisharp-win-x64.zip from the releases page and extracted it to a custom ...
YJH16120's user avatar
  • 439
1 vote
1 answer
571 views

VS Code unable to format C# file using .editorconfig, `Format Document` doesn't seem to work

I have a C# project with VS Code, having ms-dotnettools.csharp and editorconfig.editorconfig extensions (among others). As per this post I installed npm install -g editorconfig. My .editorconfig file ...
Hung P.T.'s user avatar
  • 101
0 votes
0 answers
164 views

Omnisharp won't work inside of vscode for Unity

I want to use vscode as my editor to work with unity but intellisense refuses to work for anything Unity related, the C# extension keeps telling me that I need to install mono, but I have installed ...
Spilios Maderakis's user avatar
0 votes
1 answer
263 views

.NET not finding choco-installed Developer Pack reference assemblies

I've setup Unity for VSCode, but Omnisharp Log is showing C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1217,5): Error: The ...
Michael Moreno's user avatar
0 votes
2 answers
227 views

How to find and fix duplicate project entries in dotnet solution file?

I use Neovim with OmniSharp and it doesn't load any of 34 projects that are showing in VisualStudio 2022 OmniSharp logs showing this error [fail]: OmniSharp.WorkspaceInitializer The project ...
De Scar's user avatar
  • 61
0 votes
0 answers
68 views

vs code for unity on ubuntu, attemped to update project that is not loaded

im trying to get unity working on my ubuntu 22.10. i installed unity version 2021.3.19f1 and latest vs code version with C# extention and a few other extentions. but now im getting this log message ...
amiroof's user avatar
  • 31
1 vote
0 answers
52 views

Omnisharp server does not start with vs-code in a virtual workspace

I have already posted the question on github Issue, but unfortunately did not receive an answer. I would like to use Omnisharp with VS-Code to enable intellisense in a virtual workspace (files are ...
birdracoon's user avatar
1 vote
0 answers
281 views

Rename refactor doesn't work when the symbol is in a .razor file

I wanted to migrate to VS Code for my Blazor development, but this basic rename refactoring isn't working. My Visual Studio Code version is 1.71.1 If I hit F2 on a property: And that property is ...
zola25's user avatar
  • 1,821
2 votes
1 answer
831 views

VSCode Omnisharp is not working and code action is not available

Hello all: I am having issue getting omnisharp to work on vs code. it seems to load without any error messages but as soon as I click on an underlined code error appears as below: { "Type":...
timothy chan's user avatar
0 votes
0 answers
167 views

Why Omnisharp doesnt find a valid .Net SDK path installed by ASDF-VM?

My Problem Ok... I was installed .Net 6 by asdf-vm, and I used this commands above to put DOTNET_ROOT on PATH variable... Before I explain my problem, I use the follow methods to open my projects on ...
Messias Soares's user avatar
1 vote
1 answer
635 views

Visual Studio Code 1.73.1 trouble - object not defined

Initial Recently after upgrading to .Net 7 and Visual Studio Code 1.73.1 the IDE visual-studio-code shows error message like CS0518 Predefined type 'type' is not defined or imported CS0400 The type ...
surfmuggle's user avatar
  • 5,589
0 votes
0 answers
171 views

OmniSharp IntelliSense doesn't work in Visual Studio Code (Unity)

I was trying to set up VS Code to work with Unity for IntelliSense. I followed the instructions but OmniSharp seems to be misbehaving. Starting OmniSharp server at 1/21/2023, 4:57:42 PM Target: c:\...
Steve's user avatar
  • 1
1 vote
0 answers
66 views

VSCode C# extension is probably misbehaving with: Type 'x' already defines a member called 'y' with the same parameter types

VSCode C# extension seems to be misbehaving. I create a new interface namespace MySpace; public interface IMyInterface { List<string> GetGreetings(); } and I get the errors The namespace '...
acmoune's user avatar
  • 3,111
1 vote
1 answer
2k views

OmniSharp Partially Fails After Returning "No Symbol Found"

On Windows 10, I am trying to get C# v1.25.2 via OmniSharp working for Unity 2021.3.16f1. However, when I try to run Visual Studio Code, OmniSharp returns an error saying there was "No Symbol ...
JustAlex's user avatar
0 votes
0 answers
63 views

mono: command not found in VSCode

/Users/jaehunshim/.vscode/extensions/ms-dotnettools.csharp-1.24.4-darwin-arm64/.omnisharp/1.39.3-beta.27/run: line 19: mono: command not found The following error is showing when I'm trying to open ...
Jaehun Shim's user avatar
2 votes
1 answer
601 views

Omnisharp mono fails to load because of "No export was found for the contract 'ILoggerFactory'

This issue popped up just today as it was working fine just a day ago. I tried reinstalling mono, visual studio code, rebooting my computer, but nothing worked. This is on the m1 macbook if that makes ...
junius7even's user avatar
0 votes
0 answers
198 views

Project Loading Failed. Empty Project and Freshly installed VScode and Unity

I created an empty project and a C# script file .When I tried to open script in vs code project loading failed. This is my Omnisharp Output. ` Starting OmniSharp server at 12/17/2022, 8:14:59 AM ...
Barry Allen's user avatar
0 votes
1 answer
87 views

System.BadImageFormatException Error on VS Code Startup

I am in the process of getting everything I need to start learning C# and I've run into an issue. I am trying to use VS code as my editor but the IntelliSense isn't working. I think it's because ...
Panthers27's user avatar
0 votes
0 answers
56 views

VS Code Formatting - only selected features

I use VS Code for my C# code. Unfortunately, the formatter lets you define many details of your code, especially where spaces should go within a line, a function call, a conditional statement etc., ...
Ingmar's user avatar
  • 2,429
4 votes
1 answer
2k views

VS Code C# braces NOT on new lines

Can't find a way to make formatters put braces on the same line. The default formatter seems to completely ignore all the settings related to new lines. Some people recommended C# FixFormat extension, ...
Foresteam's user avatar
4 votes
4 answers
6k views

VSCode Omnisharp server A .NET 6 SDK for x86_64 was not found

Omnisharp does not seem to recognize my installed .NET sdk (version 6.0.408). I have tried manually adding this path via settings to Omnisharp: SDK path i.e.: C:\Program Files\dotnet\sdk\6.0.403 I ...
Geegee's user avatar
  • 41
1 vote
4 answers
2k views

VS Code Omnisharp Intellisense stopped working

I was working with VS Code and everything was fine, now out of nowhere there is a problem with the intellisense caused by Omnisharp in my opinion. I'm with Macbook Air M1 (2020) with Ventura 13.0.1, ...
ddxkalin's user avatar
0 votes
2 answers
289 views

Omnisharp is not loading for a Godot Engine Project

I'm trying to use C# in the Godot engine and Omnisharp is not cooperating. When I load the solution in Visual Studio Code I get the following error: Target: c:\Users\riley\Documents\Glasses\...
Riley's user avatar
  • 23
2 votes
1 answer
5k views

VS Code can't find Mono for OmniSharp

Edit Fixed in OmniSharp update 1.25.2 here TLDR; VS Code says it requires Mono when it's already installed Goal I am try to use VS Code with Unity and get intellisense to work in Code. Error Here's ...
GW.Rodriguez's user avatar
  • 1,181
0 votes
2 answers
169 views

C# (Visual Studio IDE / VSCode) - how to hide .NET types

When I begin to write type Visual Studio IDE and VSCode show not only the C# types but .Net types also (i.e: int - Int16, byte - Byte): Is it possible to hide .Net type intelliSense?
DevMis's user avatar
  • 646
3 votes
1 answer
880 views

Suppress RZ10012 analyser in blazor project

In my blazor project, I get hundreds of RZ10012 warnings: Found markup element with unexpected name 'Foo'. If this is intended to be a component, add a @using directive for its namespace.(RZ10012) ...
lonix's user avatar
  • 15.3k
1 vote
2 answers
487 views

Unity intellisense in VScode not working and Omnisharp is giving multiple errors and warnings

So, I'm kind of new to coding. I'm making a game in Unity and I just got to scripting. Unfortunately, VScode is not working with me. I've installed the latest C# extension in VScode and .NET version ...
RubberToe06's user avatar
0 votes
1 answer
38 views

C# How to make VSCode suggest values of same type first?

I am using VScode to write scripts in C# for unity. It really annoys me that Intellisense suggests based on some random algorithm when it would be much better to suggest based on value types. In the ...
Einxeld's user avatar
1 vote
6 answers
3k views

Omnisharp vscode - Unhandled exception. System.BadImageFormatException: Could not load file or assembly

I've been having a hard time running dotnet commands on an existing dotnet 6 application, on my m1 mac. I seem to have made it worse by downloading the dotnet SDK 6.0.401 in arm64 version, which has ...
BeniaminoBaggins's user avatar
0 votes
1 answer
150 views

VisualStudio Code(1.70.1 version) Issue or ? - No Compile Check for ".cs" files (C# Language)

Recently I updated my Visual Studio Code to a new version(1.70.1 - system setup), but it seems that I encounter some problems. So after the update, seems that there is no compile check for the cs ...
SilviuM's user avatar
  • 79
0 votes
1 answer
217 views

Where and how to include Using directives in C# and .NET6?

I am programming C# in Visual Studio Code with .NET 6. In .NET 6, an explicit main method is no longer necessary. Does anyone know how and where to include using directives like using System....
Z.J's user avatar
  • 301
4 votes
5 answers
3k views

VSCode Omnisharp ignores format settings in omnisharp.json

I've been working on a project in Unity for months now and have been using Omnisharp to format C# code. Just today, the formatter started formatting my code differently than before and I don't know ...
Jason McGinty's user avatar
1 vote
1 answer
8k views

Set up c# language server (omnisharp) for neovim to develop app with .NET Core 5.0.17

I been battling to set up a C# language server (omnisharp) for neovim. The main problem is that I gotta use .NET Core 5.0.17 and omnisharp no longer ships with mono and MSBuild tools (mentioned in ...
MrRobot's user avatar
  • 57

1
2 3 4 5
7