dotnet / dotnet/roslynator

Updating omnisharp.json doesn't respect %OMNISHARPHOME%

Open
#705 2 comments 0 reactions 0 assignees View on GitHub
Help Wanted VS Code
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

**Product and Version Used**:
v3.0.0 from Visual Studio Marketplace
**Steps to Reproduce**:
Install Roslynator and use Visual Studio Code with environment variable `%OMNISHARPHOME%` set to any location besides `~/`
**Actual Behavior**:
Extension updates `~/.omnisharp/omnisharp.json`
**Expected Behavior**:
Extension updates `%OMNISHARPHOME%/.omnisharp/omnisharp.json`

Omnisharp added this option back in https://github.com/OmniSharp/omnisharp-roslyn/pull/1317
I noticed it because I use a portable install of VSCode on a flash drive and have my data folder on the flash drive. Roslynator has been creating a `.omnisharp/omnisharp.json` file in my local computer account folder on every launch. I've already put the appropriate settings in my actual `omnisharp.json` file

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.