Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CODY_FOCUS_SIDEBAR_ON_STARTUP #796

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"postinstall": "pnpm download-wasm",
"dev": "pnpm run -s dev:desktop",
"dev:insiders": "pnpm run -s dev:desktop:insiders",
"dev:desktop": "pnpm run -s build:dev:desktop && CODY_FOCUS_SIDEBAR_ON_STARTUP=1 NODE_ENV=development code --extensionDevelopmentPath=$PWD --disable-extension=sourcegraph.cody-ai --disable-extension=github.copilot --disable-extension=github.copilot-nightly --inspect-extensions=9333 --new-window . --goto ./src/logged-rerank.ts:16:5",
"dev:desktop:insiders": "pnpm run -s build:dev:desktop && CODY_FOCUS_SIDEBAR_ON_STARTUP=1 NODE_ENV=development code-insiders --extensionDevelopmentPath=$PWD --disable-extension=sourcegraph.cody-ai --disable-extension=github.copilot --disable-extension=github.copilot-nightly --inspect-extensions=9333 --new-window . --goto ./src/logged-rerank.ts:16:5",
"dev:desktop": "pnpm run -s build:dev:desktop && NODE_ENV=development code --extensionDevelopmentPath=$PWD --disable-extension=sourcegraph.cody-ai --disable-extension=github.copilot --disable-extension=github.copilot-nightly --inspect-extensions=9333 --new-window . --goto ./src/logged-rerank.ts:16:5",
"dev:desktop:insiders": "pnpm run -s build:dev:desktop && NODE_ENV=development code-insiders --extensionDevelopmentPath=$PWD --disable-extension=sourcegraph.cody-ai --disable-extension=github.copilot --disable-extension=github.copilot-nightly --inspect-extensions=9333 --new-window . --goto ./src/logged-rerank.ts:16:5",
"dev:web": "pnpm run -s build:dev:web && pnpm run -s _dev:vscode-test-web --browserType none",
"watch:dev:web": "concurrently \"pnpm run -s watch:build:dev:web\" \"pnpm run -s _dev:vscode-test-web --browserType none\"",
"_dev:vscode-test-web": "vscode-test-web --extensionDevelopmentPath=. ${WORKSPACE-test/fixtures/workspace}",
Expand Down
8 changes: 1 addition & 7 deletions vscode/src/dev/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
import * as vscode from 'vscode'

/**
* A development helper that runs on activation to make the edit-debug loop easier by (e.g.) opening
* the Cody sidebar automatically on launch.
* A development helper that runs on activation to make the edit-debug loop easier.
*
* The following VS Code settings are respected. (They are not part of this extension's contributed
* configuration JSON Schema, so they will not validate in your VS Code user settings file.)
*
* - `cody.dev.focusSidebarOnStartup`: boolean (or env var `CODY_FOCUS_SIDEBAR_ON_STARTUP`)
* - `cody.dev.openAutocompleteTraceView`: boolean
*/
export function onActivationDevelopmentHelpers(): void {
const settings = vscode.workspace.getConfiguration('cody.dev')

if (settings.get('focusSidebarOnStartup') || process.env.CODY_FOCUS_SIDEBAR_ON_STARTUP) {
void vscode.commands.executeCommand('cody.chat.focus')
}

if (settings.get('openAutocompleteTraceView')) {
void vscode.commands.executeCommand('cody.autocomplete.openTraceView')
}
Expand Down
Loading