-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize setting names/keys #577
Comments
@danyill do you think we should do it as part of the next major version 3.0.0? |
- use third-person singular verb form - introduce 5 categories : preview, pdf, extensions, general, debug - use order to move most commonly used settings on top (of each category) - deprecate/rename settings to comply with the new naming convention - remove unused settings - update english localization (need to update the japanese localization)
I like this proposal. I think the groupings are much clearer.
I guess a new major version is the right time to make a compatibility change. |
I'm working on
Arguably, we could rely on the |
So:
|
- use third-person singular verb form - introduce 5 categories : preview, pdf, extensions, general, debug - use order to move most commonly used settings on top (of each category) - deprecate/rename settings to comply with the new naming convention - remove unused settings - update english localization (need to update the japanese localization)
- use third-person singular verb form - introduce 5 categories : preview, pdf, extensions, general, debug - use order to move most commonly used settings on top (of each category) - deprecate/rename settings to comply with the new naming convention - remove unused settings - update English localization - update Japanese localization, thanks @YoshihideShirai - use markdownDeprecationMessage and markdownDescription to format deprecation message and description (using Markdown) - add scope: resource (taken form the Markdown extension) - update the logic around the wkhtmltopdf command (we need to support command line arguments) - update the logic to select a PDF engine - try to use asciidoctor-pdf first and then bundle exec asciidoctor-pdf if the asciidoctor-pdf command has not been defined - offer to install asciidoctor-pdf in the global storage if the asciidoctor-pdf command has not been defined
Currently, setting keys are inconsistent. We are using both camelCase and
_
as a separator. Given that the key is used to construct a title, I think we should use a strict convention.Official documentation
https://code.visualstudio.com/api/references/contribution-points#contributes.configuration
Present state
asciidoc.asciidoctorpdf_command
asciidoc.previewFrontMatter
asciidoc.preview.style
asciidoc.preview.attributes
asciidoc.preview.breaks
asciidoc.preview.linkify
asciidoc.preview.fontFamily
asciidoc.preview.fontSize
asciidoc.preview.lineHeight
asciidoc.preview.useEditorStyle
asciidoc.preview.refreshInterval
asciidoc.preview.scrollPreviewWithEditor
asciidoc.preview.scrollPreviewWithEditorSelection
asciidoc.preview.markEditorSelection
asciidoc.preview.scrollEditorWithPreview
asciidoc.preview.doubleClickToSwitchToEditor
asciidoc.preview.openAsciiDocLinks
asciidoc.trace
asciidoc.use_asciidoctorpdf
asciidoc.use_kroki
asciidoc.registerAsciidoctorExtensions
asciidoc.wkhtmltopdf_path
asciidoc.forceUnixStyleSeparator
asciidoc.enableErrorDiagnostics
asciidoc.useWorkspaceRoot
Settings in VS code
Proposal
Removed
asciidoc.previewFrontMatter
-> I think we should remove this setting since it's possible to configureskip-front-matter
as an attribute: https://docs.asciidoctor.org/asciidoctor/latest/html-backend/skip-front-matter/asciidoc.preview.scrollPreviewWithEditorSelection
-> Replaced byasciidoc.preview.scrollPreviewWithEditor
(was deprecated)asciidoc.forceUnixStyleSeparator
-> We are not using it??Renamed
asciidoc.asciidoctorpdf_command
->asciidoc.pdf.asciidoctorPdfCommand
: Asciidoc > Pdf > Asciidoctor Pdf Commandasciidoc.wkhtmltopdf_path
->asciidoc.pdf.wkhtmltopdfCommand
: Asciidoc > Pdf > Wkhtmltopdf Commandasciidoc.pdf.asciidoctorPdfCommand
, we should support command line arguments, for instance:/path/to/wkhtmltopdf --enable-local-file-access
asciidoc.use_asciidoctorpdf
->asciidoc.pdf.engine
: Asciidoc > Pdf > Enginewkhtmltopdf
orasciidoctor-pdf
(it also makes room forasciidoctor-web-pdf
if we want to enable experimental support)asciidoc.preview.attributes
->asciidoc.preview.asciidoctorAttributes
: Asciidoc > Preview > Asciidoctor Attributesasciidoc.preview.openLinksToAsciidocFiles
: Asciidoc > Preview > Open Links To Asciidoc FilesAsciiDoc
since it will produce "Ascii Doc"asciidoc.use_kroki
->asciidoc.extensions.enableKroki
: Asciidoc > Extensions > Enable Krokiasciidoc.registerAsciidoctorExtensions
->asciidoc.extensions.registerWorkspaceExtensions
: Asciidoc > Extensions > Register Workspace Extensionsasciidoc.useWorkspaceRoot
->asciidoc.useWorkspaceRootAsBaseDirectory
: Asciidoc > Use Workspace Root As Base DirectoryThe text was updated successfully, but these errors were encountered: