File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/client/common/application/commands Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,18 @@ export class ReportIssueCommandHandler implements IExtensionSingleActivationServ
105105 const installedExtensions = getExtensions ( )
106106 . filter ( ( extension ) => ! extension . id . startsWith ( 'vscode.' ) )
107107 . sort ( ( a , b ) => {
108- if ( a . packageJSON . displayName && b . packageJSON . displayName ) {
109- return a . packageJSON . displayName . localeCompare ( b . packageJSON . displayName ) ;
108+ if ( a . packageJSON . name && b . packageJSON . name ) {
109+ return a . packageJSON . name . localeCompare ( b . packageJSON . name ) ;
110110 }
111111 return a . id . localeCompare ( b . id ) ;
112112 } )
113- . map (
114- ( extension ) =>
115- `|${ extension . packageJSON . displayName } |${ extension . id } |${ extension . packageJSON . version } |` ,
116- ) ;
113+ . map ( ( extension ) => {
114+ let publisher : string = extension . packageJSON . publisher as string ;
115+ if ( publisher ) {
116+ publisher = publisher . substring ( 0 , 3 ) ;
117+ }
118+ return `|${ extension . packageJSON . name } |${ publisher } |${ extension . packageJSON . version } |` ;
119+ } ) ;
117120
118121 await this . commandManager . executeCommand ( 'workbench.action.openIssueReporter' , {
119122 extensionId : 'ms-python.python' ,
You can’t perform that action at this time.
0 commit comments