File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
components/ide-service/pkg/server Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,23 @@ type WorkspaceConfig struct {
209
209
Jetbrains * JetBrainsConfig `json:"jetbrains,omitempty"`
210
210
}
211
211
212
+ type Task struct {
213
+ Init string `json:"task,omitempty"`
214
+ }
215
+
216
+ var JetbrainsCode map [string ]string
217
+
218
+ func init () {
219
+ JetbrainsCode ["intellij" ] = "IIU"
220
+ JetbrainsCode ["goland" ] = "GO"
221
+ JetbrainsCode ["pycharm" ] = "PCP"
222
+ JetbrainsCode ["phpstorm" ] = "PS"
223
+ JetbrainsCode ["rubymine" ] = "RM"
224
+ JetbrainsCode ["webstorm" ] = "WS"
225
+ JetbrainsCode ["rider" ] = "RD"
226
+ JetbrainsCode ["clion" ] = "CL"
227
+ }
228
+
212
229
func (s * IDEServiceServer ) resolveReferrerIDE (wsCtx * WorkspaceContext , chosenIDEName string ) (ideName string , ideOption config.IDEOption ) {
213
230
if wsCtx == nil || wsCtx .Referrer == "" {
214
231
return
@@ -358,7 +375,9 @@ func (s *IDEServiceServer) ResolveWorkspaceConfig(ctx context.Context, req *api.
358
375
for _ , alias := range jbGW .DesktopIDEs {
359
376
prebuilds := getPrebuilds (wsConfig , alias )
360
377
if prebuilds != nil {
378
+ if prebuilds .Version == "latest" {
361
379
380
+ }
362
381
}
363
382
}
364
383
}
You can’t perform that action at this time.
0 commit comments