Skip to content

v1.15.0

Choose a tag to compare

@DustinCampbell DustinCampbell released this 10 May 18:32
· 6207 commits to release since this release
e2297b7

What's New in 1.15

Debugger

  • New features:

    • Adds support for Source Link, Symbol Servers and other more advanced symbol options (#373)
    • Adds launch.json option to suppress Just-In-Time compiler optimizations.
    • Due to the previous two items and work from the .NET Team, it is now possible to easily debug into ASP.NET itself in projects running against .NET Core 2.1. Instructions are in the wiki.
    • Adds support for pulling in environment variables from ${cwd}/Properties/launchSettings.json. This means that if you add environment variable configuration to your launchSettings.json file, they will now be used when you start your app from Visual Studio Code like they previously would be used from the command line (dotnet run), and from Visual Studio. (#2017)
  • Bug fixes:

    • On Linux, this reduces the native dependencies of the debugger to match the .NET Core 2.1 runtime. The Linux .NET Core 2.1 runtime reduced its native dependencies over all the previous versions, but the debugger still had the same dependencies as .NET Core 2.0. With this fix, the debugger will now continue to work on Linux after installing the .NET Core runtime and nothing else. (#2199)
    • Fixes async call stacks with the .NET Core 2.1 runtime. (#1892)
    • Fixes the debugger's browser launch code when launching projects configured to use Application Insights. (2177)

Editor

  • Fixed regression where the "Generate Type in New File" code action would create an empty file. (#2112, PR: omnisharp-roslyn#1143)
  • Made several improvments to the display of tooltips in Signature Help. (#1940, PR: #1958)

Options

  • "omnisharp.path": This option has been updated to enable the user to specify different versions of OmniSharp, including prerelease versions. (#1909, PR: #2039)

    Possible values for this option are:

    • <Path to the omnisharp executable>: Use a local copy of OmniSharp. The value must point directly to the OmniSharp executable. This is typically the build output directory of the omnisharp-roslyn project on the current machine, for example, C:/omnisharp-roslyn/artifacts/publish/OmniSharp.Stdio/win7-x64/OmniSharp.exe.
    • latest: Use the latest CI build from omnisharp-roslyn.
    • <version>: Use a specific version of OmniSharp. Example: 1.29.2-beta.60
      If "omnisharp.path" is not set, the defalut version of OmniSharp for the current release of C# for VS Code is used.
  • "omnisharp.useGlobalMono": This option replaces the old "omnisharp.useMono" option and controls whether or not OmniSharp will be launched with a globally-installed version of Mono. (PR: #2244)

    There are three possible values:

    • "auto": Automatically launch OmniSharp with mono if version 5.2.0 or greater is available on the PATH.
    • "always": Always launch OmniSharp with mono. If version 5.2.0 or greater is not available on the PATH, an error will be printed.
    • "never": Never launch OmniSharp on a globally-installed Mono.
  • It is now possible to suppress the "Some projects have trouble loading" popup using the omnisharp.disableMSBuildDiagnosticWarning option. (#2110

Project System

Scripting

  • It is now possible to define the default target framework for C# scripts in an omnisharp.json file.

    {
      "script": {
        "defaultTargetFramework": "netcoreapp2.0"
      }
    }

    (PR: omnisharp-roslyn#1154) (Contributed by @filipw)

Status Bar

  • Splits the OmniSharp status bar item into two parts, both of which appear on the left side of VS Code's status bar and have specific responsibilities. (#2146, PR: #2133)

    • OmniSharp Server info:
      • Displays the current state of the OmniSharp server, such as Downloading, Installing, etc. The flame icon is green when the server is initialized and running properly, or red if there is an error.
    • Selected Project info:
      • Displays the name of the selected project regardless of the currently active document.
      • If a project is already selected, it displays the name of the selected project. Clicking on it displays a menu to switch to other projects in the workspace.
      • If there are multiple possible launch targets, it displays 'Select Project'. Clicking on it displays a menu to select one.

Testing

  • Added "debug all tests" and "run all tests" to the CodeLens that appears above test classes to allow running or debugging all tests in a class. (#420, PRs: #1961, omnisharp-roslyn#1089

Misc

  • Fixed script for creating offline VSIXs. (#2137, PR: #2138)