@tomjs/vite-plugin-vscode 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -7
- package/README.zh_CN.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -260,12 +260,12 @@ const value = await acquireVsCodeApi().getState();
|
|
|
260
260
|
|
|
261
261
|
### PluginOptions
|
|
262
262
|
|
|
263
|
-
| Property | Type
|
|
264
|
-
| ----------- |
|
|
265
|
-
| recommended | `boolean`
|
|
266
|
-
| extension | [ExtensionOptions](#ExtensionOptions)
|
|
267
|
-
| webview | `boolean` \|
|
|
268
|
-
| devtools | `boolean`
|
|
263
|
+
| Property | Type | Default | Description |
|
|
264
|
+
| ----------- | -------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
265
|
+
| recommended | `boolean` | `true` | This option is intended to provide recommended default parameters and behavior. |
|
|
266
|
+
| extension | [ExtensionOptions](#ExtensionOptions) | | Configuration options for the vscode extension. |
|
|
267
|
+
| webview | `boolean` \| [WebviewOption](#WebviewOption) | `true` | Inject html code |
|
|
268
|
+
| devtools | `boolean` | `true` | Inject script code for [react-devtools](https://github.com/facebook/react/tree/main/packages/react-devtools) or [vue-devtools](https://devtools.vuejs.org/guide/standalone) debugging |
|
|
269
269
|
|
|
270
270
|
#### Notice
|
|
271
271
|
|
|
@@ -295,7 +295,6 @@ Based on [Options](https://tsdown.dev/reference/api/Interface.Options) of [tsdow
|
|
|
295
295
|
|
|
296
296
|
| Property | Type | Default | Description |
|
|
297
297
|
| -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
|
|
298
|
-
| name | `string` | `__getWebviewHtml__` | The inject method name |
|
|
299
298
|
| csp | `string` | `<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src {{cspSource}} 'unsafe-inline'; script-src 'nonce-{{nonce}}' 'unsafe-eval';">` | The `CSP` meta for the webview |
|
|
300
299
|
|
|
301
300
|
- `{{cspSource}}`: [webview.cspSource](https://code.visualstudio.com/api/references/vscode-api#Webview)
|
package/README.zh_CN.md
CHANGED
|
@@ -259,12 +259,12 @@ const value = await acquireVsCodeApi().getState();
|
|
|
259
259
|
|
|
260
260
|
### PluginOptions
|
|
261
261
|
|
|
262
|
-
| 参数名 | 类型
|
|
263
|
-
| ----------- |
|
|
264
|
-
| recommended | `boolean`
|
|
265
|
-
| extension | [ExtensionOptions](#ExtensionOptions)
|
|
266
|
-
| webview | `boolean` \|
|
|
267
|
-
| devtools | `boolean`
|
|
262
|
+
| 参数名 | 类型 | 默认值 | 说明 |
|
|
263
|
+
| ----------- | -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
264
|
+
| recommended | `boolean` | `true` | 这个选项是为了提供推荐的默认参数和行为 |
|
|
265
|
+
| extension | [ExtensionOptions](#ExtensionOptions) | | vscode extension 可选配置 |
|
|
266
|
+
| webview | `boolean` \| [WebviewOption](#WebviewOption) | `true` | 注入 html 代码 |
|
|
267
|
+
| devtools | `boolean` | `true` | 注入 script 代码用于 [react-devtools](https://github.com/facebook/react/tree/main/packages/react-devtools) 或 [vue-devtools](https://devtools.vuejs.org/guide/standalone) 调试 |
|
|
268
268
|
|
|
269
269
|
#### Notice
|
|
270
270
|
|