Skip to content

Commit

Permalink
wip web
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed May 6, 2024
1 parent f7983ba commit ef4797d
Show file tree
Hide file tree
Showing 29 changed files with 830 additions and 147 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
.stylelintcache
dist/
out/
*.tsbuildinfo
.DS_Store
.env
Expand Down
2 changes: 1 addition & 1 deletion agent/src/vscode-shim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ export const commands = _commands as typeof vscode.commands

const _env: Partial<typeof vscode.env> = {
uriScheme: 'file',
appRoot: process.cwd(),
appRoot: process.cwd?.(),
uiKind: UIKind.Web,
language: process.env.language,
clipboard: {
Expand Down
2 changes: 1 addition & 1 deletion lib/shared/src/sourcegraph-api/graphql/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ export class SourcegraphGraphQLAPIClient {
if (this.config.accessToken) {
headers.set('Authorization', `token ${this.config.accessToken}`)
}
if (this.anonymousUserID) {
if (this.anonymousUserID && !process.env.CODY_WEB_DONT_SET_SOME_HEADERS) {
headers.set('X-Sourcegraph-Actor-Anonymous-UID', this.anonymousUserID)
}

Expand Down
Loading

0 comments on commit ef4797d

Please sign in to comment.