Skip to content

Setup branch for test insertions #77701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 105 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
22e1b3f
Bump BCL references to 9.0
genlu Jan 23, 2025
551a1e6
Add expected dependency
genlu Jan 23, 2025
47800f4
fix
genlu Jan 23, 2025
55ce3e4
Update BCL dependencies with darc
JoeRobich Jan 23, 2025
adb8717
Clean up xliff changes
JoeRobich Jan 23, 2025
7d04b76
pin SCI version in syntax generator
genlu Jan 24, 2025
1858680
Merge remote-tracking branch 'origin/UpgradeBcl' into UpgradeBcl
genlu Jan 24, 2025
dfbabaf
fix
genlu Jan 24, 2025
5b6ac9e
Add OS target
genlu Jan 31, 2025
55459f9
Merge remote-tracking branch 'dotnet/main' into UpgradeBcl
genlu Jan 31, 2025
d057c94
Fix crossgen targets
genlu Feb 1, 2025
b05adf5
revert
genlu Feb 1, 2025
6024828
Update Versions.props for Dev18 (#77138)
akhera99 Feb 10, 2025
48b74f7
don't crossgen workspaces.dll
genlu Feb 12, 2025
90dabae
Merge branch 'main' into UpgradeBcl
JoeRobich Feb 12, 2025
9ca1f3e
Merge remote-tracking branch 'dotnet/main' into UpgradeBcl
genlu Feb 12, 2025
2550abe
Unify edit and continue test checks.
JoeRobich Feb 12, 2025
674397e
Fix typo
JoeRobich Feb 12, 2025
7a14c9f
Update SourceBuild IgnorePatterns for 9.0 BCL
JoeRobich Feb 13, 2025
9b86853
[automated] Merge branch 'main' => 'release/dev18.0' (#77153)
akhera99 Feb 13, 2025
fc18ffb
[automated] Merge branch 'main' => 'release/dev18.0' (#77226)
akhera99 Feb 19, 2025
229fb75
Merge remote-tracking branch 'dotnet/main' into UpgradeBcl
genlu Feb 21, 2025
ef52958
Merge remote-tracking branch 'origin/UpgradeBcl' into UpgradeBcl
genlu Feb 21, 2025
8865193
Merge branch 'release/dev18.0' into merge/main-to-release/dev18.0
akhera99 Feb 26, 2025
71f3218
Fix duplicate references for runtime assemblies
genlu Feb 27, 2025
1172ece
Merge remote-tracking branch 'genlu/UpgradeBcl' into UpgradeBcl
genlu Feb 27, 2025
d1ba0e8
[automated] Merge branch 'main' => 'release/dev18.0' (#77292)
akhera99 Feb 27, 2025
1a641a9
Crossgen a few more framework assemblies
genlu Feb 28, 2025
fab5597
Merge remote-tracking branch 'dotnet/main' into UpgradeBcl
genlu Feb 28, 2025
a879f4a
Fix correctness rebuild by adding an additional Semantic Search refer…
JoeRobich Feb 28, 2025
7926b6a
[automated] Merge branch 'main' => 'release/dev18.0' (#77374)
akhera99 Mar 3, 2025
1b6daf2
Merge remote-tracking branch 'origin/UpgradeBcl' into UpgradeBcl
genlu Mar 3, 2025
2d56e5f
Add more dependencies to deployment project
genlu Mar 3, 2025
e5c231f
[automated] Merge branch 'main' => 'main-vs-deps' (#77429)
jjonescz Mar 5, 2025
3bafb2c
[automated] Merge branch 'main' => 'release/dev18.0' (#77409)
jjonescz Mar 5, 2025
9f3fb56
[automated] Merge branch 'main' => 'release/dev18.0' (#77431)
jjonescz Mar 5, 2025
010573f
[automated] Merge branch 'main' => 'main-vs-deps' (#77430)
jjonescz Mar 5, 2025
b6cdf65
[automated] Merge branch 'main' => 'release/dev18.0' (#77441)
jjonescz Mar 5, 2025
470c3de
[automated] Merge branch 'main' => 'main-vs-deps' (#77440)
jjonescz Mar 5, 2025
38e153c
Bump BCL references to 9.0 (#76890)
arunchndr Mar 5, 2025
b7465cd
[automated] Merge branch 'main' => 'release/dev18.0' (#77445)
dotnet-policy-service[bot] Mar 5, 2025
68501c0
[automated] Merge branch 'main' => 'main-vs-deps' (#77446)
dotnet-policy-service[bot] Mar 5, 2025
45c5c6a
Include the contents of System.Composition in Setup.Dependencies
jasonmalinowski Mar 6, 2025
47f9554
Sort the references
jasonmalinowski Mar 6, 2025
2f8e4d0
Include the contents of System.Composition in Setup.Dependencies (#77…
jasonmalinowski Mar 7, 2025
bbc80ae
[automated] Merge branch 'main' => 'release/dev18.0' (#77468)
dotnet-policy-service[bot] Mar 8, 2025
4622320
[automated] Merge branch 'main' => 'main-vs-deps' (#77467)
dotnet-policy-service[bot] Mar 8, 2025
8a1d08f
[automated] Merge branch 'main' => 'release/dev18.0' (#77485)
dotnet-policy-service[bot] Mar 10, 2025
d244b6e
[automated] Merge branch 'main' => 'main-vs-deps' (#77486)
dotnet-policy-service[bot] Mar 10, 2025
6c4d53b
[automated] Merge branch 'main' => 'release/dev18.0' (#77494)
dotnet-policy-service[bot] Mar 10, 2025
0544987
[automated] Merge branch 'main' => 'main-vs-deps' (#77493)
dotnet-policy-service[bot] Mar 10, 2025
c427591
[automated] Merge branch 'main' => 'release/dev18.0' (#77507)
dotnet-policy-service[bot] Mar 10, 2025
a3d6b18
Disable integration tests on main-vs-deps
jjonescz Mar 11, 2025
72ff2f9
[automated] Merge branch 'main' => 'main-vs-deps' (#77508)
dotnet-policy-service[bot] Mar 11, 2025
c553123
[automated] Merge branch 'main' => 'main-vs-deps' (#77520)
dotnet-policy-service[bot] Mar 11, 2025
5f9729d
[automated] Merge branch 'main' => 'main-vs-deps' (#77530)
dotnet-policy-service[bot] Mar 11, 2025
b9b4dd4
[automated] Merge branch 'main' => 'main-vs-deps' (#77539)
dotnet-policy-service[bot] Mar 11, 2025
d3f7d51
[automated] Merge branch 'main' => 'main-vs-deps' (#77552)
dotnet-policy-service[bot] Mar 12, 2025
689f9d0
[automated] Merge branch 'main' => 'release/dev18.0' (#77519)
dotnet-policy-service[bot] Mar 12, 2025
af0bddc
[automated] Merge branch 'main' => 'main-vs-deps' (#77554)
dotnet-policy-service[bot] Mar 12, 2025
5fa4c2c
Simple and safe performance changes to package load code. (#77561)
ToddGrun Mar 12, 2025
d7d1f60
[automated] Merge branch 'main' => 'release/dev18.0' (#77565)
dotnet-policy-service[bot] Mar 12, 2025
20ed35d
[automated] Merge branch 'main' => 'main-vs-deps' (#77564)
dotnet-policy-service[bot] Mar 12, 2025
83ae7f3
[automated] Merge branch 'main' => 'release/dev18.0' (#77576)
dotnet-policy-service[bot] Mar 13, 2025
196b818
[automated] Merge branch 'main' => 'main-vs-deps' (#77575)
dotnet-policy-service[bot] Mar 13, 2025
67362be
[automated] Merge branch 'main' => 'release/dev18.0' (#77584)
dotnet-policy-service[bot] Mar 13, 2025
e7c08f6
[automated] Merge branch 'main' => 'main-vs-deps' (#77585)
dotnet-policy-service[bot] Mar 13, 2025
994f525
[automated] Merge branch 'main' => 'release/dev18.0' (#77590)
dotnet-policy-service[bot] Mar 13, 2025
1e80300
[automated] Merge branch 'main' => 'main-vs-deps' (#77591)
dotnet-policy-service[bot] Mar 13, 2025
71d8071
[automated] Merge branch 'main' => 'release/dev18.0' (#77600)
dotnet-policy-service[bot] Mar 14, 2025
35e2429
[automated] Merge branch 'main' => 'main-vs-deps' (#77599)
dotnet-policy-service[bot] Mar 14, 2025
5d7f6a4
[automated] Merge branch 'main' => 'release/dev18.0' (#77612)
dotnet-policy-service[bot] Mar 14, 2025
23d9d23
[automated] Merge branch 'main' => 'main-vs-deps' (#77613)
dotnet-policy-service[bot] Mar 14, 2025
20dfaa2
[automated] Merge branch 'main' => 'main-vs-deps' (#77616)
dotnet-policy-service[bot] Mar 15, 2025
4aeda83
[automated] Merge branch 'main' => 'release/dev18.0' (#77615)
dotnet-policy-service[bot] Mar 15, 2025
4eee7f0
[automated] Merge branch 'main' => 'release/dev18.0' (#77621)
dotnet-policy-service[bot] Mar 15, 2025
517e95f
[automated] Merge branch 'main' => 'main-vs-deps' (#77622)
dotnet-policy-service[bot] Mar 15, 2025
0890a95
Remove specialized GC logic in Roslyn
CyrusNajmabadi Mar 15, 2025
e8f8e9d
Further reduce thread switches during package load. (#77602)
ToddGrun Mar 17, 2025
244f6dc
Remove specialized GC logic in Roslyn (#77628)
CyrusNajmabadi Mar 17, 2025
486ef41
[automated] Merge branch 'main' => 'release/dev18.0' (#77644)
dotnet-policy-service[bot] Mar 17, 2025
dfa1641
[automated] Merge branch 'main' => 'main-vs-deps' (#77645)
dotnet-policy-service[bot] Mar 17, 2025
809e2e2
Disable integration tests on release/dev18.0
jjonescz Mar 17, 2025
1c0e0cd
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77650)
dotnet-policy-service[bot] Mar 18, 2025
e4120e1
Another small set of package initialization optimizations (#77646)
ToddGrun Mar 18, 2025
e64e81c
[automated] Merge branch 'main' => 'main-vs-deps' (#77658)
dotnet-policy-service[bot] Mar 18, 2025
1d3482a
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77659)
dotnet-policy-service[bot] Mar 18, 2025
4aaf160
[automated] Merge branch 'main' => 'main-vs-deps' (#77662)
dotnet-policy-service[bot] Mar 18, 2025
43edc37
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77664)
dotnet-policy-service[bot] Mar 18, 2025
41ad9f9
[automated] Merge branch 'main' => 'main-vs-deps' (#77666)
dotnet-policy-service[bot] Mar 19, 2025
24e44ab
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77668)
dotnet-policy-service[bot] Mar 19, 2025
ac77788
[automated] Merge branch 'main' => 'main-vs-deps' (#77673)
dotnet-policy-service[bot] Mar 19, 2025
39c1c82
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77674)
dotnet-policy-service[bot] Mar 19, 2025
27429a7
[automated] Merge branch 'main' => 'main-vs-deps' (#77679)
dotnet-policy-service[bot] Mar 19, 2025
86cdbf5
[automated] Merge branch 'main' => 'main-vs-deps' (#77681)
dotnet-policy-service[bot] Mar 19, 2025
6cbc2a5
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77680)
dotnet-policy-service[bot] Mar 19, 2025
e07d8db
[automated] Merge branch 'main' => 'main-vs-deps' (#77688)
dotnet-policy-service[bot] Mar 20, 2025
2d03d9f
Disable integration tests on PRs to main-vs-deps and above
jjonescz Mar 11, 2025
1edc92a
Make the ci build happy
ToddGrun Mar 19, 2025
f7f6957
[automated] Merge branch 'main' => 'main-vs-deps' (#77695)
dotnet-policy-service[bot] Mar 20, 2025
dcce0e3
[automated] Merge branch 'main-vs-deps' => 'release/dev18.0' (#77692)
dotnet-policy-service[bot] Mar 20, 2025
cb04fb2
Remove VisualStudioMetadataReferenceManagerFactory (#77686)
ToddGrun Mar 20, 2025
07b0222
Revert "Bump BCL references to 9.0 (#76890)"
jjonescz Mar 20, 2025
51d28bd
Update Versions.props to 4.15p1
jjonescz Mar 20, 2025
c3b7b54
Revert "Make the ci build happy"
jjonescz Mar 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-pipelines-integration-scouting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ schedules:
branches:
include:
- main
exclude:
- main-vs-deps

variables:
Expand Down
5 changes: 3 additions & 2 deletions azure-pipelines-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ trigger:
branches:
include:
- main
- main-vs-deps
- release/*
- features/*
- demos/*
exclude:
- main-vs-deps
- release/dev18.0
# Since the version of VS on the integration VM images are a moving target,
# we are unable to reliably run integration tests on servicing branches.
- release/dev17.8
Expand All @@ -19,11 +20,11 @@ pr:
branches:
include:
- main
- main-vs-deps
- release/*
- features/*
- demos/*
exclude:
- main-vs-deps
# Since the version of VS on the integration VM images are a moving target,
# we are unable to reliably run integration tests on servicing branches.
- release/dev17.8
Expand Down
4 changes: 2 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
-->
<PropertyGroup>
<MajorVersion>4</MajorVersion>
<MinorVersion>14</MinorVersion>
<MinorVersion>15</MinorVersion>
<PatchVersion>0</PatchVersion>
<PreReleaseVersionLabel>3</PreReleaseVersionLabel>
<PreReleaseVersionLabel>1</PreReleaseVersionLabel>
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
<!--
By default the assembly version in official builds is "$(MajorVersion).$(MinorVersion).0.0".
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/test-integration-helix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ stages:
buildArguments: -msbuildEngine vs /p:Projects='"$(Build.Repository.LocalPath)\src\VisualStudio\IntegrationTest\IntegrationTestBuildProject.csproj"'

- stage: ${{ parameters.configuration }}_Integration
condition: and(succeeded(), notIn(variables['System.PullRequest.TargetBranchName'], 'main-vs-deps', 'release/dev18.0'))
dependsOn: Windows_${{ parameters.configuration }}_Build
variables:
- name: XUNIT_LOGS
Expand Down
14 changes: 10 additions & 4 deletions src/VisualStudio/CSharp/Impl/CSharpPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,17 @@ internal sealed class CSharpPackage : AbstractPackage<CSharpPackage, CSharpLangu
private ObjectBrowserLibraryManager? _libraryManager;
private uint _libraryManagerCookie;

protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
protected override void RegisterInitializationWork(PackageRegistrationTasks packageRegistrationTasks)
{
base.RegisterInitializationWork(packageRegistrationTasks);

packageRegistrationTasks.AddTask(isMainThreadTask: false, task: PackageInitializationBackgroundThreadAsync);
}

private Task PackageInitializationBackgroundThreadAsync(IProgress<ServiceProgressData> progress, PackageRegistrationTasks packageRegistrationTasks, CancellationToken cancellationToken)
{
try
{
await base.InitializeAsync(cancellationToken, progress).ConfigureAwait(true);
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

this.RegisterService<ICSharpTempPECompilerService>(async ct =>
{
var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>();
Expand All @@ -75,6 +79,8 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.General))
{
}

return Task.CompletedTask;
}

protected override void RegisterObjectBrowserLibraryManager()
Expand Down
18 changes: 8 additions & 10 deletions src/VisualStudio/Core/Def/ColorSchemes/ColorSchemeApplier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Shared.TestHooks;
using Microsoft.CodeAnalysis.Threading;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService;
using Microsoft.VisualStudio.Settings;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Threading;
using Task = System.Threading.Tasks.Task;

namespace Microsoft.CodeAnalysis.ColorSchemes;
Expand All @@ -42,7 +40,6 @@ internal sealed partial class ColorSchemeApplier
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public ColorSchemeApplier(
IThreadingContext threadingContext,
IVsService<SVsFontAndColorStorage, IVsFontAndColorStorage> fontAndColorStorage,
IGlobalOptionService globalOptions,
SVsServiceProvider serviceProvider,
IAsynchronousOperationListenerProvider listenerProvider)
Expand All @@ -60,7 +57,7 @@ public ColorSchemeApplier(
threadingContext.DisposalToken);
}

public async Task InitializeAsync(CancellationToken cancellationToken)
public void RegisterInitializationWork(PackageRegistrationTasks packageRegistrationTasks)
{
lock (_gate)
{
Expand All @@ -70,15 +67,16 @@ public async Task InitializeAsync(CancellationToken cancellationToken)
_isInitialized = true;
}

// We need to update the theme whenever the Editor Color Scheme setting changes.
await TaskScheduler.Default;
packageRegistrationTasks.AddTask(isMainThreadTask: false, task: PackageInitializationBackgroundThreadAsync);
}

private async Task PackageInitializationBackgroundThreadAsync(IProgress<ServiceProgressData> progress, PackageRegistrationTasks packageRegistrationTasks, CancellationToken cancellationToken)
{
var settingsManager = await _asyncServiceProvider.GetServiceAsync<SVsSettingsPersistenceManager, ISettingsManager>(_threadingContext.JoinableTaskFactory).ConfigureAwait(false);

await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
// We need to update the theme whenever the Editor Color Scheme setting changes.
settingsManager.GetSubset(ColorSchemeOptionsStorage.ColorSchemeSettingKey).SettingChangedAsync += ColorSchemeChangedAsync;

await TaskScheduler.Default;

// Try to migrate the `useEnhancedColorsSetting` to the new `ColorSchemeName` setting.
_settings.MigrateToColorSchemeSetting();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public virtual int Exec(ref Guid pguidCmdGroup, uint commandId, uint executeInfo
{
return ExecuteVisualStudio2000(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);
}
else if (pguidCmdGroup == VSConstants.GUID_VSStandardCommandSet97)
{
return ExecuteVisualStudio97(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);
}
else
{
return NextCommandTarget.Exec(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);
Expand All @@ -50,61 +46,8 @@ public virtual int Exec(ref Guid pguidCmdGroup, uint commandId, uint executeInfo
}
}

private int ExecuteVisualStudio97(ref Guid pguidCmdGroup, uint commandId, uint executeInformation, IntPtr pvaIn, IntPtr pvaOut)
{
switch ((VSConstants.VSStd97CmdID)commandId)
{
case VSConstants.VSStd97CmdID.Paste:
case VSConstants.VSStd97CmdID.Delete:
case VSConstants.VSStd97CmdID.SelectAll:
case VSConstants.VSStd97CmdID.Undo:
case VSConstants.VSStd97CmdID.Redo:
case VSConstants.VSStd97CmdID.MultiLevelUndo:
case VSConstants.VSStd97CmdID.MultiLevelRedo:
GCManager.UseLowLatencyModeForProcessingUserInput();
return NextCommandTarget.Exec(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);

default:
return NextCommandTarget.Exec(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);
}
}

protected virtual int ExecuteVisualStudio2000(ref Guid pguidCmdGroup, uint commandId, uint executeInformation, IntPtr pvaIn, IntPtr pvaOut)
{
switch ((VSConstants.VSStd2KCmdID)commandId)
{
case VSConstants.VSStd2KCmdID.TYPECHAR:
case VSConstants.VSStd2KCmdID.RETURN:
case VSConstants.VSStd2KCmdID.TAB:
case VSConstants.VSStd2KCmdID.BACKTAB:
case VSConstants.VSStd2KCmdID.HOME:
case VSConstants.VSStd2KCmdID.END:
case VSConstants.VSStd2KCmdID.BOL:
case VSConstants.VSStd2KCmdID.BOL_EXT:
case VSConstants.VSStd2KCmdID.EOL:
case VSConstants.VSStd2KCmdID.EOL_EXT:
case VSConstants.VSStd2KCmdID.SELECTALL:
case VSConstants.VSStd2KCmdID.OPENLINEABOVE:
case VSConstants.VSStd2KCmdID.OPENLINEBELOW:
case VSConstants.VSStd2KCmdID.UP:
case VSConstants.VSStd2KCmdID.DOWN:
case VSConstants.VSStd2KCmdID.BACKSPACE:
case VSConstants.VSStd2KCmdID.DELETE:
case VSConstants.VSStd2KCmdID.ECMD_INSERTCOMMENT:
case VSConstants.VSStd2KCmdID.COMPLETEWORD:
case VSConstants.VSStd2KCmdID.SHOWMEMBERLIST:
case VSConstants.VSStd2KCmdID.PARAMINFO:
case VSConstants.VSStd2KCmdID.RENAME:
case VSConstants.VSStd2KCmdID.EXTRACTINTERFACE:
case VSConstants.VSStd2KCmdID.EXTRACTMETHOD:
case VSConstants.VSStd2KCmdID.PASTE:
case VSConstants.VSStd2KCmdID.INSERTSNIPPET:
case VSConstants.VSStd2KCmdID.SURROUNDWITH:
GCManager.UseLowLatencyModeForProcessingUserInput();
return NextCommandTarget.Exec(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);

default:
return NextCommandTarget.Exec(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);
}
return NextCommandTarget.Exec(ref pguidCmdGroup, commandId, executeInformation, pvaIn, pvaOut);
}
}
115 changes: 0 additions & 115 deletions src/VisualStudio/Core/Def/Implementation/GCManager.cs

This file was deleted.

Loading