Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed Oct 26, 2023
1 parent 49ae9ed commit a414172
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/web/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { abapGit } from './abapgit';

export type SubFiles = {name: string, file: vscode.Uri}[];

export interface ArtifactInformation {
type: string,
name: string,
export type ArtifactInformation = {
abapType: string,
abapName: string,
description: string,
mainFile: vscode.Uri,
subFiles: SubFiles;
}
};

export async function findArtifacts(): Promise<ArtifactInformation[]> {
const ret: ArtifactInformation[] = [];
Expand All @@ -35,13 +35,13 @@ export async function findArtifacts(): Promise<ArtifactInformation[]> {

const type = split[1].toUpperCase();
const name = split[0].toUpperCase();
const found = ret.find((r) => r.type === type && r.name === name);
const found = ret.find((r) => r.abapType === type && r.abapName === name);
if (found) {
found.subFiles.push({name: Utils.basename(filename), file: filename});
} else {
ret.push({
type: type,
name: name,
abapType: type,
abapName: name,
description: type,
mainFile: filename,
subFiles: [],
Expand Down
8 changes: 4 additions & 4 deletions src/web/artifacts_tree_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export class ArtifactsTreeProvider implements vscode.TreeDataProvider<ArtifactTr
if (parent !== undefined) {
for (const sub of parent.subFiles) {
treeItems.push(new ArtifactTreeItem({
type: "",
name: sub.name,
abapType: "",
abapName: sub.name,
description: "",
mainFile: sub.file,
subFiles: [],
Expand All @@ -39,8 +39,8 @@ export class ArtifactTreeItem extends vscode.TreeItem {
state = vscode.TreeItemCollapsibleState.Collapsed;
}

super(info.name, state);
this.tooltip = info.type;
super(info.abapName, state);
this.tooltip = info.abapType;
this.subFiles = info.subFiles;
this.iconPath = vscode.ThemeIcon.File;
this.description = info.description;
Expand Down

0 comments on commit a414172

Please sign in to comment.