File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
PowerShellEditorServices.Protocol/Server
PowerShellEditorServices/Language Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -254,15 +254,15 @@ private async Task HandleGetFormatScriptRegionRequest(
254
254
var line = scriptFile . GetLine ( lineNumber ) ;
255
255
if ( ! String . IsNullOrEmpty ( line ) )
256
256
{
257
- scriptRegion = this . editorSession . LanguageService . GetSmallestStatementAstRegion (
257
+ scriptRegion = this . editorSession . LanguageService . FindSmallestStatementAstRegion (
258
258
scriptFile ,
259
259
lineNumber ,
260
260
line . Length ) ;
261
261
}
262
262
break ;
263
263
264
264
case "}" :
265
- scriptRegion = this . editorSession . LanguageService . GetSmallestStatementAstRegion (
265
+ scriptRegion = this . editorSession . LanguageService . FindSmallestStatementAstRegion (
266
266
scriptFile ,
267
267
lineNumber ,
268
268
columnNumber ) ;
Original file line number Diff line number Diff line change @@ -458,12 +458,12 @@ await CommandHelpers.GetCommandInfo(
458
458
/// <param name="lineNumber">1-based line number of the position.</param>
459
459
/// <param name="columnNumber">1-based column number of the position.</param>
460
460
/// <returns></returns>
461
- public ScriptRegion GetSmallestStatementAstRegion (
461
+ public ScriptRegion FindSmallestStatementAstRegion (
462
462
ScriptFile scriptFile ,
463
463
int lineNumber ,
464
464
int columnNumber )
465
465
{
466
- var ast = GetSmallestStatementAst ( scriptFile , lineNumber , columnNumber ) ;
466
+ var ast = FindSmallestStatementAst ( scriptFile , lineNumber , columnNumber ) ;
467
467
if ( ast == null )
468
468
{
469
469
return null ;
@@ -591,7 +591,7 @@ private SymbolReference FindDeclarationForBuiltinCommand(
591
591
return foundDefinition ;
592
592
}
593
593
594
- private Ast GetSmallestStatementAst ( ScriptFile scriptFile , int lineNumber , int columnNumber )
594
+ private Ast FindSmallestStatementAst ( ScriptFile scriptFile , int lineNumber , int columnNumber )
595
595
{
596
596
var asts = scriptFile . ScriptAst . FindAll ( ast =>
597
597
{
You can’t perform that action at this time.
0 commit comments