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() {
54
54
}
55
55
` ;
56
56
57
- function getExpectedScope ( scopeSupport : ScopeSupport ) : ScopeSupportInfo {
57
+ function getExpectedScope (
58
+ scopeSupport : ScopeSupport ,
59
+ iterationScopeSupport ?: ScopeSupport ,
60
+ ) : ScopeSupportInfo {
58
61
return {
59
62
humanReadableName : "named function" ,
60
63
isLanguageSpecific : true ,
61
- iterationScopeSupport : scopeSupport ,
64
+ iterationScopeSupport : iterationScopeSupport ?? scopeSupport ,
62
65
scopeType : {
63
66
type : "namedFunction" ,
64
67
} ,
@@ -71,5 +74,8 @@ function getExpectedScope(scopeSupport: ScopeSupport): ScopeSupportInfo {
71
74
}
72
75
73
76
const unsupported = getExpectedScope ( ScopeSupport . unsupported ) ;
74
- const supported = getExpectedScope ( ScopeSupport . supportedButNotPresentInEditor ) ;
77
+ const supported = getExpectedScope (
78
+ ScopeSupport . supportedButNotPresentInEditor ,
79
+ ScopeSupport . supportedAndPresentInEditor ,
80
+ ) ;
75
81
const present = getExpectedScope ( ScopeSupport . supportedAndPresentInEditor ) ;
You can’t perform that action at this time.
0 commit comments