Closed roblourens closed 3 years ago
@roblourens To satisfy the global.json's pinned .NET SDK, you could install the 3.1.402 SDK or update the global.json's SDK "rollForward" setting so that it would roll up to .NET 5 (see https://docs.microsoft.com/en-us/dotnet/core/tools/global-json?tabs=netcore3x#rollforward).
I did, and it still had some problem, but I don't care that much about debugging that, the issue was just with the extension stealing my focus. But I just opened the workspace again and it didn't happen this time.
@roblourens Since this has been requested a few times before, we can add a setting to manage the behavior.
Okay, here is a use case. I tend to pull down source code from many repos and naturally I open them up with VS Code. I don't intend to write any code, rather, I just want syntax highlighting, searching, etc. If I have the proper SDK installed, yay. But really, I want to read the code rather than have a dozen tabs open in the browser looking at it on github.
So yes, the behavior is quite hide to avoid, the Omnisharp output just flickers with output errors - like I don't have the preview SDK installed, etc.
I really want a way to turn off Omnisharp - I get disable for workspace or uninstall on the extension marketplace, I'd like a "OmniSharp: Stop" right in VS Code to pair nicely with "Omnisharp: Restart".
Thank you for reading this 👍 and your ⌚ - have a wonderful day. Reece
you can now set "csharp.showOmnisharpLogOnError":false
to suppress opening the log window on errors
resolved in #4333
Issue Description
Omnisharp is failing to load my project, and tries for awhile. While it's working, it forces its output channel to open every time there is new output. So if I switch to the terminal and try to type something, the extension forces me back to the output channel.
Steps to Reproduce
Expected Behavior
Should never forcibly switch to the output channel
Actual Behavior
Does do that
Logs
OmniSharp log
C# log
Empty
Environment information
VSCode version: 1.53.0-insider C# Extension: 1.23.8
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json): Version: 5.0.101 Commit: d05174dc5a Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/5.0.101/ Host (useful for support): Version: 5.0.1 Commit: b02e13abab .NET SDKs installed: 2.0.0-preview2-006127 [/usr/local/share/dotnet/sdk] 3.1.201 [/usr/local/share/dotnet/sdk] 5.0.101 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.0-preview2-25319-02 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |al|ms-dynamics-smb|6.1.381323| |amethyst-theme|eamodio|4.1.0| |andromeda|EliverLara|1.7.0| |annotator|ryu1kn|1.0.0| |ayu|teabyii|0.20.1| |azure-account|ms-vscode|0.9.4| |azurecli|ms-vscode|0.5.0| |beautify|HookyQR|1.5.0| |better-search|travisthieman|0.0.6| |better-toml|bungcip|0.3.2| |browser-links|jrieken|0.0.7| |center-editor-window|kaiwood|2.3.0| |codespaces|GitHub|0.5.0| |csharp|ms-dotnettools|1.23.8| |debugger-for-chrome|msjsdiag|4.12.11| |disableligatures|CoenraadS|0.0.10| |duplicate|alqiu|0.0.2| |Egoist-One|Zyst|1.18.0| |elm|sbrink|0.26.0| |emojisense|bierner|0.8.0| |es-quotes|vilicvane|0.2.6| |fairyfloss|nopjmp|0.1.0| |genderdecoder|chrisalexander|0.0.4| |geo-data-viewer|RandomFractalsInc|2.3.0| |gif-player|bierner|0.0.2| |github-sharp-theme|joaomoreno|1.4.0| |gitlens-insiders|eamodio|2021.1.404| |gulpsymbols|apazureck|0.1.1| |helloworld-sample|alexr00|0.0.1| |hexeditor|ms-vscode|1.3.0| |horizon-theme-vscode|jolaleye|1.2.4| |html-preview-vscode|tht13|0.2.5| |incrementor|nmsmith89|1.0.3| |js-debug-nightly|ms-vscode|2020.12.1817| |jupyter|ms-toolsai|2020.12.414227025| |kusto-syntax-highlighting|josin|1.0.1| |kustovscode|seanmcbreen|0.0.4| |language-haskell|justusadam|3.3.0| |language-x86-64-assembly|13xforever|2.3.0| |laserwave|jaredkent|1.2.11| |linux-themes|SolarLiner|1.0.1| |Lisp|mattn|0.1.11| |lit-html|bierner|1.11.1| |live-server-preview|negokaz|0.1.4| |lua-debug|actboy168|1.30.1| |markdown-all-in-one|yzhang|3.4.0| |markdown-preview-github-styles|bierner|0.1.6| |material-icon-theme|PKief|4.4.0| |material-palenight-theme|whizkydee|2.0.1| |messiahsl|atyuwen|1.8.2| |mock-debug|andreweinand|0.45.3| |night-owl|sdras|2.0.0| |noctis|liviuschera|10.39.1| |nord-visual-studio-code|arcticicestudio|0.15.0| |npm-intellisense|christian-kohler|1.3.1| |npm-link-status|roblourens|0.0.4| |output-colorizer|IBM|0.1.2| |php-debug|felixfbecker|1.14.5| |polacode|pnp|0.3.4| |postscript|mxschmitt|1.0.1| |prettier-vscode|esbenp|5.8.0| |python|ms-python|2020.12.424452561| |quills|chrisburgin95|1.0.1| |rainbow-csv|mechatroner|1.8.0| |remote-containers|ms-vscode-remote|0.154.1| |remote-ssh|ms-vscode-remote|0.62.0| |remote-ssh-edit|ms-vscode-remote|0.62.0| |remote-wsl|ms-vscode-remote|0.52.0| |rest-book|tanha|0.2.2| |robtestext3|roblourens|2.0.4| |rust|rust-lang|0.7.8| |sass-indented|robinbentley|1.5.1| |sass-indented|syler|1.8.13| |searchdocs|roblourens|0.0.3| |seti-icons|qinjia|0.1.3| |shades-of-purple|ahmadawais|6.12.0| |svg|jock|1.4.3| |synthwave-vscode|RobbOwen|0.1.8| |template-string-converter|meganrogge|0.4.5| |Theme-1337|ms-vscode|0.1.4| |Theme-3024Kit|ms-vscode|0.1.4| |Theme-Afterglow|gerane|0.0.5| |Theme-azure|gerane|0.0.5| |theme-dracula|dracula-theme|2.22.3| |Theme-Earthsong|gerane|0.0.5| |Theme-earthsong-light|gerane|0.0.5| |theme-etinum|euntaik|0.4.0| |Theme-FlatlandMonokai|gerane|0.0.6| |theme-karyfoundation-themes|karyfoundation|20.0.3| |theme-lifeonmars|jwoelper|0.8.2| |theme-material-theme|jprestidge|1.0.1| |Theme-MaterialKit|ms-vscode|0.1.4| |theme-monokaiMega|jaszhix|4.0.2| |Theme-PredawnKit|ms-vscode|0.1.4| |theme-sapphire|Tyriar|0.9.1| |theme-summerfruit|asethi77|0.0.1| |Theme-TomorrowKit|ms-vscode|0.1.4| |tsl-problem-matcher|eamodio|0.3.1| |typescript-javascript-grammar|ms-vscode|0.0.55| |unittest-navigate|roblourens|0.0.2| |vetur|octref|0.31.3| |voodoo|liamsheppard|0.10.0| |vsc-community-material-theme|Equinusocio|1.4.2| |vsc-material-theme|Equinusocio|33.1.2| |vsc-material-theme-icons|equinusocio|1.2.2| |vsc-travis-ci-status|felixrieseberg|1.1.0| |vscode-dimmer|hoovercj|2.1.0| |vscode-docker|ms-azuretools|1.9.0| |vscode-dotnet-runtime|ms-dotnettools|1.0.0| |vscode-eslint|dbaeumer|2.1.14| |vscode-flatland-icon-theme|gebilaoxiong|0.0.6| |vscode-ghc-mod|hoovercj|1.2.0| |vscode-github-issue-notebooks|ms-vscode|0.0.58| |vscode-hexdump|slevesque|1.8.1| |vscode-js-profile-flame|ms-vscode|0.0.13| |vscode-jumpy|wmaurer|0.3.1| |vscode-markdown-notebook|ms-vscode|0.0.13| |vscode-nand2tetris-hdl|roblourens|0.1.1| |vscode-npm-script|eg2|0.3.13| |vscode-opennewinstance|chrisdias|0.0.7| |vscode-pull-request-github-insiders|GitHub|2021.1.4862| |vscode-pylance|ms-python|2020.12.2| |vscode-remote-extensionpack|ms-vscode-remote|0.20.0| |vscode-sort-json|richie5um2|1.19.1| |vscode-stocks|roblourens|0.1.1| |vscode-styled-components|jpoissonnier|1.4.1| |vscode-svgviewer|cssho|2.0.0| |vscode-test-explorer|hbenl|2.19.3| |vscode-theme-onedark|akamud|2.2.3| |vscode-versionlens|pflannery|1.0.9| |vscode-workspacecontains-canary|roblourens|0.0.2| |vscode-yaml|redhat|0.13.0| |vscodeintellicode|VisualStudioExptTeam|1.2.10| |VSinder|benawad|1.19.0| |vsliveshare|ms-vsliveshare|1.0.3375| |winteriscoming|johnpapa|1.4.3| |xml|DotJoshJohnson|2.5.1| |yo|samverschueren|0.9.3|;