-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59092 from dotnet/merges/main-to-features/RawStri…
…ngLiterals Merge main to features/RawStringLiterals
- Loading branch information
Showing
108 changed files
with
847 additions
and
1,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/dotnet/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] .NET version: 6.0, 5.0, 3.1, 2.1 | ||
ARG VARIANT="6.0" | ||
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT} | ||
|
||
# Set up machine requirements to build the repo | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends cmake llvm-9 clang-9 \ | ||
build-essential python curl git lldb-6.0 liblldb-6.0-dev \ | ||
libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev \ | ||
libssl-dev libnuma-dev libkrb5-dev zlib1g-dev ninja-build | ||
|
||
# Install V8 Engine | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN curl -sSL "https://netcorenativeassets.blob.core.windows.net/resource-packages/external/linux/chromium-v8/v8-linux64-rel-8.5.183.zip" -o ./v8.zip \ | ||
&& unzip ./v8.zip -d /usr/local/v8 \ | ||
&& echo $'#!/usr/bin/env bash\n\ | ||
"/usr/local/v8/d8" --snapshot_blob="/usr/local/v8/snapshot_blob.bin" "$@"\n' > /usr/local/bin/v8 \ | ||
&& chmod +x /usr/local/bin/v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/dotnetcore | ||
{ | ||
"name": "C# (.NET 6)", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"VARIANT": "6.0", | ||
} | ||
}, | ||
"settings": { | ||
"files.associations": { | ||
"*.csproj": "msbuild", | ||
"*.fsproj": "msbuild", | ||
"*.globalconfig": "ini", | ||
"*.manifest": "xml", | ||
"*.nuspec": "xml", | ||
"*.pkgdef": "ini", | ||
"*.projitems": "msbuild", | ||
"*.props": "msbuild", | ||
"*.resx": "xml", | ||
"*.rsp": "Powershell", | ||
"*.ruleset": "xml", | ||
"*.settings": "xml", | ||
"*.shproj": "msbuild", | ||
"*.slnf": "json", | ||
"*.targets": "msbuild", | ||
"*.vbproj": "msbuild", | ||
"*.vsixmanifest": "xml", | ||
"*.vstemplate": "xml", | ||
"*.xlf": "xml", | ||
"*.yml": "azure-pipelines" | ||
}, | ||
// ms-dotnettools.csharp settings | ||
"omnisharp.defaultLaunchSolution": "Compilers.sln", | ||
"omnisharp.disableMSBuildDiagnosticWarning": true, | ||
"omnisharp.enableEditorConfigSupport": true, | ||
"omnisharp.enableImportCompletion": true, | ||
"omnisharp.enableRoslynAnalyzers": true, | ||
"omnisharp.useModernNet": true, | ||
"omnisharp.enableAsyncCompletion": true, | ||
// ms-vscode.powershell settings | ||
"powershell.promptToUpdatePowerShell": false, | ||
"powershell.integratedConsole.showOnStartup": false, | ||
"powershell.startAutomatically": false, | ||
// ms-azure-devops.azure-pipelines settings | ||
"azure-pipelines.customSchemaFile": ".vscode/dnceng-schema.json" | ||
}, | ||
"extensions": [ | ||
"ms-dotnettools.csharp", | ||
"EditorConfig.EditorConfig", | ||
"ms-vscode.powershell", | ||
"tintoy.msbuild-project-tools", | ||
"ms-azure-devops.azure-pipelines" | ||
], | ||
"postCreateCommand": "${containerWorkspaceFolder}/restore.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"run": [ | ||
{ | ||
"tool": "require-dotnetcoresdk" | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"ms-dotnettools.csharp", | ||
"EditorConfig.EditorConfig", | ||
"ms-vscode.powershell", | ||
"tintoy.msbuild-project-tools", | ||
"ms-azure-devops.azure-pipelines" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,38 @@ | ||
{ | ||
"files.associations": { | ||
"**/eng/pipelines/*.yml": "azure-pipelines" | ||
"*.csproj": "msbuild", | ||
"*.fsproj": "msbuild", | ||
"*.globalconfig": "ini", | ||
"*.manifest": "xml", | ||
"*.nuspec": "xml", | ||
"*.pkgdef": "ini", | ||
"*.projitems": "msbuild", | ||
"*.props": "msbuild", | ||
"*.resx": "xml", | ||
"*.rsp": "Powershell", | ||
"*.ruleset": "xml", | ||
"*.settings": "xml", | ||
"*.shproj": "msbuild", | ||
"*.slnf": "json", | ||
"*.targets": "msbuild", | ||
"*.vbproj": "msbuild", | ||
"*.vsixmanifest": "xml", | ||
"*.vstemplate": "xml", | ||
"*.xlf": "xml", | ||
"*.yml": "azure-pipelines" | ||
}, | ||
// ms-dotnettools.csharp settings | ||
"omnisharp.defaultLaunchSolution": "Compilers.sln", | ||
"omnisharp.disableMSBuildDiagnosticWarning": true, | ||
"omnisharp.enableEditorConfigSupport": true, | ||
"omnisharp.enableImportCompletion": true, | ||
"omnisharp.enableRoslynAnalyzers": true, | ||
"omnisharp.useModernNet": true, | ||
"omnisharp.enableAsyncCompletion": true, | ||
// ms-vscode.powershell settings | ||
"powershell.promptToUpdatePowerShell": false, | ||
"powershell.integratedConsole.showOnStartup": false, | ||
"powershell.startAutomatically": false, | ||
// ms-azure-devops.azure-pipelines settings | ||
"azure-pipelines.customSchemaFile": ".vscode/dnceng-schema.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/EditorFeatures/Core/ExternalAccess/UnitTesting/Api/UnitTestingGlobalOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Composition; | ||
using Microsoft.CodeAnalysis.Host.Mef; | ||
using Microsoft.CodeAnalysis.Options; | ||
using Microsoft.CodeAnalysis.Remote; | ||
|
||
namespace Microsoft.CodeAnalysis.ExternalAccess.UnitTesting.Api | ||
{ | ||
[Export(typeof(UnitTestingGlobalOptions)), Shared] | ||
internal sealed class UnitTestingGlobalOptions | ||
{ | ||
private readonly IGlobalOptionService _globalOptions; | ||
|
||
[ImportingConstructor] | ||
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] | ||
public UnitTestingGlobalOptions(IGlobalOptionService globalOptions) | ||
{ | ||
_globalOptions = globalOptions; | ||
} | ||
|
||
public bool IsServiceHubProcessCoreClr | ||
=> _globalOptions.GetOption(RemoteHostOptions.OOPCoreClrFeatureFlag); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.