File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/cursorless-vscode-e2e/src/suite/scopeProvider Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,14 @@ function helloWorld() {
5454}
5555` ;
5656
57- function getExpectedScope ( scopeSupport : ScopeSupport ) : ScopeSupportInfo {
57+ function getExpectedScope (
58+ scopeSupport : ScopeSupport ,
59+ iterationScopeSupport ?: ScopeSupport ,
60+ ) : ScopeSupportInfo {
5861 return {
5962 humanReadableName : "named function" ,
6063 isLanguageSpecific : true ,
61- iterationScopeSupport : scopeSupport ,
64+ iterationScopeSupport : iterationScopeSupport ?? scopeSupport ,
6265 scopeType : {
6366 type : "namedFunction" ,
6467 } ,
@@ -71,5 +74,8 @@ function getExpectedScope(scopeSupport: ScopeSupport): ScopeSupportInfo {
7174}
7275
7376const unsupported = getExpectedScope ( ScopeSupport . unsupported ) ;
74- const supported = getExpectedScope ( ScopeSupport . supportedButNotPresentInEditor ) ;
77+ const supported = getExpectedScope (
78+ ScopeSupport . supportedButNotPresentInEditor ,
79+ ScopeSupport . supportedAndPresentInEditor ,
80+ ) ;
7581const present = getExpectedScope ( ScopeSupport . supportedAndPresentInEditor ) ;
You can’t perform that action at this time.
0 commit comments