Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 027fdbc

Browse files
committed
remove dotcom related code from context-filters-provider.ts
1 parent ac287d5 commit 027fdbc

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lib/shared/src/cody-ignore/context-filters-provider.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import { LRUCache } from 'lru-cache'
44
import type { Observable } from 'observable-fns'
55
import { RE2JS as RE2 } from 're2js'
66
import type * as vscode from 'vscode'
7-
import { currentAuthStatus } from '../auth/authStatus'
87
import { isFileURI } from '../common/uri'
98
import { cenv } from '../configuration/environment'
109
import { logDebug, logError } from '../logger'
1110
import { fromVSCodeEvent } from '../misc/observable'
12-
import { isDotCom } from '../sourcegraph-api/environments'
1311
import { graphqlClient } from '../sourcegraph-api/graphql'
1412
import {
1513
type CodyContextFilterItem,
@@ -178,10 +176,6 @@ export class ContextFiltersProvider implements vscode.Disposable {
178176
}
179177

180178
public async isRepoNameIgnored(repoName: string): Promise<boolean> {
181-
if (isDotCom(currentAuthStatus())) {
182-
return false
183-
}
184-
185179
await this.fetchIfNeeded()
186180
return this.isRepoNameIgnored__noFetch(repoName)
187181
}
@@ -214,9 +208,6 @@ export class ContextFiltersProvider implements vscode.Disposable {
214208
}
215209

216210
public async isUriIgnored(uri: vscode.Uri): Promise<IsIgnored> {
217-
if (isDotCom(currentAuthStatus())) {
218-
return false
219-
}
220211
if (!uri || allowedSchemes.has(uri.scheme)) {
221212
return false
222213
}
@@ -280,10 +271,7 @@ export class ContextFiltersProvider implements vscode.Disposable {
280271
}
281272

282273
private hasAllowEverythingFilters(): boolean {
283-
return (
284-
isDotCom(currentAuthStatus()) ||
285-
this.lastContextFiltersResponse === INCLUDE_EVERYTHING_CONTEXT_FILTERS
286-
)
274+
return this.lastContextFiltersResponse === INCLUDE_EVERYTHING_CONTEXT_FILTERS
287275
}
288276

289277
private hasIgnoreEverythingFilters() {

0 commit comments

Comments
 (0)