File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 "vscode" : " ^1.116.0" ,
1515 "node" : " >=24"
1616 },
17- "extensionKind" : [
18- " ui" ,
19- " workspace"
20- ],
2117 "categories" : [
2218 " AI" ,
2319 " Chat" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ export async function activate(context: vscode.ExtensionContext) {
1717
1818 logger . info (
1919 `Activating extension version=${ context . extension . packageJSON . version } ` +
20+ ` vscode=${ vscode . version } ` +
21+ ` extensionKind=${ formatExtensionKind ( context . extension . extensionKind ) } ` +
22+ ` remoteName=${ vscode . env . remoteName ?? 'none' } ` +
23+ ` uiKind=${ formatUiKind ( vscode . env . uiKind ) } ` +
24+ ` platform=${ process . platform } ` +
25+ ` arch=${ process . arch } ` +
2026 ` debugMode=${ getDebugMode ( ) } ` ,
2127 ) ;
2228
@@ -105,6 +111,28 @@ async function openRequestDumpsFolder(context: vscode.ExtensionContext): Promise
105111 }
106112}
107113
114+ function formatExtensionKind ( kind : vscode . ExtensionKind ) : string {
115+ switch ( kind ) {
116+ case vscode . ExtensionKind . UI :
117+ return 'ui' ;
118+ case vscode . ExtensionKind . Workspace :
119+ return 'workspace' ;
120+ default :
121+ return String ( kind ) ;
122+ }
123+ }
124+
125+ function formatUiKind ( kind : vscode . UIKind ) : string {
126+ switch ( kind ) {
127+ case vscode . UIKind . Desktop :
128+ return 'desktop' ;
129+ case vscode . UIKind . Web :
130+ return 'web' ;
131+ default :
132+ return String ( kind ) ;
133+ }
134+ }
135+
108136async function showWelcomeIfNeeded (
109137 context : vscode . ExtensionContext ,
110138 provider : DeepSeekChatProvider ,
You can’t perform that action at this time.
0 commit comments