Skip to content

Commit 739f45e

Browse files
author
Andrew Hall
authored
Merge pull request #57686 from ryzngard/features/rename_ui
This adds the most basic implementation of the new rename UI. This PR is mostly to move code around and start a very ugly but workable demo. None of the behavior in the new UI is final, but it should make subsequent code reviews easier to parse in chunks as we modify the behavior.
2 parents e2012f1 + 450167f commit 739f45e

File tree

166 files changed

+4827
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+4827
-832
lines changed

Roslyn.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CSha
500500
EndProject
501501
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests", "src\Workspaces\Remote\ServiceHubTest\Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests.csproj", "{8D830CBB-CA6E-47D8-9FB8-9230AAD272F3}"
502502
EndProject
503+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.New.IntegrationTests", "src\VisualStudio\IntegrationTest\New.IntegrationTests\Microsoft.VisualStudio.LanguageServices.New.IntegrationTests.csproj", "{6272739B-31E4-483E-A3A5-2ABB5040ABF0}"
504+
EndProject
503505
Global
504506
GlobalSection(SharedMSBuildProjectFiles) = preSolution
505507
src\Analyzers\VisualBasic\CodeFixes\VisualBasicCodeFixes.projitems*{0141285d-8f6c-42c7-baf3-3c0ccd61c716}*SharedItemsImports = 5
@@ -1303,6 +1305,10 @@ Global
13031305
{8D830CBB-CA6E-47D8-9FB8-9230AAD272F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
13041306
{8D830CBB-CA6E-47D8-9FB8-9230AAD272F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
13051307
{8D830CBB-CA6E-47D8-9FB8-9230AAD272F3}.Release|Any CPU.Build.0 = Release|Any CPU
1308+
{6272739B-31E4-483E-A3A5-2ABB5040ABF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1309+
{6272739B-31E4-483E-A3A5-2ABB5040ABF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
1310+
{6272739B-31E4-483E-A3A5-2ABB5040ABF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
1311+
{6272739B-31E4-483E-A3A5-2ABB5040ABF0}.Release|Any CPU.Build.0 = Release|Any CPU
13061312
EndGlobalSection
13071313
GlobalSection(SolutionProperties) = preSolution
13081314
HideSolutionNode = FALSE
@@ -1531,6 +1537,7 @@ Global
15311537
{8FCD1B85-BE63-4A2F-8E19-37244F19BE0F} = {55A62CFA-1155-46F1-ADF3-BEEE51B58AB5}
15321538
{2B7DC612-1B37-41F7-BE31-4D600930EAC9} = {32A48625-F0AD-419D-828B-A50BDABA38EA}
15331539
{8D830CBB-CA6E-47D8-9FB8-9230AAD272F3} = {55A62CFA-1155-46F1-ADF3-BEEE51B58AB5}
1540+
{6272739B-31E4-483E-A3A5-2ABB5040ABF0} = {CC126D03-7EAC-493F-B187-DCDEE1EF6A70}
15341541
EndGlobalSection
15351542
GlobalSection(ExtensibilityGlobals) = postSolution
15361543
SolutionGuid = {604E6B91-7BC0-4126-AE07-D4D2FEFC3D29}

azure-pipelines-integration-corehost.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ pr:
1818
- features/*
1919
- demos/*
2020

21+
variables:
22+
- name: XUNIT_LOGS
23+
value: $(Build.SourcesDirectory)\artifacts\log\$(_configuration)
24+
2125
jobs:
2226
- job: VS_Integration_CoreHost
2327
pool:

azure-pipelines-integration-lsp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ pr:
1818
- features/*
1919
- demos/*
2020

21+
variables:
22+
- name: XUNIT_LOGS
23+
value: $(Build.SourcesDirectory)\artifacts\log\$(_configuration)
24+
2125
jobs:
2226
- job: VS_Integration_LSP
2327
pool:

azure-pipelines-integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ pr:
1414
- features/*
1515
- demos/*
1616

17+
variables:
18+
- name: XUNIT_LOGS
19+
value: $(Build.SourcesDirectory)\artifacts\log\$(_configuration)
20+
1721
jobs:
1822
- job: VS_Integration
1923
pool:

docs/compilers/CSharp/Compiler Breaking Changes - DotNet 6.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,3 @@ These are _function_type_conversions_.
108108
}
109109
}
110110
```
111-

docs/compilers/CSharp/Compiler Breaking Changes - DotNet 7.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,25 @@
3434
public CustomHandler(int literalLength, int formattedCount, C c) {}
3535
}
3636
```
37+
38+
39+
3. In Visual Studio 17.1, `ref`/`ref readonly`/`in`/`out` are not allowed to be used on return/parameters of a method attributed with `UnmanagedCallersOnly`.
40+
https://github.com/dotnet/roslyn/issues/57025
41+
42+
```cs
43+
using System.Runtime.InteropServices;
44+
[UnmanagedCallersOnly]
45+
static ref int M1() => throw null; // error CS8977: Cannot use 'ref', 'in', or 'out' in a method attributed with 'UnmanagedCallersOnly'.
46+
47+
[UnmanagedCallersOnly]
48+
static ref readonly int M2() => throw null; // error CS8977: Cannot use 'ref', 'in', or 'out' in a method attributed with 'UnmanagedCallersOnly'.
49+
50+
[UnmanagedCallersOnly]
51+
static void M3(ref int o) => throw null; // error CS8977: Cannot use 'ref', 'in', or 'out' in a method attributed with 'UnmanagedCallersOnly'.
52+
53+
[UnmanagedCallersOnly]
54+
static void M4(in int o) => throw null; // error CS8977: Cannot use 'ref', 'in', or 'out' in a method attributed with 'UnmanagedCallersOnly'.
55+
56+
[UnmanagedCallersOnly]
57+
static void M5(out int o) => throw null; // error CS8977: Cannot use 'ref', 'in', or 'out' in a method attributed with 'UnmanagedCallersOnly'.
58+
```

docs/features/pdb-compilation-options.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ foreach (var handle in metadataReader.GetCustomDebugInformation(EntityHandle.Mod
133133

134134
### Compiler Options custom debug information
135135

136-
The remaining values will be stored as key value pairs in the pdb. The storage format will be UTF8 encoded key value pairs that are null terminated. Order is not guaranteed. Any values left out can be assumed to be the default for the type. Keys may be different for Visual Basic and CSharp. They are serialized to reflect the command line arguments representing the same values
136+
The remaining values will be stored as key value pairs in the pdb. The storage format will be UTF8 encoded key value pairs that are null terminated. Order is not guaranteed. Any values left out can be assumed to be the default for the type. Keys may be different for Visual Basic and C#. They are serialized to reflect the command line arguments representing the same values
137137

138138
Example:
139139

140140
`compilerversion\01.2.3-example-sha\0sourceencoding\0utf-8\0checked\01\0unsafe\01\0langversion\0latest\0nullable\0Enable`
141141

142142
## List of Compiler Flags
143143

144-
#### CSharp Flags That Can Be Derived From PDB or Assembly
144+
#### C# Flags That Can Be Derived From PDB or Assembly
145145

146146
* baseaddress
147147
* checksumalgorithm
@@ -171,7 +171,7 @@ Example:
171171
* win32manifest
172172
* win32res
173173

174-
#### CSharp Flags Not Included
174+
#### C# Flags Not Included
175175

176176
* bugreport
177177
* delaysign
@@ -255,11 +255,11 @@ Example:
255255
* verbose
256256
* warnaserror
257257

258-
#### Shared Options for CSharp and Visual Basic
258+
#### Shared Options for C# and Visual Basic
259259

260260
| PDB Key | Format | Default | Description |
261261
| ---------------------- | --------------------------------------- | --------- | ------------ |
262-
| language | `CSharp\|Visual Basic` | required | Language name. |
262+
| language | `C#\|Visual Basic` | required | Language name. |
263263
| compiler-version | [SemVer2](https://semver.org/spec/v2.0.0.html) string | required | Full version with SHA |
264264
| runtime-version | [SemVer2](https://semver.org/spec/v2.0.0.html) string | required | [runtime version](#runtime-version) |
265265
| source-file-count | int32 | required | Count of files in the document table that are source files |
@@ -270,7 +270,7 @@ Example:
270270
| output-kind | string | require | The value passed to `/target` |
271271
| platform | string | require | The value passed to `/platform` |
272272

273-
#### Options For CSharp
273+
#### Options For C\#
274274

275275
See [compiler options](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/listed-alphabetically) documentation
276276

eng/Signing.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
<FileSignInfo Include="Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ResultProvider.dll" PublicKeyToken="31bf3856ad364e35" TargetFramework=".NETFramework,Version=v2.0" CertificateName="MicrosoftWin8WinBlue"/>
2727
<FileSignInfo Include="Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.dll" PublicKeyToken="31bf3856ad364e35" TargetFramework=".NETFramework,Version=v4.5" CertificateName="MicrosoftWin8WinBlue"/>
2828

29-
<FileSignInfo Include="System.Collections.Immutable.dll" CertificateName="Microsoft101240624"/>
30-
<FileSignInfo Include="System.Reflection.Metadata.dll" CertificateName="Microsoft101240624"/>
31-
3229
<!-- Sign 3rd party dlls with 3rd party cert -->
3330
<FileSignInfo Include="ICSharpCode.Decompiler.dll" CertificateName="3PartySHA2" />
3431
<FileSignInfo Include="e_sqlite3.dll" CertificateName="3PartySHA2" />

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
</Dependency>
1414
</ProductDependencies>
1515
<ToolsetDependencies>
16-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21555.2">
16+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21559.3">
1717
<Uri>https://github.com/dotnet/arcade</Uri>
18-
<Sha>a7c57abb74deaee6dac921dd68f9c3c58059ebfb</Sha>
18+
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
1919
<SourceBuild RepoName="arcade" ManagedOnly="true" />
2020
</Dependency>
2121
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.1.0-1.21553.8">
2222
<Uri>https://github.com/dotnet/roslyn</Uri>
2323
<Sha>4ba1d9d2984e212af9d6ebff95dedb8a3739c661</Sha>
2424
</Dependency>
25-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.21555.2">
25+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.21559.3">
2626
<Uri>https://github.com/dotnet/arcade</Uri>
27-
<Sha>a7c57abb74deaee6dac921dd68f9c3c58059ebfb</Sha>
27+
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
2828
</Dependency>
2929
</ToolsetDependencies>
3030
</Dependencies>

eng/Versions.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
<MicrosoftVisualStudioDiagnosticsPerformanceProviderVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftVisualStudioDiagnosticsPerformanceProviderVersion>
141141
<MicrosoftVisualStudioSDKEmbedInteropTypesVersion>15.0.36</MicrosoftVisualStudioSDKEmbedInteropTypesVersion>
142142
<MicrosoftVisualStudioEditorVersion>$(VisualStudioEditorNewPackagesVersion)</MicrosoftVisualStudioEditorVersion>
143+
<MicrosoftVisualStudioExtensibilityTestingXunitVersion>0.1.90-beta</MicrosoftVisualStudioExtensibilityTestingXunitVersion>
143144
<MicrosoftVisualStudioGraphModelVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftVisualStudioGraphModelVersion>
144145
<MicrosoftVisualStudioImageCatalogVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftVisualStudioImageCatalogVersion>
145146
<MicrosoftVisualStudioImagingVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftVisualStudioImagingVersion>
@@ -237,13 +238,13 @@
237238
<VsWebsiteInteropVersion>8.0.50727</VsWebsiteInteropVersion>
238239
<vswhereVersion>2.4.1</vswhereVersion>
239240
<XamarinMacVersion>1.0.0</XamarinMacVersion>
240-
<xunitVersion>2.4.1-pre.build.4059</xunitVersion>
241+
<xunitVersion>2.4.1</xunitVersion>
241242
<xunitanalyzersVersion>0.10.0</xunitanalyzersVersion>
242243
<xunitassertVersion>$(xunitVersion)</xunitassertVersion>
243244
<XunitCombinatorialVersion>1.3.2</XunitCombinatorialVersion>
244245
<XUnitXmlTestLoggerVersion>2.1.26</XUnitXmlTestLoggerVersion>
245246
<xunitextensibilitycoreVersion>$(xunitVersion)</xunitextensibilitycoreVersion>
246-
<xunitrunnerconsoleVersion>2.4.1-pre.build.4059</xunitrunnerconsoleVersion>
247+
<xunitrunnerconsoleVersion>2.4.1</xunitrunnerconsoleVersion>
247248
<xunitrunnerwpfVersion>1.0.51</xunitrunnerwpfVersion>
248249
<xunitrunnervisualstudioVersion>$(xunitVersion)</xunitrunnervisualstudioVersion>
249250
<xunitextensibilityexecutionVersion>$(xunitVersion)</xunitextensibilityexecutionVersion>

0 commit comments

Comments
 (0)