Skip to content

Commit dc32fc8

Browse files
Update comments
1 parent 7ae7b30 commit dc32fc8

File tree

1 file changed

+12
-8
lines changed
  • packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/SurroundingPairScopeHandler

1 file changed

+12
-8
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/SurroundingPairScopeHandler/InteriorScopeHandler.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ export class InteriorScopeHandler extends BaseScopeHandler {
7979
this.languageId,
8080
);
8181

82-
// If the scope type is explicit (ie, the user has specified a scope
83-
// type), then we want to prioritize language scopes. The user might
84-
// have said something like "inside element" and then we don't want to
85-
// yield the interior of the `<div>` pair first.
82+
/*
83+
If the scope type is explicit (ie, the user has specified a scope
84+
type), then we want to prioritize language scopes. The user might
85+
have said something like "inside element" and then we don't want to
86+
yield the interior of the `<div>` pair first.
87+
*/
8688
if (this.scopeType.explicitScopeType) {
8789
if (languageScopeHandler == null) {
8890
return pairScopeHandler;
@@ -112,10 +114,12 @@ export class InteriorScopeHandler extends BaseScopeHandler {
112114
}
113115

114116
private shouldYield(targetDomain: Range, scope: TargetScope): boolean {
115-
// For an explicit scope type we only yield scopes that are contained within
116-
// the target domain. E.g the user said "inside token", then we don't want
117-
// to yield scopes that are larger than the token. The definition of an
118-
// interior is that it's inside the scope.
117+
/*
118+
For an explicit scope type we only yield scopes that are contained within
119+
the target domain. E.g the user said "inside token", then we don't want
120+
to yield scopes that are larger than the token. The definition of an
121+
interior is that it's inside the scope.
122+
*/
119123

120124
return (
121125
!this.scopeType.explicitScopeType || targetDomain.contains(scope.domain)

0 commit comments

Comments
 (0)