дȫÏîĿÉó²éÎÊÌⲢ·¢²¼ v1.1.9
¸ÄÓñ¾»ú¶ÀÁ¢ CA£¬»ָ´ CLI TLS УÑ飬±£»¤ƾ¾ÝÓëÅäÖò¢·¢±£´档 д Cursor Êý¾ݡ¢»Ự·¾¶¡¢´úÀíÉúÃüÖÜÆڡ¢ģÐÍÇëÇóÓë Skills Îļþ²Ù×÷¡£ Ϊ¶ÀÁ¢ Tab ·þÎñÔö¼ӿͻ§¶˼øȨ£¬Éý¼¶ÒÀÀµÓ빤¾ßÁ´£¬ÍêÉƷ¢²¼ԪÐÅϢͬ²½¡£ Ñé֤£ºÁ½¸ö Go ģ¿éµIJâÊÔ/vet¡¢¹ؼüģ¿é race¡¢ǰ¶˲âÊÔ/Éú²ú¹¹½¨/Éó¼ơ¢ Go ¿ɴï©¶´ɨÃèÓë macOS/Linux ¿ÉÐÐģ¿齻²æ±àÒë¾ùͨ¹ý¡£ Windows ¸ôÀëÆô¶¯ͨ¹ý£»δÍê³ɵĵã»÷ðÑ̺ÍԭÉúƽ̨Ñé֤¼ûÉó²鱨¸档
This commit is contained in:
@@ -2,6 +2,7 @@ package client
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"cursor/internal/appdata"
|
||||
serverconfig "cursor/internal/backend/server/config"
|
||||
@@ -22,8 +23,8 @@ func (s *ProxyService) LoadUserConfig() (UserConfig, error) {
|
||||
if app != nil {
|
||||
ctx = app.Context()
|
||||
}
|
||||
if s.backendHost != nil {
|
||||
return s.backendHost.LoadConfig(ctx)
|
||||
if s.backend() != nil {
|
||||
return s.backend().LoadConfig(ctx)
|
||||
}
|
||||
if s.store == nil {
|
||||
return serverconfig.DefaultConfig(), nil
|
||||
@@ -36,6 +37,9 @@ func (s *ProxyService) SaveUserConfig(cfg UserConfig) error {
|
||||
if s == nil {
|
||||
return nil
|
||||
}
|
||||
if cfg.Revision == "" {
|
||||
return fmt.Errorf("配置缺少 revision,请重新加载后保存")
|
||||
}
|
||||
app := application.Get()
|
||||
ctx := context.Background()
|
||||
if app != nil {
|
||||
@@ -45,8 +49,8 @@ func (s *ProxyService) SaveUserConfig(cfg UserConfig) error {
|
||||
normalized UserConfig
|
||||
err error
|
||||
)
|
||||
if s.backendHost != nil {
|
||||
normalized, err = s.backendHost.SaveConfig(ctx, cfg)
|
||||
if s.backend() != nil {
|
||||
normalized, err = s.backend().SaveConfig(ctx, cfg)
|
||||
} else if s.store != nil {
|
||||
normalized, err = s.store.Save(ctx, cfg)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user