Skip to content

Commit

Permalink
Update appservice package to fix Files feature (#2550)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger authored Jul 20, 2023
1 parent 132bd0f commit 64414cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@
"@azure/arm-resources": "^5.0.0",
"@azure/core-client": "^1.7.3",
"@azure/core-rest-pipeline": "^1.11.0",
"@microsoft/vscode-azext-azureappservice": "^2.1.2",
"@microsoft/vscode-azext-azureappservice": "^2.2.0",
"@microsoft/vscode-azext-azureappsettings": "^0.2.0",
"@microsoft/vscode-azext-azureutils": "^2.0.1",
"@microsoft/vscode-azext-utils": "^2.0.1",
Expand Down
6 changes: 3 additions & 3 deletions src/AppServiceFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class AppServiceFileSystem extends AzExtTreeFileSystem<FileSystemItem> {
}

public async readFileImpl(context: IActionContext, node: FileSystemItem): Promise<Uint8Array> {
const result: ISiteFile = await getFile(context, node.site, node.path);
const result: ISiteFile = await getFile(context, node.site, node.url);
this._etags.set(node.fullId, result.etag);
return Buffer.from(result.data);
}
Expand All @@ -49,7 +49,7 @@ export class AppServiceFileSystem extends AzExtTreeFileSystem<FileSystemItem> {
let etag: string = nonNullValue(this._etags.get(node.fullId), 'etag');
try {
this.appendLineToOutput(localize('updating', 'Updating "{0}" ...', node.label), { resourceName: node.site.fullName });
await putFile(context, node.site, content, node.path, etag);
await putFile(context, node.site, content, node.url, etag);
this.appendLineToOutput(localize('done', 'Updated "{0}".', node.label), { resourceName: node.site.fullName });
} catch (error) {
const parsedError: IParsedError = parseError(error);
Expand All @@ -59,7 +59,7 @@ export class AppServiceFileSystem extends AzExtTreeFileSystem<FileSystemItem> {
throw error;
}

etag = (await getFile(context, node.site, node.path)).etag;
etag = (await getFile(context, node.site, node.url)).etag;
this._etags.set(node.fullId, etag);
await node.refresh(context);
}
Expand Down

0 comments on commit 64414cc

Please sign in to comment.