mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
Since #1807 , VS Code pops up a warning when starting tinymist: <img width="464" height="162" alt="image" src="https://github.com/user-attachments/assets/aeefac88-5515-4dcd-be52-82e402db74c5" /> Because the default value was not set, it's trying to deserialize a `null`. I complete the corresponding configuration entry in the VS Code extension's package.json and package.other.json with default value "never".
96 lines
5.1 KiB
JSON
96 lines
5.1 KiB
JSON
{
|
|
"$schema": "vscode://schemas/vscode-extensions",
|
|
"contributes": {
|
|
"configuration": {
|
|
"properties": {
|
|
"tinymist.preview.browsing.args": {
|
|
"description": "The arguments used by `tinymist.startDefaultPreview` command. Check `tinymist preview` to see the allowed arguments.",
|
|
"type": "array",
|
|
"default": ["--data-plane-host=127.0.0.1:0", "--invert-colors=auto", "--open"],
|
|
"properties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"tinymist.preview.background.enabled": {
|
|
"description": "This configuration is only used for the editors that doesn't support lsp well, e.g. helix and zed. When it is enabled, the preview server listens a specific tcp port in the background. You can discover the background previewers in the preview panel.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"tinymist.preview.background.args": {
|
|
"description": "The arguments that the background preview server used for. It is only used when `tinymist.preview.background` is enabled. Check `tinymist preview` to see the allowed arguments.",
|
|
"type": "array",
|
|
"default": ["--data-plane-host=127.0.0.1:23635", "--invert-colors=auto"],
|
|
"properties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"tinymist.preview.refresh": {
|
|
"title": "%extension.tinymist.config.tinymist.preview.refresh.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.refresh.desc%",
|
|
"type": "string",
|
|
"enum": ["onSave", "onType"],
|
|
"default": "onType",
|
|
"enumDescriptions": [
|
|
"%extension.tinymist.config.tinymist.preview.refresh.string.enum.onSave%",
|
|
"%extension.tinymist.config.tinymist.preview.refresh.string.enum.onType%"
|
|
]
|
|
},
|
|
"tinymist.preview.partialRendering": {
|
|
"title": "%extension.tinymist.config.tinymist.preview.partialRendering.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.partialRendering.desc%",
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"tinymist.preview.invertColors": {
|
|
"title": "%extension.tinymist.config.tinymist.preview.invertColors.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.desc%",
|
|
"default": "never",
|
|
"anyOf": [
|
|
{
|
|
"title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.desc%",
|
|
"type": "string",
|
|
"enum": ["never", "auto", "always"],
|
|
"enumDescriptions": [
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.enum.never%",
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.enum.auto%",
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.enum.always%"
|
|
]
|
|
},
|
|
{
|
|
"title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.desc%",
|
|
"type": "object",
|
|
"properties": {
|
|
"rest": {
|
|
"title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.desc%",
|
|
"type": "string",
|
|
"enum": ["never", "auto", "always"],
|
|
"default": "never",
|
|
"enumDescriptions": [
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.enum.never%",
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.enum.auto%",
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.enum.always%"
|
|
]
|
|
},
|
|
"image": {
|
|
"title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.title%",
|
|
"markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.desc%",
|
|
"type": "string",
|
|
"enum": ["never", "auto", "always"],
|
|
"default": "never",
|
|
"enumDescriptions": [
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.string.enum.never%",
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.string.enum.auto%",
|
|
"%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.string.enum.always%"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|