forked from sourcegraph/cody
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpers.ts
24 lines (20 loc) · 805 Bytes
/
helpers.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import * as vscode from 'vscode'
import { outputChannel } from '../log'
/**
* 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.openAutocompleteTraceView`: boolean
* - `cody.dev.openOutputConsole`: boolean
*/
export function onActivationDevelopmentHelpers(): void {
const settings = vscode.workspace.getConfiguration('cody.dev')
if (settings.get('openAutocompleteTraceView')) {
void vscode.commands.executeCommand('cody.autocomplete.openTraceView')
}
if (settings.get('openOutputConsole')) {
outputChannel.show()
}
}