Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger committed Dec 20, 2022
1 parent cfa7fb5 commit f6587b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/src/AzExtTreeFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export abstract class AzExtTreeFileSystem<TItem extends types.AzExtTreeFileSyste
public abstract getFilePath(item: TItem): string;

public async showTextDocument(item: TItem, options?: TextDocumentShowOptions): Promise<void> {
const uri = this.getUriFromItem(item, item.id);
const uri = this.getUriFromItem(item);
this.itemCache.set(item.id, item);
await window.showTextDocument(uri, options);
}
Expand Down Expand Up @@ -95,7 +95,7 @@ export abstract class AzExtTreeFileSystem<TItem extends types.AzExtTreeFileSyste
this._bufferedEvents.push(...events.map(e => {
return {
type: e.type,
uri: this.getUriFromItem(e.item, '')
uri: this.getUriFromItem(e.item)
};
}));

Expand All @@ -116,11 +116,11 @@ export abstract class AzExtTreeFileSystem<TItem extends types.AzExtTreeFileSyste
return this.itemCache.get(query.id);
}

private getUriFromItem(item: TItem, id: string): Uri {
private getUriFromItem(item: TItem): Uri {
const data: types.AzExtItemUriParts = {
filePath: this.getFilePath(item),
query: {
id
id: item.id
}
};
const query: string = stringifyQuery(data.query);
Expand Down

0 comments on commit f6587b5

Please sign in to comment.