File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/PowerShellEditorServices/Services/CodeLens Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,18 @@ public CodeLens[] ProvideCodeLenses(ScriptFile scriptFile)
101
101
var lenses = new List < CodeLens > ( ) ;
102
102
foreach ( SymbolReference symbol in _symbolProvider . ProvideDocumentSymbols ( scriptFile ) )
103
103
{
104
- if ( symbol is PesterSymbolReference pesterSymbol )
104
+ if ( ! ( symbol is PesterSymbolReference pesterSymbol ) )
105
105
{
106
- if ( _configurationService . CurrentSettings . Pester . Pester5CodeLens
107
- || pesterSymbol . Command == PesterCommandType . Describe )
108
- {
109
- lenses . AddRange ( GetPesterLens ( pesterSymbol , scriptFile ) ) ;
110
- }
106
+ continue ;
107
+ }
108
+
109
+ if ( ! _configurationService . CurrentSettings . Pester . Pester5CodeLens
110
+ && pesterSymbol . Command != PesterCommandType . Describe )
111
+ {
112
+ continue ;
111
113
}
114
+
115
+ lenses . AddRange ( GetPesterLens ( pesterSymbol , scriptFile ) ) ;
112
116
}
113
117
114
118
return lenses . ToArray ( ) ;
You can’t perform that action at this time.
0 commit comments