This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare function local:type($item as item()?) as xs:string { | |
| typeswitch ($item) | |
| (: NOTE: eXist doesn't support XML Schema 1.1 types yet | |
| case xs:dateTimeStamp return 'xs:dateTimeStamp' | |
| :) | |
| case xs:dateTime return 'xs:dateTime' | |
| case xs:date return 'xs:date' | |
| case xs:time return 'xs:time' | |
| case xs:yearMonthDuration return 'xs:yearMonthDuration' | |
| case xs:dayTimeDuration return 'xs:dayTimeDuration' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare function local:display-map($m as map(*)?) as element()? { | |
| if (exists($m)) then | |
| <map>{ | |
| for $k in map:keys($m) return | |
| <key name="{$k}">{ | |
| for $v in $m($k) return | |
| typeswitch ($v) | |
| case document-node() return <document uri="{document-uri($v)}"/> | |
| case attribute() return <attribute name="{name($v)}">{xs:string($v)}</attribute> | |
| case map(*) return local:display-map($v) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function throttle(fn, threshold=250) { | |
| let hold = false; | |
| let trail; | |
| let timeout = function() { | |
| if (trail !== undefined) { | |
| fn.apply(trail[0], trail[1]); | |
| trail = undefined; | |
| setTimeout(timeout, threshold) | |
| } else { | |
| hold = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "always_show_minimap_viewport": true, | |
| "auto_find_in_selection": true, | |
| "copy_with_empty_selection": false, | |
| "default_line_ending": "unix", | |
| "drag_text": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "find_selected_text": false, | |
| "folder_exclude_patterns": | |
| [ |
OlderNewer