Skip to content

[Question] Preventing omnisharp from changing solution file automatically #869

@sim590

Description

@sim590

I have this in a .vim file:

let g:OmniSharp_start_server = 0
let g:OmniSharp_port = 2000

let s:OmnisharpStarted = 0
fun s:StartServer()
  if s:OmnisharpStarted == 0
    OmniSharpStartServer C:\path\to\my\project.sln
    let s:OmnisharpStarted = 1
  endif
endf

augroup OmnisharpServer
  autocmd!
  autocmd BufRead,BufNewFile *.cs call s:StartServer()
augroup END

And whenever I navigate to another csharp file and I open the log with OmniSharpOpenLog, then the solution file displayed as TARGET in the log is not the same as the one that I configured in my .vim file. It is correctly configured if I open the log in the first buffer that I opened. But the second buffer seems to change the requested solution for the server. I want that to stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions