@kolisachint/hoocode-agent 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -778,6 +778,9 @@ export class InteractiveMode {
778
778
  })
779
779
  .filter((extension) => !this.isPackageSource(extension.sourceInfo));
780
780
  return extensions.map((extension) => {
781
+ if (extension.displayName) {
782
+ return extension.displayName;
783
+ }
781
784
  if (this.isPackageSource(extension.sourceInfo)) {
782
785
  return this.getCompactExtensionLabel(extension.path, extension.sourceInfo);
783
786
  }
@@ -952,6 +955,7 @@ export class InteractiveMode {
952
955
  this.session.resourceLoader.getExtensions().extensions.map((extension) => ({
953
956
  path: extension.path,
954
957
  sourceInfo: extension.sourceInfo,
958
+ displayName: extension.displayName,
955
959
  }));
956
960
  const sourceInfos = new Map();
957
961
  for (const extension of extensions) {
@@ -1038,8 +1042,8 @@ export class InteractiveMode {
1038
1042
  if (extensions.length > 0) {
1039
1043
  const groups = this.buildScopeGroups(extensions);
1040
1044
  const extList = this.formatScopeGroups(groups, {
1041
- formatPath: (item) => this.formatExtensionDisplayPath(item.path),
1042
- formatPackagePath: (item) => this.formatExtensionDisplayPath(this.getShortPath(item.path, item.sourceInfo)),
1045
+ formatPath: (item) => item.displayName ?? this.formatExtensionDisplayPath(item.path),
1046
+ formatPackagePath: (item) => item.displayName ?? this.formatExtensionDisplayPath(this.getShortPath(item.path, item.sourceInfo)),
1043
1047
  });
1044
1048
  const extensionCompactList = formatCompactList(this.getCompactExtensionLabels(extensions));
1045
1049
  addLoadedSection("Extensions", extensionCompactList, extList, "mdHeading");