Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Fixed webviews on Windows (close #2233) (#2352) (#2353)
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Turner <[email protected]>
(cherry picked from commit f34a36b)

# Conflicts:
#	CHANGELOG.md

Co-authored-by: Jake <[email protected]>
Co-authored-by: Caroline Fletcher <[email protected]>
  • Loading branch information
3 people authored May 26, 2020
1 parent 17ef596 commit b430cef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Announcements
* We’re still waiting for the gRPC v1.25.0 binaries to be published so you may be affected by [this issue](https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/1621), where gRPC fails to rebuild when using VS Code >1.40.x.
> Please see [this comment](https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/1621#issuecomment-552926559) for a workaround.
Features & Enhancements

---
* Updated gateway & wallet grouping - part of [#2023](https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2023).

Expand Down
3 changes: 2 additions & 1 deletion packages/blockchain-extension/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Fixes

* Only show right-click ‘Start’ option on local environments [#2285](https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2285).

* Updated ‘Open Tutorial’ buttons [#2275](https://github.com/IBM-Blockchain/blockchain-vscode-extension/pull/2275).
* Updated ‘Open Tutorial’ buttons [#2275](https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2275).

* Fixed webview on Windows [#2233](https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2233).

This release's Conga Comic:
---
Expand Down
8 changes: 4 additions & 4 deletions packages/blockchain-extension/extension/webview/ReactView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ export abstract class ReactView extends View {
const mainScript: string = manifest.files['main.js'];
const mainStyle: string = manifest.files['main.css'];

const scriptPathOnDisk: {scheme: string, authority: string, path: string} = vscode.Uri.file(
const scriptPathOnDisk: vscode.Uri = vscode.Uri.file(
path.join(this._extensionPath, 'build', mainScript)
);
const scriptContents: Buffer = fs.readFileSync(scriptPathOnDisk.path);
const scriptContents: Buffer = fs.readFileSync(scriptPathOnDisk.fsPath);

const stylePathOnDisk: {scheme: string, authority: string, path: string} = vscode.Uri.file(
const stylePathOnDisk: vscode.Uri = vscode.Uri.file(
path.join(this._extensionPath, 'build', mainStyle)
);
const styleContents: Buffer = fs.readFileSync(stylePathOnDisk.path);
const styleContents: Buffer = fs.readFileSync(stylePathOnDisk.fsPath);

const actualExtensionPath: string = ExtensionUtil.getExtensionPath();

Expand Down

0 comments on commit b430cef

Please sign in to comment.