File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
src/PowerShellEditorServices.Protocol/LanguageServer Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
12
12
/// <summary>
13
13
/// Class to encapsulate the request type.
14
14
/// </summary>
15
- class FormattingScriptRegionRequest
15
+ class ScriptRegionRequest
16
16
{
17
17
public static readonly
18
- RequestType < FormattingScriptRegionRequestParams , FormattingScriptRegionRequestResult > Type =
19
- RequestType < FormattingScriptRegionRequestParams , FormattingScriptRegionRequestResult > . Create ( "powerShell/getFormattingScriptRegion " ) ;
18
+ RequestType < ScriptRegionRequestParams , ScriptRegionRequestResult > Type =
19
+ RequestType < ScriptRegionRequestParams , ScriptRegionRequestResult > . Create ( "powerShell/getScriptRegion " ) ;
20
20
}
21
21
22
22
/// <summary>
23
23
/// Class to encapsulate the request parameters.
24
24
/// </summary>
25
- class FormattingScriptRegionRequestParams
25
+ class ScriptRegionRequestParams
26
26
{
27
27
/// <summary>
28
28
/// Path of the file for which the markers are requested.
@@ -35,15 +35,20 @@ class FormattingScriptRegionRequestParams
35
35
public string character ;
36
36
37
37
/// <summary>
38
- /// Character position
38
+ /// 1-based line number of the character
39
39
/// </summary>
40
- public FilePosition filePosition ;
40
+ public int line ;
41
+
42
+ /// <summary>
43
+ /// 1-based column number of the character
44
+ /// </summary>
45
+ public int column ;
41
46
}
42
47
43
48
/// <summary>
44
49
/// Class to encapsulate the result of marker request.
45
50
/// </summary>
46
- class FormattingScriptRegionRequestResult
51
+ class ScriptRegionRequestResult
47
52
{
48
53
/// <summary>
49
54
/// A region in the script that encapsulates the given character/position which is suitable for
You can’t perform that action at this time.
0 commit comments