File tree 1 file changed +7
-2
lines changed
src/PowerShellEditorServices/Services/TextDocument
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public sealed class ScriptRegion : IScriptExtent
16
16
{
17
17
internal TextEdit ToTextEdit ( ) => new ( ) { NewText = Text , Range = ToRange ( ) } ;
18
18
19
- public Range ToRange ( )
19
+ internal Range ToRange ( )
20
20
{
21
21
return new Range
22
22
{
@@ -73,7 +73,7 @@ public ScriptRegion(
73
73
EndOffset = endOffset ;
74
74
}
75
75
76
- public ScriptRegion ( IScriptExtent scriptExtent )
76
+ public ScriptRegion ( IScriptExtent scriptExtent )
77
77
{
78
78
File = scriptExtent . File ;
79
79
@@ -95,6 +95,11 @@ public ScriptRegion (IScriptExtent scriptExtent)
95
95
EndOffset = scriptExtent . EndOffset ;
96
96
}
97
97
98
+ /// <summary>
99
+ /// NOTE: While unused, we kept this as it was previously exposed on a public class.
100
+ /// </summary>
101
+ public static ScriptRegion Create ( IScriptExtent scriptExtent ) => new ( scriptExtent ) ;
102
+
98
103
#endregion
99
104
100
105
#region Properties
You can’t perform that action at this time.
0 commit comments