Skip to content

Commit e2c235b

Browse files
authored
Merge pull request #208 from maikebing/vs2022
upgrade to vs2022
2 parents 1ad544c + b80a2e7 commit e2c235b

Some content is hidden

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

52 files changed

+1467
-345
lines changed

GitLabVS2022.sln

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31911.196
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{10559CEB-2FF0-4617-9122-928F7D8D2E3F}"
7+
ProjectSection(SolutionItems) = preProject
8+
.gitlab-ci.yml = .gitlab-ci.yml
9+
appveyor.yml = appveyor.yml
10+
CHANGELOG.md = CHANGELOG.md
11+
GitVersion.yml = GitVersion.yml
12+
README.md = README.md
13+
rebuildself.cmd = rebuildself.cmd
14+
ResetEnvironment.cmd = ResetEnvironment.cmd
15+
EndProjectSection
16+
EndProject
17+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.VisualStudio.Shared", "src\GitLab.VisualStudio.Shared\GitLab.VisualStudio.Shared.csproj", "{C3150B82-8E79-4FF6-A9FF-E361C108384F}"
18+
EndProject
19+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.VisualStudio", "src\GitLab.VisualStudio\GitLab.VisualStudio.csproj", "{11569514-5AE5-4B5B-92A2-F10B0967DE5F}"
20+
EndProject
21+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.VisualStudio.UI", "src\GitLab.VisualStudio.UI\GitLab.VisualStudio.UI.csproj", "{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}"
22+
EndProject
23+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.TeamFoundation.17", "src\GitLab.TeamFoundation.17\GitLab.TeamFoundation.17.csproj", "{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}"
24+
EndProject
25+
Global
26+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
27+
Debug|Any CPU = Debug|Any CPU
28+
Debug|x86 = Debug|x86
29+
DebugVS2015|Any CPU = DebugVS2015|Any CPU
30+
DebugVS2015|x86 = DebugVS2015|x86
31+
Publish|Any CPU = Publish|Any CPU
32+
Publish|x86 = Publish|x86
33+
Release|Any CPU = Release|Any CPU
34+
Release|x86 = Release|x86
35+
XamlDesign|Any CPU = XamlDesign|Any CPU
36+
XamlDesign|x86 = XamlDesign|x86
37+
EndGlobalSection
38+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
39+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Debug|x86.ActiveCfg = Debug|Any CPU
42+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Debug|x86.Build.0 = Debug|Any CPU
43+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.DebugVS2015|Any CPU.ActiveCfg = DebugVS2015|Any CPU
44+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.DebugVS2015|Any CPU.Build.0 = DebugVS2015|Any CPU
45+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.DebugVS2015|x86.ActiveCfg = DebugVS2015|Any CPU
46+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.DebugVS2015|x86.Build.0 = DebugVS2015|Any CPU
47+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Publish|Any CPU.ActiveCfg = Release|Any CPU
48+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Publish|Any CPU.Build.0 = Release|Any CPU
49+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Publish|x86.ActiveCfg = Release|Any CPU
50+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Publish|x86.Build.0 = Release|Any CPU
51+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Release|x86.ActiveCfg = Release|Any CPU
54+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.Release|x86.Build.0 = Release|Any CPU
55+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.XamlDesign|Any CPU.ActiveCfg = Release|Any CPU
56+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.XamlDesign|Any CPU.Build.0 = Release|Any CPU
57+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.XamlDesign|x86.ActiveCfg = Release|Any CPU
58+
{C3150B82-8E79-4FF6-A9FF-E361C108384F}.XamlDesign|x86.Build.0 = Release|Any CPU
59+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
60+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
61+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Debug|x86.ActiveCfg = Debug|Any CPU
62+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Debug|x86.Build.0 = Debug|Any CPU
63+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.DebugVS2015|Any CPU.ActiveCfg = DebugVS2015|Any CPU
64+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.DebugVS2015|Any CPU.Build.0 = DebugVS2015|Any CPU
65+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.DebugVS2015|x86.ActiveCfg = DebugVS2015|Any CPU
66+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.DebugVS2015|x86.Build.0 = DebugVS2015|Any CPU
67+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Publish|Any CPU.ActiveCfg = Release|Any CPU
68+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Publish|Any CPU.Build.0 = Release|Any CPU
69+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Publish|x86.ActiveCfg = Release|Any CPU
70+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Publish|x86.Build.0 = Release|Any CPU
71+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
72+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Release|Any CPU.Build.0 = Release|Any CPU
73+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Release|x86.ActiveCfg = Release|Any CPU
74+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Release|x86.Build.0 = Release|Any CPU
75+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.XamlDesign|Any CPU.ActiveCfg = Release|Any CPU
76+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.XamlDesign|Any CPU.Build.0 = Release|Any CPU
77+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.XamlDesign|x86.ActiveCfg = Release|Any CPU
78+
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.XamlDesign|x86.Build.0 = Release|Any CPU
79+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
81+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Debug|x86.ActiveCfg = Debug|Any CPU
82+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Debug|x86.Build.0 = Debug|Any CPU
83+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.DebugVS2015|Any CPU.ActiveCfg = DebugVS2015|Any CPU
84+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.DebugVS2015|Any CPU.Build.0 = DebugVS2015|Any CPU
85+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.DebugVS2015|x86.ActiveCfg = DebugVS2015|Any CPU
86+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.DebugVS2015|x86.Build.0 = DebugVS2015|Any CPU
87+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Publish|Any CPU.ActiveCfg = Release|Any CPU
88+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Publish|Any CPU.Build.0 = Release|Any CPU
89+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Publish|x86.ActiveCfg = Release|Any CPU
90+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Publish|x86.Build.0 = Release|Any CPU
91+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
92+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Release|Any CPU.Build.0 = Release|Any CPU
93+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Release|x86.ActiveCfg = Release|Any CPU
94+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.Release|x86.Build.0 = Release|Any CPU
95+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.XamlDesign|Any CPU.ActiveCfg = Release|Any CPU
96+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.XamlDesign|Any CPU.Build.0 = Release|Any CPU
97+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.XamlDesign|x86.ActiveCfg = Release|Any CPU
98+
{EC0FA794-798E-4949-A9A1-608E0B5E5EEA}.XamlDesign|x86.Build.0 = Release|Any CPU
99+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
100+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
101+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Debug|x86.ActiveCfg = Debug|Any CPU
102+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Debug|x86.Build.0 = Debug|Any CPU
103+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.DebugVS2015|Any CPU.ActiveCfg = DebugVS2015|Any CPU
104+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.DebugVS2015|Any CPU.Build.0 = DebugVS2015|Any CPU
105+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.DebugVS2015|x86.ActiveCfg = DebugVS2015|Any CPU
106+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.DebugVS2015|x86.Build.0 = DebugVS2015|Any CPU
107+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
108+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Publish|Any CPU.Build.0 = Debug|Any CPU
109+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Publish|x86.ActiveCfg = Debug|Any CPU
110+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Publish|x86.Build.0 = Debug|Any CPU
111+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
112+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Release|Any CPU.Build.0 = Release|Any CPU
113+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Release|x86.ActiveCfg = Release|Any CPU
114+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.Release|x86.Build.0 = Release|Any CPU
115+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.XamlDesign|Any CPU.ActiveCfg = Debug|Any CPU
116+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.XamlDesign|Any CPU.Build.0 = Debug|Any CPU
117+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.XamlDesign|x86.ActiveCfg = Debug|Any CPU
118+
{48B7CF42-9F19-4A4C-817D-2021D9A64BFD}.XamlDesign|x86.Build.0 = Debug|Any CPU
119+
EndGlobalSection
120+
GlobalSection(SolutionProperties) = preSolution
121+
HideSolutionNode = FALSE
122+
EndGlobalSection
123+
GlobalSection(ExtensibilityGlobals) = postSolution
124+
SolutionGuid = {41BA6B33-0427-4B30-9CC6-C009DB932BF2}
125+
EndGlobalSection
126+
EndGlobal

VSIXProject1/Extensions1.vsext

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"description": "Read about creating extension packs at https://aka.ms/vsextpack",
3+
"version": "1.0.0.0",
4+
"extensions": [
5+
{
6+
"vsixId": "41858b2d-ff0b-4a43-80b0-f1b2d6084935",
7+
"name": "AlignAssignments"
8+
},
9+
{
10+
"vsixId": "42374550-426a-400e-96f9-237682e8dea6",
11+
"name": "CopyAsHtml"
12+
}
13+
]
14+
}

VSIXProject1/Key.snk

596 Bytes
Binary file not shown.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("VSIXProject1")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("VSIXProject1")]
13+
[assembly: AssemblyCopyright("")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// Version information for an assembly consists of the following four values:
23+
//
24+
// Major Version
25+
// Minor Version
26+
// Build Number
27+
// Revision
28+
//
29+
// You can specify all the values or you can default the Build and Revision Numbers
30+
// by using the '*' as shown below:
31+
// [assembly: AssemblyVersion("1.0.*")]
32+
[assembly: AssemblyVersion("1.0.0.0")]
33+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
using Microsoft.VisualStudio.Text;
2+
using Microsoft.VisualStudio.Text.Classification;
3+
using System;
4+
using System.Collections.Generic;
5+
6+
namespace VSIXProject1.Properties
7+
{
8+
/// <summary>
9+
/// Classifier that classifies all text as an instance of the "EditorClassifier1" classification type.
10+
/// </summary>
11+
internal class EditorClassifier1 : IClassifier
12+
{
13+
/// <summary>
14+
/// Classification type.
15+
/// </summary>
16+
private readonly IClassificationType classificationType;
17+
18+
/// <summary>
19+
/// Initializes a new instance of the <see cref="EditorClassifier1"/> class.
20+
/// </summary>
21+
/// <param name="registry">Classification registry.</param>
22+
internal EditorClassifier1(IClassificationTypeRegistryService registry)
23+
{
24+
this.classificationType = registry.GetClassificationType("EditorClassifier1");
25+
}
26+
27+
#region IClassifier
28+
29+
#pragma warning disable 67
30+
31+
/// <summary>
32+
/// An event that occurs when the classification of a span of text has changed.
33+
/// </summary>
34+
/// <remarks>
35+
/// This event gets raised if a non-text change would affect the classification in some way,
36+
/// for example typing /* would cause the classification to change in C# without directly
37+
/// affecting the span.
38+
/// </remarks>
39+
public event EventHandler<ClassificationChangedEventArgs> ClassificationChanged;
40+
41+
#pragma warning restore 67
42+
43+
/// <summary>
44+
/// Gets all the <see cref="ClassificationSpan"/> objects that intersect with the given range of text.
45+
/// </summary>
46+
/// <remarks>
47+
/// This method scans the given SnapshotSpan for potential matches for this classification.
48+
/// In this instance, it classifies everything and returns each span as a new ClassificationSpan.
49+
/// </remarks>
50+
/// <param name="span">The span currently being classified.</param>
51+
/// <returns>A list of ClassificationSpans that represent spans identified to be of this classification.</returns>
52+
public IList<ClassificationSpan> GetClassificationSpans(SnapshotSpan span)
53+
{
54+
var result = new List<ClassificationSpan>()
55+
{
56+
new ClassificationSpan(new SnapshotSpan(span.Snapshot, new Span(span.Start, span.Length)), this.classificationType)
57+
};
58+
59+
return result;
60+
}
61+
62+
#endregion
63+
}
64+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using Microsoft.VisualStudio.Text.Classification;
2+
using Microsoft.VisualStudio.Utilities;
3+
using System.ComponentModel.Composition;
4+
5+
namespace VSIXProject1.Properties
6+
{
7+
/// <summary>
8+
/// Classification type definition export for EditorClassifier1
9+
/// </summary>
10+
internal static class EditorClassifier1ClassificationDefinition
11+
{
12+
// This disables "The field is never used" compiler's warning. Justification: the field is used by MEF.
13+
#pragma warning disable 169
14+
15+
/// <summary>
16+
/// Defines the "EditorClassifier1" classification type.
17+
/// </summary>
18+
[Export(typeof(ClassificationTypeDefinition))]
19+
[Name("EditorClassifier1")]
20+
private static ClassificationTypeDefinition typeDefinition;
21+
22+
#pragma warning restore 169
23+
}
24+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using Microsoft.VisualStudio.Text.Classification;
2+
using Microsoft.VisualStudio.Utilities;
3+
using System.ComponentModel.Composition;
4+
using System.Windows.Media;
5+
6+
namespace VSIXProject1.Properties
7+
{
8+
/// <summary>
9+
/// Defines an editor format for the EditorClassifier1 type that has a purple background
10+
/// and is underlined.
11+
/// </summary>
12+
[Export(typeof(EditorFormatDefinition))]
13+
[ClassificationType(ClassificationTypeNames = "EditorClassifier1")]
14+
[Name("EditorClassifier1")]
15+
[UserVisible(true)] // This should be visible to the end user
16+
[Order(Before = Priority.Default)] // Set the priority to be after the default classifiers
17+
internal sealed class EditorClassifier1Format : ClassificationFormatDefinition
18+
{
19+
/// <summary>
20+
/// Initializes a new instance of the <see cref="EditorClassifier1Format"/> class.
21+
/// </summary>
22+
public EditorClassifier1Format()
23+
{
24+
this.DisplayName = "EditorClassifier1"; // Human readable version of the name
25+
this.BackgroundColor = Colors.BlueViolet;
26+
this.TextDecorations = System.Windows.TextDecorations.Underline;
27+
}
28+
}
29+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using Microsoft.VisualStudio.Text;
2+
using Microsoft.VisualStudio.Text.Classification;
3+
using Microsoft.VisualStudio.Utilities;
4+
using System.ComponentModel.Composition;
5+
6+
namespace VSIXProject1.Properties
7+
{
8+
/// <summary>
9+
/// Classifier provider. It adds the classifier to the set of classifiers.
10+
/// </summary>
11+
[Export(typeof(IClassifierProvider))]
12+
[ContentType("text")] // This classifier applies to all text files.
13+
internal class EditorClassifier1Provider : IClassifierProvider
14+
{
15+
// Disable "Field is never assigned to..." compiler's warning. Justification: the field is assigned by MEF.
16+
#pragma warning disable 649
17+
18+
/// <summary>
19+
/// Classification registry to be used for getting a reference
20+
/// to the custom classification type later.
21+
/// </summary>
22+
[Import]
23+
private IClassificationTypeRegistryService classificationRegistry;
24+
25+
#pragma warning restore 649
26+
27+
#region IClassifierProvider
28+
29+
/// <summary>
30+
/// Gets a classifier for the given text buffer.
31+
/// </summary>
32+
/// <param name="buffer">The <see cref="ITextBuffer"/> to classify.</param>
33+
/// <returns>A classifier for the text buffer, or null if the provider cannot do so in its current state.</returns>
34+
public IClassifier GetClassifier(ITextBuffer buffer)
35+
{
36+
return buffer.Properties.GetOrCreateSingletonProperty<EditorClassifier1>(creator: () => new EditorClassifier1(this.classificationRegistry));
37+
}
38+
39+
#endregion
40+
}
41+
}

0 commit comments

Comments
 (0)