rennzhang / codemirror-editor-vue3

CodeMirror component for Vue3
https://rennzhang.github.io/codemirror-editor-vue3
MIT License
191 stars 35 forks source link

support user-provided timestamp in custom log mode #61

Open jasonren0403 opened 1 week ago

jasonren0403 commented 1 week ago

currently the timestamp in custom log mode(fclog) is provided inner by calling getLocalTime(), but sometimes we should display logs with user-provided timestamps, and currently there is no way to provide the timestamp.

https://github.com/rennzhang/codemirror-editor-vue3/blob/0dfc00ea2726311aef11a2c084e79d6c7e9e640c/packages/src/components/presetMode/log/utils.ts#L141

rennzhang commented 1 week ago

让我考虑一下如何调整,有好的想法可以互相讨论或者贡献