Skip to content

Commit

Permalink
Minor updates (microsoft#147)
Browse files Browse the repository at this point in the history
Description of changes

A collection of minor updates including:

- Update all samples to use latest version of the toolkit
- Update all sample extension README screenshots
- Fix out-of-date configs in the update-toolkit-package.js script
- Remove unused categories field from package.json
- Update vscode engine to ^1.75.0 in all samples
- Remove activationEvent field (no longer needed in vscode engine ^1.75.0
- Remove CSS that was applying too much spacing to hello world framework samples
  • Loading branch information
hawkticehurst authored May 11, 2023
1 parent edaead8 commit b3ebbd8
Show file tree
Hide file tree
Showing 68 changed files with 114 additions and 220 deletions.
2 changes: 1 addition & 1 deletion default/component-gallery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This sample extension demonstrates every component in the Webview UI Toolkit for Visual Studio Code.

![A screenshot of the sample extension.](./assets/component-gallery-screenshot.png)
![A screenshot of the sample extension.](./assets/component-gallery.png)

## Run The Sample

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions default/component-gallery/package-lock.json

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

10 changes: 2 additions & 8 deletions default/component-gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"description": "A sample extension to show off all components in the Webview UI Toolkit for Visual Studio Code.",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:component-gallery.showGallery"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
Expand Down Expand Up @@ -43,6 +37,6 @@
"typescript": "^4.8.4"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.2.1"
"@vscode/webview-ui-toolkit": "^1.2.2"
}
}
2 changes: 1 addition & 1 deletion default/hello-world-webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a version of the Hello World sample extension that uses Webpack instead of esbuild.

![A screenshot of the sample extension.](./assets/hello-world-screenshot.png)
![A screenshot of the sample extension.](./assets/hello-world.png)

## Run The Sample

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions default/hello-world-webpack/package-lock.json

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

10 changes: 2 additions & 8 deletions default/hello-world-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"description": "A hello world sample extension to show off the Webview UI Toolkit for Visual Studio Code.",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:hello-world.showHelloWorld"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
Expand Down Expand Up @@ -44,6 +38,6 @@
"webpack-cli": "^4.10.0"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.2.1"
"@vscode/webview-ui-toolkit": "^1.2.2"
}
}
2 changes: 1 addition & 1 deletion default/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is the sample extension that goes along with the Webview UI Toolkit [Getting Started Guide](https://github.com/microsoft/vscode-webview-toolkit/blob/main/docs/getting-started.md).

![A screenshot of the sample extension.](./assets/hello-world-screenshot.png)
![A screenshot of the sample extension.](./assets/hello-world.png)

## Run The Sample

Expand Down
Binary file not shown.
Binary file added default/hello-world/assets/hello-world.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions default/hello-world/package-lock.json

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

10 changes: 2 additions & 8 deletions default/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"description": "A hello world sample extension to show off the Webview UI Toolkit for Visual Studio Code.",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:hello-world.showHelloWorld"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
Expand Down Expand Up @@ -42,6 +36,6 @@
"typescript": "^4.8.4"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.2.1"
"@vscode/webview-ui-toolkit": "^1.2.2"
}
}
2 changes: 1 addition & 1 deletion default/notepad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This sample extension showcases the toolkit in the context of a simple notepad experience that leverages the [TreeView API](https://code.visualstudio.com/api/extension-guides/tree-view) and [Webview API](https://code.visualstudio.com/api/extension-guides/webview).

![A screenshot of the sample extension.](./assets/notepad-screenshot.png)
![A screenshot of the sample extension.](./assets/notepad.png)

## Run The Sample

Expand Down
Binary file removed default/notepad/assets/notepad-screenshot.png
Binary file not shown.
Binary file added default/notepad/assets/notepad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions default/notepad/package-lock.json

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

10 changes: 2 additions & 8 deletions default/notepad/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"description": "A sample extension that showcases the Webview UI Toolkit for VS Code alongside the VS Code TreeView and Webview API",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:notepad.notesList"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
Expand Down Expand Up @@ -89,7 +83,7 @@
"typescript": "^4.8.4"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.2.1",
"@vscode/webview-ui-toolkit": "^1.2.2",
"uuid": "^9.0.0"
}
}
2 changes: 1 addition & 1 deletion default/weather-webview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This sample extension demonstrates the Webview UI Toolkit for Visual Studio Code being used within a Webview View.

![A screenshot of the sample extension.](./assets/weather-webview-screenshot.png)
![A screenshot of the sample extension.](./assets/weather-webview.png)

## Run The Sample

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions default/weather-webview/package-lock.json

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

10 changes: 2 additions & 8 deletions default/weather-webview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"description": "A sample extension to show off the Webview UI Toolkit for Visual Studio Code being used in a webview view.",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:weather.weatherView"
],
"main": "./out/extension.js",
"contributes": {
"views": {
Expand Down Expand Up @@ -46,7 +40,7 @@
"typescript": "^4.8.4"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.2.1",
"@vscode/webview-ui-toolkit": "^1.2.2",
"weather-js": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion frameworks/hello-world-angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is an implementation of the default [Hello World](https://github.com/microsoft/vscode-webview-ui-toolkit-samples/tree/main/default/hello-world) sample extension that demonstrates how to set up and use a [Angular](https://angular.io/) + [Webview UI Toolkit](https://github.com/microsoft/vscode-webview-ui-toolkit) webview extension.

![A screenshot of the sample extension.](./assets/hello-world-screenshot.png)
![A screenshot of the sample extension.](./assets/hello-world.png)

## Documentation

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions frameworks/hello-world-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"description": "A hello world sample extension to demonstrate using Angular with the Webview UI Toolkit for VS Code.",
"version": "0.0.1",
"engines": {
"vscode": "^1.46.0"
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:hello-world.showHelloWorld"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
Expand Down
Loading

0 comments on commit b3ebbd8

Please sign in to comment.