🐛 fix posthog, improve quick edit placeholder message
This commit is contained in:
parent
10da31b313
commit
c3eab000ec
2 changed files with 5 additions and 6 deletions
|
|
@ -149,8 +149,11 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
|
|||
vscode.commands.executeCommand("workbench.action.toggleAuxiliaryBar");
|
||||
},
|
||||
"continue.quickEdit": async () => {
|
||||
const selectionEmpty = vscode.window.activeTextEditor?.selection.isEmpty;
|
||||
const text = await vscode.window.showInputBox({
|
||||
placeHolder: "Describe how to edit the highlighted code",
|
||||
placeHolder: selectionEmpty
|
||||
? "Describe the code you want to generate"
|
||||
: "Describe how to edit the highlighted code",
|
||||
title: "Continue Quick Edit",
|
||||
});
|
||||
if (text) {
|
||||
|
|
|
|||
|
|
@ -12,10 +12,7 @@ const CustomPostHogProvider = ({ children }: PropsWithChildren) => {
|
|||
const [client, setClient] = React.useState<any>(undefined);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
allowAnonymousTelemetry === true ||
|
||||
allowAnonymousTelemetry === undefined
|
||||
) {
|
||||
if (allowAnonymousTelemetry === true) {
|
||||
posthog.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs", {
|
||||
api_host: "https://app.posthog.com",
|
||||
disable_session_recording: true,
|
||||
|
|
@ -24,7 +21,6 @@ const CustomPostHogProvider = ({ children }: PropsWithChildren) => {
|
|||
posthog.opt_in_capturing();
|
||||
setClient(client);
|
||||
} else {
|
||||
posthog.opt_out_capturing();
|
||||
setClient(undefined);
|
||||
}
|
||||
}, [allowAnonymousTelemetry]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue