-
Notifications
You must be signed in to change notification settings - Fork 299
Conversation
browser/src/UI/RootComponent.tsx
Outdated
|
||
|
||
|
||
import * as marked from "marked" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I was using this as debugging to see what marked
returns 😄
export class MarkdownPreviewEditor implements Oni.Editor { | ||
|
||
constructor( | ||
private _oni: any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good next step would be to listen to the buffer update events here - we could do:
Oni.editors.activeEditor.onBufferChanged.subscribe((evt) => { console.log("Buffer Changed"; debugger; })
That way, if you have the debugger open, you can inspect evt
and see the values for it. We can get the filename + filetype (language) and decide if we should render a preview for it.
If we should, we can get the content via the contentChanges
array, and then render it out to our component using marked
.
048dd70
to
b004575
Compare
b004575
to
b3a3373
Compare
I'm done, but unfortunately the PR fails in CI on |
Cool, it's the home stretch now! Can't wait to get this in! I'm looking into the failure now. |
I just saw a couple issues that are unrelated to the failure, but they might cause tests to failure:
Those will need to be restored. Still looking at the failure with But it looks like it might be an actual issue with a dependency. Trying to see what's happening. |
Once I made that change, it worked in the dist build! I pushed up a branch with the full set of fixes I used here: bryphe/922/fixes |
Doesn't seem to solve it :( |
Ah looks like I messed up... I had set the variable in my shell so I was getting a false positive. There were two problems with my original solution:
Posted the fixes here in bryphe/922/move-cross-env-to-build-calls, and the relevant commit is this one: Hopefully that's the last issue... fingers crossed... |
Now there is a different error >< https://travis-ci.org/onivim/oni/jobs/317490353#L1019 |
Ah well, at least the windows builds passed... making progress... 😄 |
Taking a look at the OSX failure... that's strange. Seeing if I can repro it on my OSX machine. |
Strange, no issue on my machine. I couldn't find a lot of similiar issues, there were ones like this: electron-userland/electron-builder#1183 But not quite the exact same. Still looking. |
I'm wondering if it's having an issue with the nested dependencies in |
I saw there was also an issue with the build caches - it seems that sometimes our node_modules / yarn caches get out of date 😦 I cleared them out, and I got a passing build with #1141 with the change to move the packages to the root: 7e64896 Unfortunately it seems that |
b241968
to
866e3d1
Compare
@TalAmuyal - let me know if you'd just prefer me to merge in #1141 . I wasn't sure if your name is associated with the squashed commit / if you get github activity in that case, so I was holding off. But I'm happy either way. Really excited to get this in 👍 ! |
Well, I tried a few more things, but no complete success. If you don't mind, please do merge this PR and let's fix any ramifications independently. |
Sounds good - I'm in the midst of investigating some of the failures, so I'll take a look. I'll merge this in now - thanks for all your work on this, @TalAmuyal ! Congratulations on getting it, this is awesome 💯 |
Based
bryphe/proto/markdown-preview
and mergedorigin/master
onto it.Next up: make something that works.
Should fix #49.