File tree Expand file tree Collapse file tree 4 files changed +23
-20
lines changed
docs-build/src/components Expand file tree Collapse file tree 4 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 88 <li class =" header-link depth-2" >
99 <a href =" #overview" >Overview</a >
1010 </li >
11- {#each headings as header }
11+ {#each headings as header ( header . slug ) }
1212 {#if header .depth > 1 && header .depth < 4 }
1313 <li class ={` header-link depth-${header .depth } ` }>
1414 <a href ={` #${header .slug } ` }>{header .text }</a >
Original file line number Diff line number Diff line change 2727< / script>
2828
2929< div class = " theme-toggle" >
30- {#each themes as t, i}
30+ {#each themes as t, i (t) }
3131 {@const checked = t === theme}
3232 < label class: checked>
3333 {#if i === 0 }
Original file line number Diff line number Diff line change 5353 setRightMarkers (rightMarkers)
5454 }
5555 }
56+ function setCodeActionsProvider (monaco ) {
57+ codeActionProviderDisposable = monaco .languages .registerCodeActionProvider (
58+ language,
59+ {
60+ provideCodeActions (model , range , context ) {
61+ const editor = getLeftEditor? .()
62+ if (editor? .getModel ().url !== model .url ) {
63+ return {
64+ actions: [],
65+ dispose () {
66+ /* nop */
67+ },
68+ }
69+ }
70+ return provideCodeActions (model, range, context)
71+ },
72+ },
73+ )
74+ }
5675 $: {
5776 // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- reactive
5877 language
5978 disposeCodeActionProvider ()
6079 if (provideCodeActions) {
61- loadingMonaco .then ((monaco ) => {
62- codeActionProviderDisposable =
63- monaco .languages .registerCodeActionProvider (language, {
64- provideCodeActions (model , range , context ) {
65- const editor = getLeftEditor? .()
66- if (editor? .getModel ().url !== model .url ) {
67- return {
68- actions: [],
69- dispose () {
70- /* nop */
71- },
72- }
73- }
74- return provideCodeActions (model, range, context)
75- },
76- })
77- })
80+ loadingMonaco .then (setCodeActionsProvider)
7881 }
7982 }
8083 $: {
Original file line number Diff line number Diff line change 116116 "eslint-plugin-node-dependencies" : " ^0.12.0" ,
117117 "eslint-plugin-prettier" : " ^5.0.0" ,
118118 "eslint-plugin-regexp" : " ^2.5.0" ,
119- "eslint-plugin-svelte" : " ^2.36 .0" ,
119+ "eslint-plugin-svelte" : " ^3.0 .0" ,
120120 "eslint-plugin-yml" : " ^1.0.0" ,
121121 "expect-type" : " ^1.0.0" ,
122122 "js-yaml" : " ^4.1.0" ,
You can’t perform that action at this time.
0 commit comments