File tree 3 files changed +4
-5
lines changed
src/PowerShellEditorServices.Host/CodeLens
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,8 @@ private async Task HandleCodeLensRequest(
119
119
CodeLensRequest codeLensParams ,
120
120
RequestContext < LanguageServer . CodeLens [ ] > requestContext )
121
121
{
122
- var scriptFile =
123
- _editorSession . Workspace . GetFile (
124
- codeLensParams . TextDocument . Uri ) ;
122
+ ScriptFile scriptFile = _editorSession . Workspace . GetFile (
123
+ codeLensParams . TextDocument . Uri ) ;
125
124
126
125
CodeLens [ ] codeLensResults = ProvideCodeLenses ( scriptFile ) ;
127
126
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ private CodeLens[] GetPesterLens(
77
77
public CodeLens [ ] ProvideCodeLenses ( ScriptFile scriptFile )
78
78
{
79
79
var lenses = new List < CodeLens > ( ) ;
80
- foreach ( var symbol in _symbolProvider . ProvideDocumentSymbols ( scriptFile ) )
80
+ foreach ( SymbolReference symbol in _symbolProvider . ProvideDocumentSymbols ( scriptFile ) )
81
81
{
82
82
if ( symbol is PesterSymbolReference pesterSymbol )
83
83
{
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public async Task<CodeLens> ResolveCodeLensAsync(
75
75
ScriptFile [ ] references = _editorSession . Workspace . ExpandScriptReferences (
76
76
codeLens . File ) ;
77
77
78
- var foundSymbol = _editorSession . LanguageService . FindFunctionDefinitionAtLocation (
78
+ SymbolReference foundSymbol = _editorSession . LanguageService . FindFunctionDefinitionAtLocation (
79
79
codeLens . File ,
80
80
codeLens . ScriptExtent . StartLineNumber ,
81
81
codeLens . ScriptExtent . StartColumnNumber ) ;
You can’t perform that action at this time.
0 commit comments