-
Notifications
You must be signed in to change notification settings - Fork 298
Conversation
Unrelated to code blocks, but fixes onivim#1653 and is a single line change in the options I've added.
Codecov Report
@@ Coverage Diff @@
## master #2332 +/- ##
=======================================
Coverage 43.36% 43.36%
=======================================
Files 341 341
Lines 13431 13431
Branches 1768 1768
=======================================
Hits 5824 5824
Misses 7331 7331
Partials 276 276
Continue to review full report at Codecov.
|
Pushing up some tests for this and the previous PR now. I think the background colour can stay as is for now, it makes sense to use the Oni defined colours to match the theme its rendered in. |
Also looks like we've got CodeCov to only look at the main repo, so despite most of the PR being updated tests, the coverage has dropped. |
@@ -290,10 +290,6 @@ export const activate = ( | |||
detail: "", | |||
enabled: isBrowserScrollCommandEnabled, | |||
}) | |||
|
|||
ipcRenderer.on("open-oni-browser", (event: string, args: string) => { | |||
openUrl(args) |
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.
Left over from previous PR, tidied up in this one.
I've added a config option for this now, incase it is needed. I'm still not too sure what to do about the sync vs async nature, but I think the only way I'll really be able to tell is if more people start using it and give some feedback. I've defaulted this to on, since having an experimental feature in an experimental feature seemed like too many gates to jump through. |
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.
Looks fantastic!
Could I get somebody to restart my AppVeyor build/merge this? |
@CrossR seems our AppVeyor links or mine at least now leads me to a project not found or no access but if I sign in manually I get access to the oni project but then finding the related build is very manual checking through all the previous builds so not sure how to reset this tbh except manually searching which I can try later |
Yep since we moved, the build is still pointing to the old one. I'll push a change over the weekend and that should fix it. |
# Conflicts: # main/src/main.ts
Second set of Markdown changes that fixes #1653 and adds Syntax highlights to code blocks.
Things to check:
Something I realised from my previous PR is that when opening a browser link, the markdown preview remains open for some reason, though swapping to any other non-markdown buffer works fine. It looks like the leave command is called once to close, but the enter is called multiple times after and re-opens the markdown preview as the buffer is still a markdown file.
I could update the
onBufferEnter
command to close the preview too, but haven't tested that yet.Similarly, opening a MD file directly doesn't spawn the preview, but opening one once Oni is open works fine.