Skip to content

Commit 8afb409

Browse files
Himanshu-Singh-Chauhanjpan8866
authored andcommitted
misc fixes (#166)
* misc fixes * remove wraped tabs * format the text in creator and perplexity * hide sidebars on new window * restart ext host after imports * revert copy settings * revert copy settings --------- Co-authored-by: John Pan <[email protected]>
1 parent 0d944e3 commit 8afb409

File tree

2 files changed

+16
-23
lines changed

2 files changed

+16
-23
lines changed

extensions/vscode/src/activation/activate.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ export async function activateExtension(context: vscode.ExtensionContext) {
7878
// vscode.commands.executeCommand("pearai.startOnboarding");
7979
// }
8080

81+
setupPearAPPLayout(context);
82+
8183
if (isFirstLaunch(context)) {
8284
vscode.commands.executeCommand("pearai.startOnboarding");
83-
setupPearAPPLayout(context);
8485
}
8586

8687
// vscode.commands.executeCommand("pearai.focusContinueInput");
@@ -114,7 +115,16 @@ export async function activateExtension(context: vscode.ExtensionContext) {
114115

115116
// Custom Layout settings that we want default for PearAPP
116117
const setupPearAPPLayout = async (context: vscode.ExtensionContext) => {
117-
vscode.commands.executeCommand("workbench.action.movePearExtensionToAuxBar");
118-
// set activity bar position to top
119-
vscode.commands.executeCommand("workbench.action.activityBarLocation.top");
118+
119+
if(!vscode.workspace.workspaceFolders){
120+
vscode.commands.executeCommand("workbench.action.closeSidebar");
121+
vscode.commands.executeCommand("workbench.action.closeAuxiliaryBar");
122+
}
123+
124+
if (isFirstLaunch(context)) {
125+
// move pearai extension to auxiliary bar (secondary side bar) if there is a folder open
126+
vscode.commands.executeCommand("workbench.action.movePearExtensionToAuxBar");
127+
// set activity bar position to top
128+
vscode.commands.executeCommand("workbench.action.activityBarLocation.top");
129+
}
120130
};

gui/src/pages/onboarding/Onboarding.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,6 @@ import _ from "lodash";
1515
import { useWebviewListener } from "../../hooks/useWebviewListener";
1616
import { Button } from "@/components/ui/button";
1717

18-
const EllipsisContainer = styled.span`
19-
display: inline-block;
20-
text-align: left;
21-
&::after {
22-
content: '';
23-
position: absolute;
24-
animation: ellipsis 1.5s steps(4, end) infinite;
25-
}
26-
27-
@keyframes ellipsis {
28-
0%, 20% { content: ''; }
29-
40% { content: '.'; }
30-
60% { content: '..'; }
31-
80%, 100% { content: '...'; }
32-
}
33-
`;
34-
3518
function Onboarding() {
3619
const navigate = useNavigate();
3720
const dispatch = useDispatch();
@@ -54,8 +37,8 @@ function Onboarding() {
5437
style={{ marginRight: "5px" }}
5538
/>
5639
<h1 className="text-center">Welcome to PearAI!</h1>
57-
<h3 className="mx-3 text-center flex">Begin your journey by logging in<EllipsisContainer /></h3>
58-
<Button
40+
<h3 className="mx-3 text-center flex">Begin your journey by logging in</h3>
41+
<Button
5942
variant="animated"
6043
size="lg"
6144
className="m-5 flex flex-col justify-center items-center bg-button text-button-foreground"

0 commit comments

Comments
 (0)