Giter Site home page Giter Site logo

Comments (9)

fcrespo82 avatar fcrespo82 commented on June 25, 2024

Oh sh*t.... never saw that one... I'll look it

Can you send me your config for my extension?

This began with 2.0.5?

Can you try install 2.0.4 and see if the bug persist?

from vscode-markdown-table-formatter.

macintacos avatar macintacos commented on June 25, 2024

Here are the settings for the extension as I have it now (pretty sure they're all the default values?): https://p-37FYgJ.b1.n0.cdn.getcloudapp.com/items/xQuDJOkp/Settings%20%E2%80%94%20Testing%20VSCode%202020-07-10%20at%2023.55.29.png?v=984f74941cba185152b41bd28d1a2a9f

Will try the previous version and report back.

from vscode-markdown-table-formatter.

macintacos avatar macintacos commented on June 25, 2024

Okay so after some quick tests, it seems like this has been an issue since 2.0. I went all the way back to 1.4.3, and that's the first version (going backwards in time) that had no lag, and no message in the console. Every other version (2.0.0 -> 2.0.5) had the lag, and the same message in the console.

from vscode-markdown-table-formatter.

fcrespo82 avatar fcrespo82 commented on June 25, 2024

Yikes, I changed a lot from 1 to 2. But mostly important to this case (I think):

  • the packaging from multiple files to webpack;
  • a dependency: xregexp from 3.2.0 to 4.2.4;
  • the regex used to find the tables.

I never liked the fact that the extension is enabled on VSCode launch too, but to support enabling in any file type this is a must, but maybe it's time to change it... as this is called "markdown table formatter" it should be enabled only when markdown type files are opened.

I updated the regexp dependency to 4.3.0 because it said that it has better compatibility with web pack, and changed the activation to markdown only.. Can you test this one and check back please?

markdown-table-formatter-2.0.5.vsix.zip

from vscode-markdown-table-formatter.

macintacos avatar macintacos commented on June 25, 2024

@fcrespo82 I think that did the trick! I don't see any lag now with this version you provided.

from vscode-markdown-table-formatter.

fcrespo82 avatar fcrespo82 commented on June 25, 2024

Great, let's be sure, as I changed the activation event, follow the steps below and report back please.

  1. Start vscode with no folder or files opened
  2. Open or create a markdown file with a table and test the functionality of the extension
  3. Follow your steps to reproduce the bug

from vscode-markdown-table-formatter.

macintacos avatar macintacos commented on June 25, 2024

Okay so I might've jumped the gun since I didn't test the functionality of the extension before I said it worked before. While I can't reproduce the behavior exactly the way I saw it in the issue I brought up in the Vim extension (meaning, cold start, open settings.json, lag with navigation until it times out with the message I noted above), I can still reproduce it by doing pretty much what you specified:

  1. I started VSCode with no folder or files opened
  2. I created a brand new markdown file, created a table, and then used the "Move Column Left" command, which worked fine.
  3. I then opened the settings.json file, and saw the same lag

from vscode-markdown-table-formatter.

fcrespo82 avatar fcrespo82 commented on June 25, 2024

Got it. I was afraid that would be the case.

My first thought was that the extension was slowing down the launch of the vscode. But apparently the bug is on another place. I'll investigate further, but I just had another idea that this may be reminiscent from the way the extension worked before using the formatter api, it trying to find table on all opened editors, not just on the language ones thus causing the slowness on the settings.json editor.

I will report back with any news soon.

Thanks for letting me know.

from vscode-markdown-table-formatter.

fcrespo82 avatar fcrespo82 commented on June 25, 2024

I think I got it now... It really was a path in the code were it would check for tables in any opened file regardless of the language.

Check with this version please markdown-table-formatter-2.1.0-beta.vsix.zip

from vscode-markdown-table-formatter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.