@@ -82,28 +82,32 @@ func main() {
82
82
if err != nil {
83
83
log .WithError (err ).Error ("failed to parse .gitpod.yml" )
84
84
}
85
- version_2022_1 , _ := version .NewVersion ("2022.1" )
86
- if version_2022_1 .LessThanOrEqual (backendVersion ) {
87
- err = installPlugins (repoRoot , gitpodConfig , alias )
88
- installPluginsCost := time .Now ().Local ().Sub (startTime ).Milliseconds ()
89
- if err != nil {
90
- log .WithError (err ).WithField ("cost" , installPluginsCost ).Error ("installing repo plugins: done" )
91
- } else {
92
- log .WithField ("cost" , installPluginsCost ).Info ("installing repo plugins: done" )
93
- }
94
- }
95
85
86
+ // configure vmoptions
96
87
idePrefix := alias
97
88
if alias == "intellij" {
98
89
idePrefix = "idea"
99
90
}
100
91
// [idea64|goland64|pycharm64|phpstorm64].vmoptions
101
92
vmOptionsPath := fmt .Sprintf ("/ide-desktop/backend/bin/%s64.vmoptions" , idePrefix )
102
-
103
93
err = configureVMOptions (gitpodConfig , alias , vmOptionsPath )
104
94
if err != nil {
105
95
log .WithError (err ).Error ("failed to configure vmoptions" )
106
96
}
97
+
98
+ // install project plugins
99
+ version_2022_1 , _ := version .NewVersion ("2022.1" )
100
+ if version_2022_1 .LessThanOrEqual (backendVersion ) {
101
+ err = installPlugins (repoRoot , gitpodConfig , alias )
102
+ installPluginsCost := time .Now ().Local ().Sub (startTime ).Milliseconds ()
103
+ if err != nil {
104
+ log .WithError (err ).WithField ("cost" , installPluginsCost ).Error ("installing repo plugins: done" )
105
+ } else {
106
+ log .WithField ("cost" , installPluginsCost ).Info ("installing repo plugins: done" )
107
+ }
108
+ }
109
+
110
+ // install gitpod plugin
107
111
err = linkRemotePlugin ()
108
112
if err != nil {
109
113
log .WithError (err ).Error ("failed to install gitpod-remote plugin" )
0 commit comments