Skip to content

Commit dc848b0

Browse files
Made some internal methods public
1 parent 35efeb2 commit dc848b0

File tree

6 files changed

+5
-65
lines changed

6 files changed

+5
-65
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/ExtensionMethods/IVsTextViewExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static class IVsTextViewExtensions
2626
/// Converts an <see cref="IVsTextView"/> to a <see cref="DocumentView"/>.
2727
/// </summary>
2828
/// <returns><see langword="null"/> if the textView is null or the conversion failed.</returns>
29-
internal static DocumentView ToDocumentView(this IVsTextView textView)
29+
public static DocumentView ToDocumentView(this IVsTextView textView)
3030
{
3131
if (textView == null || textView is not IVsTextViewEx nativeView)
3232
{
@@ -62,7 +62,7 @@ internal static DocumentView ToDocumentView(this IVsTextView textView)
6262
/// Converts an <see cref="IWpfTextView"/> to a <see cref="DocumentView"/>.
6363
/// </summary>
6464
/// <returns><see langword="null"/> if the textView is null or the conversion failed.</returns>
65-
internal static DocumentView ToDocumentView(this IWpfTextView textView)
65+
public static DocumentView ToDocumentView(this IWpfTextView textView)
6666
{
6767
ThreadHelper.ThrowIfNotOnUIThread();
6868
IVsTextView? nativeView = textView.ToIVsTextView();
@@ -89,7 +89,7 @@ internal static DocumentView ToDocumentView(this IWpfTextView textView)
8989
/// Converts the <see cref="IVsTextView"/> to an <see cref="IWpfTextView"/>/
9090
/// </summary>
9191
/// <returns></returns>
92-
internal static IWpfTextView? ToIWpfTextView(this IVsTextView nativeView)
92+
public static IWpfTextView? ToIWpfTextView(this IVsTextView nativeView)
9393
{
9494
ThreadHelper.ThrowIfNotOnUIThread();
9595
IVsEditorAdaptersFactoryService? editorAdapter = VS.GetMefService<IVsEditorAdaptersFactoryService>();
@@ -110,7 +110,7 @@ internal static DocumentView ToDocumentView(this IWpfTextView textView)
110110
/// Converts the <see cref="IVsTextView"/> to an <see cref="IWpfTextView"/>/
111111
/// </summary>
112112
/// <returns></returns>
113-
internal static IVsTextView? ToIVsTextView(this IWpfTextView view)
113+
public static IVsTextView? ToIVsTextView(this IWpfTextView view)
114114
{
115115
ThreadHelper.ThrowIfNotOnUIThread();
116116
IVsEditorAdaptersFactoryService? editorAdapter = VS.GetMefService<IVsEditorAdaptersFactoryService>();

src/toolkit/Community.VisualStudio.Toolkit.Shared/LanguageService/DefaultAuthoringScope.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/toolkit/Community.VisualStudio.Toolkit.Shared/LanguageService/DefaultColorizer.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/toolkit/Community.VisualStudio.Toolkit.Shared/LanguageService/DefaultSource.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/toolkit/Community.VisualStudio.Toolkit.Shared/MEF/TokenOutliningTaggerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private static TagSpan<IStructureTag> CreateTag(SnapshotSpan span, string text,
5757
guideLineHorizontalAnchor: span.Start,
5858
type: PredefinedStructureTagTypes.Structural,
5959
isCollapsible: true,
60-
collapsedForm: tag.GetOutliningText(text)!,
60+
collapsedForm: tag.GetOutliningText(text),
6161
collapsedHintForm: null);
6262

6363
return new TagSpan<IStructureTag>(span, structureTag);

src/toolkit/Community.VisualStudio.Toolkit.Shared/VSSDK.Helpers.Shared.projitems

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
<Compile Include="$(MSBuildThisFileDirectory)Helpers\OutputWindowTextWriterVS14.cs" />
4747
<Compile Include="$(MSBuildThisFileDirectory)Helpers\ProjectTypes.cs" />
4848
<Compile Include="$(MSBuildThisFileDirectory)Helpers\ToolkitThreadHelper.cs" />
49-
<Compile Include="$(MSBuildThisFileDirectory)LanguageService\DefaultAuthoringScope.cs" />
50-
<Compile Include="$(MSBuildThisFileDirectory)LanguageService\DefaultColorizer.cs" />
51-
<Compile Include="$(MSBuildThisFileDirectory)LanguageService\DefaultSource.cs" />
5249
<Compile Include="$(MSBuildThisFileDirectory)LanguageService\LanguageBase.cs" />
5350
<Compile Include="$(MSBuildThisFileDirectory)MEF\BraceCompletionBase.cs" />
5451
<Compile Include="$(MSBuildThisFileDirectory)MEF\BraceMatchingBase.cs" />

0 commit comments

Comments
 (0)