Skip to content

Commit d9d8533

Browse files
Renamed to containment icon
1 parent 447a9a1 commit d9d8533

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/cursorless-vscode/src/ScopeTreeProvider.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
169169
private getScopeTypesWithSupport(
170170
scopeSupport: ScopeSupport,
171171
): ScopeSupportTreeItem[] {
172-
const getIntersectionIcon = (() => {
172+
const getContainmentIcon = (() => {
173173
if (scopeSupport !== ScopeSupport.supportedAndPresentInEditor) {
174174
return null;
175175
}
@@ -179,7 +179,7 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
179179
}
180180
const selection = editor.selections[0];
181181
return (scopeType: ScopeType) => {
182-
return this.getIntersectionIcon(editor, selection, scopeType);
182+
return this.getContainmentIcon(editor, selection, scopeType);
183183
};
184184
})();
185185

@@ -200,7 +200,7 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
200200
new ScopeSupportTreeItem(
201201
supportLevel,
202202
isEqual(supportLevel.scopeType, this.scopeVisualizer.scopeType),
203-
getIntersectionIcon?.(supportLevel.scopeType),
203+
getContainmentIcon?.(supportLevel.scopeType),
204204
),
205205
)
206206
.sort((a, b) => {
@@ -224,7 +224,7 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
224224
});
225225
}
226226

227-
private getIntersectionIcon(
227+
private getContainmentIcon(
228228
editor: TextEditor,
229229
selection: Selection,
230230
scopeType: ScopeType,
@@ -276,7 +276,7 @@ class ScopeSupportTreeItem extends TreeItem {
276276
constructor(
277277
public readonly scopeTypeInfo: ScopeTypeInfo,
278278
isVisualized: boolean,
279-
intersectionIcon: string | undefined,
279+
containmentIcon: string | undefined,
280280
) {
281281
let label: string;
282282
let tooltip: string;
@@ -303,8 +303,8 @@ class ScopeSupportTreeItem extends TreeItem {
303303

304304
this.tooltip = tooltip == null ? tooltip : new MarkdownString(tooltip);
305305
this.description =
306-
intersectionIcon != null
307-
? `${intersectionIcon} ${scopeTypeInfo.humanReadableName}`
306+
containmentIcon != null
307+
? `${containmentIcon} ${scopeTypeInfo.humanReadableName}`
308308
: scopeTypeInfo.humanReadableName;
309309

310310
this.command = isVisualized

0 commit comments

Comments
 (0)