Skip to content

Commit a9eb908

Browse files
LiGaCuJiatong Li
andauthored
fix(amazonq): save one unnecessary listWorkspaceMetadata call (#1742)
Co-authored-by: Jiatong Li <[email protected]>
1 parent d010c66 commit a9eb908

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

server/aws-lsp-codewhisperer/src/language-server/workspaceContext/workspaceFolderManager.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,6 @@ export class WorkspaceFolderManager {
138138
}
139139

140140
async processNewWorkspaceFolders(folders: WorkspaceFolder[]) {
141-
// Check if user is opted in before trying to process any files
142-
const { optOut } = await this.listWorkspaceMetadata()
143-
if (optOut) {
144-
this.logging.log('User is opted out, clearing resources and starting opt-out monitor')
145-
this.isOptedOut = true
146-
await this.clearAllWorkspaceResources()
147-
await this.startOptOutMonitor()
148-
return
149-
}
150-
151141
// Wait for remote workspace id
152142
await this.waitForRemoteWorkspaceId()
153143

0 commit comments

Comments
 (0)