File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class ExtensionCommandsFeature implements IFeature {
156
156
157
157
private command : vscode . Disposable ;
158
158
private languageClient : LanguageClient ;
159
- private extensionCommands = [ ] ;
159
+ private extensionCommands : ExtensionCommand [ ] = [ ] ;
160
160
161
161
constructor ( ) {
162
162
this . command = vscode . commands . registerCommand ( 'PowerShell.ShowAdditionalCommands' , ( ) => {
@@ -235,6 +235,10 @@ export class ExtensionCommandsFeature implements IFeature {
235
235
name : command . name ,
236
236
displayName : command . displayName
237
237
} ) ;
238
+
239
+ this . extensionCommands . sort (
240
+ ( a : ExtensionCommand , b : ExtensionCommand ) =>
241
+ a . name . localeCompare ( b . name ) ) ;
238
242
}
239
243
240
244
private showExtensionCommands ( client : LanguageClient ) : Thenable < InvokeExtensionCommandRequestArguments > {
@@ -251,7 +255,7 @@ export class ExtensionCommandsFeature implements IFeature {
251
255
this . extensionCommands . map < ExtensionCommandQuickPickItem > ( command => {
252
256
return {
253
257
label : command . displayName ,
254
- description : "" ,
258
+ description : command . name ,
255
259
command : command
256
260
}
257
261
} ) ;
You can’t perform that action at this time.
0 commit comments