From 5877d819b55021d88bfcfe90ef15171b2fb22482 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Fri, 4 May 2018 01:41:50 -0700 Subject: [PATCH 1/4] Change log updates for 1.15 --- CHANGELOG.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22e1efff98..d09d5aaa0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Known Issues in 1.14.0 +## Known Issues in 1.15.0 * There currently is no completion support for package references in csproj files. ([#1156](https://github.com/OmniSharp/omnisharp-vscode/issues/1156)) * As an alternative, consider installing the [MSBuild Project Tools](https://marketplace.visualstudio.com/items?itemName=tintoy.msbuild-project-tools) extension by @tintoy. @@ -8,6 +8,7 @@ #### Debugger * New features: + * Adds support for [Source Link](https://aka.ms/SourceLinkSpec), Symbol Servers and other more advanced symbol options ([#373](https://github.com/OmniSharp/omnisharp-vscode/issues/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](https://github.com/OmniSharp/omnisharp-vscode/wiki/Debugging-into-the-.NET-Framework-itself). @@ -15,10 +16,16 @@ * Adds a Code Lens indicator for running and debugging all tests in a class. ([#420](https://github.com/OmniSharp/omnisharp-vscode/issues/420), PR: [#1961](https://github.com/OmniSharp/omnisharp-vscode/pull/1961); PR: [omnisharp-roslyn#1089](https://github.com/OmniSharp/omnisharp-roslyn/pull/1089)) * 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](https://github.com/OmniSharp/omnisharp-vscode/issues/2199)) * Fixes async call stacks with the .NET Core 2.1 runtime. ([#1892](https://github.com/OmniSharp/omnisharp-vscode/issues/1892)) * Fixes the debugger's browser launch code when launching projects configured to use Application Insights. ([2177](https://github.com/OmniSharp/omnisharp-vscode/issues/2177)) +#### Editor + +* Fixed regression where the "Generate Type in New File" code action would create an empty file. ([#2112](https://github.com/OmniSharp/omnisharp-vscode/issues/2112), PR: [omnisharp-roslyn#1143](https://github.com/OmniSharp/omnisharp-roslyn/pull/1143)) +* Made several improvments to the display of tooltips in Signature Help. ([#1940](https://github.com/OmniSharp/omnisharp-vscode/issues/1940), PR: [#1958](https://github.com/OmniSharp/omnisharp-vscode/pull/1958)) + #### Options * "omnisharp.path": This option has been updated to enable the user to specify different versions of OmniSharp, including prerelease versions. ([#1909](https://github.com/OmniSharp/omnisharp-vscode/issues/1909), PR: [#2039](https://github.com/OmniSharp/omnisharp-vscode/pull/2039)) @@ -36,9 +43,45 @@ * "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](https://github.com/OmniSharp/omnisharp-vscode/issues/2110) + +#### Project System + +* Several common globbing patterns are now excluded by default when OmniSharp scans for `*.csproj`, `*.cake`, or `*.csx` files to load. The deafault patterns are `**/node_modules/**/*`, `**/bin/**/*`, `**/obj/**/*`, `**/.git/**/*`. ([omnisharp-roslyn#896](https://github.com/OmniSharp/omnisharp-roslyn/issues/896), PR: [omnisharp-roslyn#1161](https://github.com/OmniSharp/omnisharp-roslyn/pull/1161)) _(Contributed by [@filipw](https://github.com/filipw))_ +* The list of globbing patterns that are excluded by OmniSharp can be customized in an `omnisharp.json` file list so. + ```JSON + { + "systemExcludeSearchPatterns": [ + "**/test/**/*" + ], + "excludeSearchPatterns": [ + "**/local/**/*" + ] + } + ``` + + For more details on configuring OmniSharp see [Configuration Options](https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options) at the [omnisharp-roslyn](https://github.com/OmniSharp/omnisharp-roslyn) repo. ([omnisharp-roslyn#896](https://github.com/OmniSharp/omnisharp-roslyn/issues/896), PR: [omnisharp-roslyn#1161](https://github.com/OmniSharp/omnisharp-roslyn/pull/1161)) _(Contributed by [@filipw](https://github.com/filipw))_ +* Improved handling of projects with XAML files. ([#2173](https://github.com/OmniSharp/omnisharp-vscode/issues/2173), PR: [omnisharp-roslyn#1157](https://github.com/OmniSharp/omnisharp-roslyn/pull/1157)) +* MSBuild is now properly located on Windows for Visual Studio 2017 previews. ([omnisharp-roslyn#1166](https://github.com/OmniSharp/omnisharp-roslyn/pull/1166)) _(Contributed by [@rainersigwald](https://github.com/rainersigwald))_ + +#### Scripting + +* It is now possible to define the default target framework for C# scripts in an `omnisharp.json` file. + + ```JSON + { + "script": { + "defaultTargetFramework": "netcoreapp2.0" + } + } + ``` + + (PR: [omnisharp-roslyn#1154](https://github.com/OmniSharp/omnisharp-roslyn/pull/1154)) _(Contributed by [@filipw](https://github.com/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](https://github.com/OmniSharp/omnisharp-vscode/issues/2146), PR: [#2133](https://github.com/OmniSharp/omnisharp-vscode/pull/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: @@ -46,9 +89,13 @@ * 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](https://github.com/OmniSharp/omnisharp-vscode/issues/420), PR: [#1961](https://github.com/OmniSharp/omnisharp-vscode/pull/1961)) + #### Misc -* Enables suppressing the "Some projects have trouble loading" popup using the `omnisharp.disableMSBuildDiagnosticWarning` option ([#2110]https://github.com/OmniSharp/omnisharp-vscode/issues/2110) +* Fixed script for creating offline VSIXs. ([#2137](https://github.com/OmniSharp/omnisharp-vscode/issues/2137), PR: [#2138](https://github.com/OmniSharp/omnisharp-vscode/pull/2138)) ## 1.14.0 (February 14, 2018) From feb634f093218a917c9f7c793d5e21559634eaee Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Fri, 4 May 2018 01:58:32 -0700 Subject: [PATCH 2/4] Further changelog updates --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d09d5aaa0c..d89f19bd74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,6 @@ * 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](https://github.com/OmniSharp/omnisharp-vscode/wiki/Debugging-into-the-.NET-Framework-itself). * 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](https://github.com/OmniSharp/omnisharp-vscode/issues/2017)) - * Adds a Code Lens indicator for running and debugging all tests in a class. ([#420](https://github.com/OmniSharp/omnisharp-vscode/issues/420), PR: [#1961](https://github.com/OmniSharp/omnisharp-vscode/pull/1961); PR: [omnisharp-roslyn#1089](https://github.com/OmniSharp/omnisharp-roslyn/pull/1089)) * Bug fixes: @@ -91,7 +90,7 @@ #### 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](https://github.com/OmniSharp/omnisharp-vscode/issues/420), PR: [#1961](https://github.com/OmniSharp/omnisharp-vscode/pull/1961)) +* 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](https://github.com/OmniSharp/omnisharp-vscode/issues/420), PRs: [#1961](https://github.com/OmniSharp/omnisharp-vscode/pull/1961), [omnisharp-roslyn#1089](https://github.com/OmniSharp/omnisharp-roslyn/pull/1089) #### Misc From 506688b07de502bfbe1c349bf15186d1999af9c9 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Fri, 4 May 2018 01:58:42 -0700 Subject: [PATCH 3/4] Update readme for 1.15 --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 131ffb46f8..2f94cd9bf2 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,17 @@ The C# extension is powered by [OmniSharp](https://github.com/OmniSharp/omnishar * [Documentation](https://code.visualstudio.com/docs/languages/csharp) * [Video Tutorial compiling with .NET Core](https://channel9.msdn.com/Blogs/dotnet/Get-started-VSCode-Csharp-NET-Core-Windows) -### What's New in 1.14.0 - -* Support for C# 7.2 -* Debugger support for extracting source files embedded in PDBs -* Preliminary support for Linux ARM debugging -* Improved Symbol/Documentation text display -* Addressed problems with projects not being refreshed by OmniSharp after a package restore -* Added option to disable warning about project.json deprecation +### What's New in 1.15.0 + +* Debugger support for Source Link and Symbol Servers +* Added support for downloading and launching prerelease versions of the OmniSharp server +* Improved the status bar display for OmniSharp Server and selected project information +* Added CodeLens for running and debugging all tests in a test class +* Performance improvements when OmniSharp scans for projects +* Improvements for projects containing XAML files * Many other bug fixes! -See our [change log](https://github.com/OmniSharp/omnisharp-vscode/blob/v1.14.0/CHANGELOG.md) for all of the updates. +See our [change log](https://github.com/OmniSharp/omnisharp-vscode/blob/v1.15.0/CHANGELOG.md) for more detail. ### Supported Operating Systems for Debugging @@ -47,16 +47,18 @@ See our [change log](https://github.com/OmniSharp/omnisharp-vscode/blob/v1.14.0/ This list is currently the same as the x64 .NET Core 2.0 operating systems (see [.NET Core list](https://github.com/dotnet/core/blob/master/roadmap.md#net-core-20---supported-os-versions)). Note that other Linux distributions will likely work as well as long as they include glibc, OpenSSL 1.0, and libunwind. ### Found a Bug? + Please file any issues at https://github.com/OmniSharp/omnisharp-vscode/issues. ### Debugging + The C# extension now supports basic debugging capabilities! See http://aka.ms/vscclrdebugger for details. ### Development First install: -* Node.js (newer than 4.3.1) -* Npm (newer 2.14.12) +* Node.js (8.11.1 or later) +* Npm (5.6.0 or later) To **run and develop** do the following: From f809cf21d95d4a4ab1e9c6478bf378c12adc0993 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Fri, 4 May 2018 02:06:52 -0700 Subject: [PATCH 4/4] Update extension version for 1.15.0-beta6 and fix deprecated category --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b4be94fd45..b25fd22d57 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "csharp", "publisher": "ms-vscode", - "version": "1.15.0-beta5", + "version": "1.15.0-beta6", "description": "C# for Visual Studio Code (powered by OmniSharp).", "displayName": "C#", "author": "Microsoft Corporation", @@ -17,7 +17,7 @@ }, "categories": [ "Debuggers", - "Languages", + "Programming Languages", "Linters", "Snippets" ],