https://www.dendron.so/ logo
Join Discord
Powered by
# dev
  • i

    ilt

    09/24/2021, 2:38 AM
    lol
  • n

    NZ-John

    09/24/2021, 2:38 AM
    sounds like ur vscode install is problematic
  • i

    ilt

    09/24/2021, 2:39 AM
    I think you are right
  • n

    NZ-John

    09/24/2021, 2:39 AM
    try a fresh install / reset to defaults and try again
  • i

    ilt

    09/24/2021, 2:39 AM
    ugh
  • i

    ilt

    09/24/2021, 2:39 AM
    kk
  • h

    hikchoi

    09/24/2021, 2:41 AM
    This could be on our end. We do some keybinding conflict resolution and there's a regression there. I'm currently fixing it 😅
  • i

    ilt

    09/24/2021, 2:42 AM
    haha it's fine no rush!!!!
  • i

    ilt

    09/24/2021, 2:42 AM
    I am going back to tutorials I love backlinks
  • s

    SeriousBug

    09/24/2021, 5:58 AM
    Does anyone know of a VSCode API to display text next to file names on the tab titles? Or any extension that puts text in the tab titles, I can look at the source code for it myself. I'm trying to work on this issue and hit a wall: https://github.com/dendronhq/dendron/issues/1168#issuecomment-926366330
  • h

    hikchoi

    09/24/2021, 6:08 AM
    I don't think we can do that yet. VSCode itself has some settings to change what tabs display, but no API exposed for the extensions to control that.
  • s

    SeriousBug

    09/24/2021, 6:08 AM
    Yeah, it looks like that. Unless anyone has some thoughts we'll unfortunately won't be able to implement this feature yet.
  • h

    hikchoi

    09/24/2021, 6:09 AM
    An API proposal is in though : https://github.com/microsoft/vscode/issues/133532
  • h

    hikchoi

    09/24/2021, 6:10 AM
    and active too. it's in the September milestone. most likely going to take longer though 😅
  • k

    kevins8

    09/24/2021, 2:40 PM
    ah, I should have checked the latest API status. I thought that this was already shipped, my bad. Something we do have control over is setting tab colors. not saying we need to do this now but for a future enhancement, we could add vault colors in
    dendron.yml
    and have the tab background reflect the vault color
  • n

    nwehner

    09/24/2021, 3:20 PM
    Anyone recall how you got Jest configured to compile TSX --> JS? I tried copying the config from
    engine_server
    but it seems it just imports a config from "../../jest.config" which I can't seem to find
  • n

    nwehner

    09/24/2021, 3:26 PM
    Nevermind, it's in Root and it's definitely in scope. Even copying over the local config isn't doing it, so Jest is clearly just bugging out on me
  • k

    kevins8

    09/24/2021, 3:29 PM
    how are you running jest? what do you get when running the following?
    Copy code
    cd packages/nextjs-template
    npx jest
  • n

    nwehner

    09/24/2021, 3:45 PM
    It's giving me a "SyntaxError: Unexpected token '<'" and then mentions how I'm probably missing a transformer
  • n

    nwehner

    09/24/2021, 3:46 PM
    It can't handle the first JSX component it sees:
    <react_redux_1.Provider store={store}>{children}</react_redux_1.Provider>;
  • n

    nwehner

    09/24/2021, 3:47 PM
    I have the ts-jest preset declared in package.json, and I can see the config and root, but for whatever reason it still only likes vanilla JS for me
  • k

    kevins8

    09/24/2021, 3:55 PM
    can you see if this helps? https://github.com/kulshekhar/ts-jest/issues/937
  • k

    kevins8

    09/24/2021, 3:56 PM
    also https://github.com/vercel/next.js/tree/canary/examples/with-jest
  • n

    nwehner

    09/24/2021, 4:17 PM
    Finally figured it out! (thanks for those docs!): The TSConfig in nextjs-template was set to
    {jsx: "preserve"}
    but for Jest to work with TSX files, it needs to be changed to
    {jsx: "react-jsx" }
    I don't think that would cause any problems down the build line, considering everything in the package should be react-jsx to begin with...but do let me know if there's another workaround I should investigate
  • k

    kevins8

    09/24/2021, 4:19 PM
    ah, nice find. that should be fine though i would run through the export process (https://wiki.dendron.so/notes/e5st4LFLtIwwbQmC6JBaF.html) just to make sure
  • n

    nwehner

    09/24/2021, 4:19 PM
    Will do!
  • n

    nwehner

    09/24/2021, 5:35 PM
    Is there a common method for checking for the existence of files? It feels like overkill to require
    browserify-fs
    if nothing else uses it
  • n

    nwehner

    09/24/2021, 5:43 PM
    🤔 The project already uses fs-extra, but for whatever reason,
    yarn dev
    keeps complaining that the base fs module isn't around for fs-extra to use
  • k

    kevins8

    09/24/2021, 5:43 PM
    yarn why <module>
    will tell you what dependency is being used
  • k

    kevins8

    09/24/2021, 5:44 PM
    are you trying to use
    fs-extra
    in a browser context?
1...808182...108Latest