OmniSharp with Sublime Text doesn't seem to work OmniSharpServer

I am trying to get ASP.NET MVC5 projects working in Sublime Text. I installed both the OmniSharp and Kulture add-on text plugins.

However, it looks like the OmniSharp server is running, since I cannot get any meaningful autocomplete options. I followed all the steps in this guide (except for one of the .sln files, since I do not have .sln , and .proj files are automatically found in the documentation files).

In addition, the Rename / Go To Definition options do not work either. Do I need to somehow start the OmniSharp server with Sublime text?

When I install the OmniSharp plugin in Atom ( http://atom.io ), I need to manually run the OmniSharp plugin ( ctrl + alt + o ), and then I get all the functionality as expected.

So, I'm just wondering if there is something obvious that I am missing?

+5
source share
2 answers

I delved into the plugin code and found that OmniSharpServer only starts when I open a C # file. See server_runner.py in the OmniSharpSublime repository.

I changed the code to test the solution or project.json in the current view. Try the following:

 import sublime_plugin from ..lib import helpers from ..lib import omnisharp class OmniSharpServerRunnerEventListener(sublime_plugin.EventListener): def on_activated(self, view): if helpers.is_csharp(view) or helpers.current_solution_or_project_json_folder(view): omnisharp.create_omnisharp_server_subprocess(view) 
+2
source

Asp.Net5 project support is currently not packaged.

However, you can work by cloning the Roslyn popup window branch ( https://github.com/OmniSharp/omnisharp-sublime/tree/roslyn ) into your elevated plugins folder.

+1
source

Source: https://habr.com/ru/post/1214416/


All Articles