gavin-ts
gavin-ts
I think this can be achieved by adding a config setting to the extension for the `--force-appendix` flag. ``` --force-appendix $D2_FORCE_APPENDIX an appendix for tooltips and links is added to...
> ... here's another one as a playground link: https://play.d2lang.com/?script=jFNBTsMwELznFfMBohZKU3xAKoVKXCknbsZZwGpiG8cRINS_I6chdYJbcrO8O7OzM_YzV1uG7wRY1yqv9keAG7OYzjOGW-44No3soHDFsC54SSil0vZQyKYMj5bnBGO1oSIBdgnwIKttn3nGsLKUS4fXmtu87VvLT8pxr4Quqd8_P6IkmwwLnmelrdGWuwHJgjVKsHkjcgHHOcPScIFlR3D3XksnaWDHJcON1lvk-kN1ihVXoj8nu2B40oqga9e07RLvctqpSls5OLtGvMIgCknKoeSVI7vHe-1tw-wY1O_Ci0IL7j9LdQLYxJ12cUr_22rxHyqi1Pm8W0xAmk0Po4JY0y7PkRPDy6gtvUWi62WxYX9FZZNTrhpdybHwwfCKRG2l-4KlF7KkBI3hGGla3PLfB5x2L3eoP55UeBtifgIAAP__&layout=tala&
I think whichever comes later in the d2 file should take priority, in case you want to use a glob to set classes or override a value in a class...
> As for order, globs apply to current objects _and_ lazily to future objects. You can stick `*.style.fill: green` anywhere and it'll apply to the whole scope. right > But...
> > I think whichever comes later in the d2 file should take priority, in case you want to use a glob to set classes or override a value in...
> To me, the rationale is specificity. > > Globs target most. Classes target second-most. Individually setting properties target only individual shapes. > > So more specific rules override less...
#48 provides a command to run but a d2 render task could also be helpful in some cases
`vscode.tasks.registerTaskProvider` vs `commands.registerCommand` > this has the same features but is different from #47 in that this is a command rather than registering a task provider that can be used...
There's a lot of cool things that tasks support https://code.visualstudio.com/docs/editor/tasks
that could work but it might be tricky to fit it into other markdown elements. I wonder why it isn't currently working, we may just need to update the measurement...