lukecarrier
09/11/2020, 10:45 PMkevins8
09/11/2020, 11:16 PMlukecarrier
09/12/2020, 12:01 AMkevins8
09/12/2020, 1:33 AMEventEmitter
?lukecarrier
09/12/2020, 1:47 PMlukecarrier
09/12/2020, 1:49 PMkevins8
09/12/2020, 2:41 PMparse
loop that scans the plaintext and converts it to html.
when it encounters a ref, we have a ref handler that will read the file and convert it.
for refs, this is all done within the parseNoteRefs
plugin: https://github.com/dendronhq/dendron-template/blob/master/vault/dendron.dev.design.engine.md#parsing-note-references
if you come up with a good way of doing events/handlers besides just registering all ref handlers at startup, feel free to come up with a proposal 🙂jojanaho
09/14/2020, 5:57 AMkevins8
09/14/2020, 6:35 PMjojanaho
09/14/2020, 7:46 PMkevins8
09/14/2020, 8:08 PMplugin/cli -> engine -> lsp
, you're proposing plugin/cli -> lsp -> core
. in this case, lsp
would basically serve as an api gateway
of sorts, abstracting the implementation details of the engine behind the lsp
> To get the lookup results into extension, I believe server extension communication can be extended with custom JSON RPC messages (thus: extension asks completion -> server asks it from core -> core constructs that from its index, returns to server -> server returns result to extension)
this is where I need to get more clarity on. wasn't obvious whether LSP supported custom messages or if we had to overload one of the existing functionalities
> - IIRC, file watching is done by the VS Code, and it will notify the LSP server whenever any file relevant for the extension is changed. Typically every change would cause index refresh + sending status + diagnostics from server to extension (probably with some throttling).
i'm up in the air about this. if we want the lsp/core to be vscode independent, it would be easier to delegate file watching to the server. plus it'll use the vscode fs watcher interface present day so functionally, wouldn't be a big change either way. are there advantages for doing file watching inside vscode isntead?
> - Things like creating daily notes, I would delegate via extension -> core, so that CLI can then do similar thing via CLI -> core (thus logic for it would only reside in core)
i like this. core would continue to index, lsp is just the messaging layer that helps decouple the engine/core from its js implementation.jojanaho
09/14/2020, 8:29 PMkevins8
09/14/2020, 8:56 PMonFileChange
handler, the file watching can be client specificjojanaho
09/14/2020, 9:21 PMjojanaho
09/14/2020, 9:37 PMkevins8
09/14/2020, 11:55 PMjojanaho
09/16/2020, 1:31 PMjojanaho
09/16/2020, 1:31 PMjojanaho
09/16/2020, 1:32 PMjojanaho
09/16/2020, 1:32 PMewaTch
09/16/2020, 1:52 PMuser
09/16/2020, 2:56 PMfoo*bar
but the same query won't turn up a foo/bar.md
. (meaning files to include/exclude options)jojanaho
09/16/2020, 3:11 PMuser
09/16/2020, 3:14 PMkevins8
09/16/2020, 3:37 PM.
syntax at all? have it as a legacy fallback and slowly deprecate?
- if we switch to folders, do we also switch the lookup syntax to use '/' instead of '.'?
@User as part of the search, I believe you can achieve the same using '/' instead of '*'user
09/16/2020, 3:41 PMfoo.x.y.z.bar
and I totally forgot about x, y and z))kevins8
09/16/2020, 3:43 PMfoo/**/*.md
kevins8
09/16/2020, 3:43 PM**/*
= all files recursively under this directory
kevins8
09/16/2020, 3:44 PMuser
09/16/2020, 3:45 PMarea
?