@@ -4,12 +4,10 @@ import { LRUCache } from 'lru-cache'
44import type { Observable } from 'observable-fns'
55import { RE2JS as RE2 } from 're2js'
66import type * as vscode from 'vscode'
7- import { currentAuthStatus } from '../auth/authStatus'
87import { isFileURI } from '../common/uri'
98import { cenv } from '../configuration/environment'
109import { logDebug , logError } from '../logger'
1110import { fromVSCodeEvent } from '../misc/observable'
12- import { isDotCom } from '../sourcegraph-api/environments'
1311import { graphqlClient } from '../sourcegraph-api/graphql'
1412import {
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