File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33## 新增
44
551 . 新增过渡性弹窗动画
6+ 2 . 增加vibe coding 支持open ai格式的API调用
67
78## 优化
89
Original file line number Diff line number Diff line change 33 "uuid" : " 7ca98ae04b7142599ab107e34acc8e5e" ,
44 "displayName" : " 嘉立创EDA代码编辑器" ,
55 "description" : " 支持中文联想的EDA脚本代码编辑器,支持代码高亮、自动补全、函数提示,AI注释,AI报错分析等功能。" ,
6- "version" : " 2.2.2 " ,
6+ "version" : " 2.3.1 " ,
77 "publisher" : " 嘉立创EDA" ,
88 "engines" : {
99 "eda" : " ^2.2.60 || >=3.1.59"
Original file line number Diff line number Diff line change 2222 < li > < button id ="setting-btn "> 切换主题</ button > </ li >
2323 < li > < button id ="SaveinLeft-btn "> 保存到列表</ button > </ li >
2424 < li > < button id ="Ext-btn "> 插件管理</ button > </ li >
25- < li > < button id ="ai-btn "> AI编程</ button > </ li >
25+ < li > < button id ="ai-btn "> AI编程:关 </ button > </ li >
2626 <!-- <li><button id="example-btn" style="display: none;">案例</button></li>
2727 <li><button id="about-btn" style="display: none;">关于</button></li> -->
2828 </ ul >
143143 } ) ;
144144 // 开启AI辅助支持
145145 document . getElementById ( 'ai-btn' ) . addEventListener ( 'click' , ( ) => {
146- activateECTAI ( editor ) ;
146+ SetVibeCodingConfig ( ) ;
147147 } ) ;
148148 // 保存代码
149149 document . getElementById ( 'save-btn' ) . addEventListener ( 'click' , async ( ) => {
Original file line number Diff line number Diff line change 1+ async function SetVibeCodingConfig ( ) {
2+ const flag = await eda . sys_Storage . getExtensionUserConfig ( 'Vibe_Coding_Config' ) ;
3+ if ( flag == 'true' ) {
4+ document . getElementById ( 'ai-chat' ) . style . display = '' ;
5+ document . getElementById ( 'ai-btn' ) . innerText = 'AI编程:开' ;
6+ eda . sys_Storage . setExtensionUserConfig ( 'Vibe_Coding_Config' , 'false' ) ;
7+ } else {
8+ document . getElementById ( 'ai-chat' ) . style . display = 'none' ;
9+ document . getElementById ( 'ai-btn' ) . innerText = 'AI编程:关' ;
10+ eda . sys_Storage . setExtensionUserConfig ( 'Vibe_Coding_Config' , 'true' ) ;
11+ }
12+ }
13+
114function initAiChat ( ) {
215 const defaultConfig = {
316 apiKey : '' ,
You can’t perform that action at this time.
0 commit comments