Commit 28662ab 1 parent 791cb75 commit 28662ab Copy full SHA for 28662ab
File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,15 @@ export function activate(context: vscode.ExtensionContext) {
18
18
// 初始化配置管理器并添加到订阅列表
19
19
context . subscriptions . push ( ConfigurationManager . getInstance ( ) ) ;
20
20
21
- // 在扩展激活时验证配置
22
- ConfigurationManager . getInstance ( )
23
- . validateConfiguration ( )
24
- . then ( ( isValid ) => {
25
- if ( ! isValid ) {
26
- console . log ( "Configuration validation failed" ) ;
27
- }
28
- } ) ;
29
-
30
21
// 注册所有命令
31
22
registerCommands ( context ) ;
32
23
} catch ( e ) {
33
24
console . error ( "Error activating extension:" , e ) ;
34
25
// 添加用户可见的错误提示
35
- NotificationHandler . error ( "extension.activation.failed" , e instanceof Error ? e . message : String ( e ) ) ;
26
+ NotificationHandler . error (
27
+ "extension.activation.failed" ,
28
+ e instanceof Error ? e . message : String ( e )
29
+ ) ;
36
30
throw e ;
37
31
}
38
32
}
You can’t perform that action at this time.
0 commit comments