File tree Expand file tree Collapse file tree 2 files changed +16
-23
lines changed
extensions/vscode/src/activation Expand file tree Collapse file tree 2 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,10 @@ export async function activateExtension(context: vscode.ExtensionContext) {
78
78
// vscode.commands.executeCommand("pearai.startOnboarding");
79
79
// }
80
80
81
+ setupPearAPPLayout ( context ) ;
82
+
81
83
if ( isFirstLaunch ( context ) ) {
82
84
vscode . commands . executeCommand ( "pearai.startOnboarding" ) ;
83
- setupPearAPPLayout ( context ) ;
84
85
}
85
86
86
87
// vscode.commands.executeCommand("pearai.focusContinueInput");
@@ -114,7 +115,16 @@ export async function activateExtension(context: vscode.ExtensionContext) {
114
115
115
116
// Custom Layout settings that we want default for PearAPP
116
117
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
+ }
120
130
} ;
Original file line number Diff line number Diff line change @@ -15,23 +15,6 @@ import _ from "lodash";
15
15
import { useWebviewListener } from "../../hooks/useWebviewListener" ;
16
16
import { Button } from "@/components/ui/button" ;
17
17
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
-
35
18
function Onboarding ( ) {
36
19
const navigate = useNavigate ( ) ;
37
20
const dispatch = useDispatch ( ) ;
@@ -54,8 +37,8 @@ function Onboarding() {
54
37
style = { { marginRight : "5px" } }
55
38
/>
56
39
< 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
59
42
variant = "animated"
60
43
size = "lg"
61
44
className = "m-5 flex flex-col justify-center items-center bg-button text-button-foreground"
You can’t perform that action at this time.
0 commit comments