¸ÄÓñ¾»ú¶ÀÁ¢ CA£¬»ָ´ CLI TLS УÑ飬±£»¤ƾ¾ÝÓëÅäÖò¢·¢±£´档 д Cursor Êý¾ݡ¢»Ự·¾¶¡¢´úÀíÉúÃüÖÜÆڡ¢ģÐÍÇëÇóÓë Skills Îļþ²Ù×÷¡£ Ϊ¶ÀÁ¢ Tab ·þÎñÔö¼ӿͻ§¶˼øȨ£¬Éý¼¶ÒÀÀµÓ빤¾ßÁ´£¬ÍêÉƷ¢²¼ԪÐÅϢͬ²½¡£ Ñé֤£ºÁ½¸ö Go ģ¿éµIJâÊÔ/vet¡¢¹ؼüģ¿é race¡¢ǰ¶˲âÊÔ/Éú²ú¹¹½¨/Éó¼ơ¢ Go ¿ɴï©¶´ɨÃèÓë macOS/Linux ¿ÉÐÐģ¿齻²æ±àÒë¾ùͨ¹ý¡£ Windows ¸ôÀëÆô¶¯ͨ¹ý£»δÍê³ɵĵã»÷ðÑ̺ÍԭÉúƽ̨Ñé֤¼ûÉó²鱨¸档
22 lines
625 B
Go
22 lines
625 B
Go
package client
|
|
|
|
import (
|
|
"context"
|
|
|
|
localruntime "cursor/internal/runtime"
|
|
)
|
|
|
|
// runtimeConfigSnapshot 用于处理与 runtimeConfigSnapshot 相关的逻辑。
|
|
func (s *ProxyService) runtimeConfigSnapshot(_ context.Context) (localruntime.RuntimeConfigSnapshot, error) {
|
|
if s == nil {
|
|
return localruntime.RuntimeConfigSnapshot{}, nil
|
|
}
|
|
if s.backend() != nil && s.backend().ConfigManager() != nil {
|
|
return s.backend().ConfigManager().LegacyRuntimeSnapshot(context.Background())
|
|
}
|
|
if s.store == nil {
|
|
return localruntime.RuntimeConfigSnapshot{}, nil
|
|
}
|
|
return s.store.LegacyRuntimeSnapshot(context.Background())
|
|
}
|