question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with pug templates via VS Code Prettier plugin

See original GitHub issue

Now #78 is solved and prettier --write . works… But when I run format on save via VSCode it is the same behavior as before #78 got fixed 🤔

But now I’m not sure if this has something todo with your plugin or if esbenp.prettier-vscode has a bug. I highly assume it has still something todo with the vueCompilerOptions not forwarded correctly.

/ping @johnsoncodehk

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:27 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
Shinigami92commented, Nov 25, 2022

@Shinigami92 finally got around to finish this, should work in 3.2.1 crossed_fingers

Thanks, might be that I can test it first on monday

2reactions
simonhaenischcommented, Nov 14, 2022

Update: yeah ok this seems to make it work:

getCurrentDirectory() {
  return path.dirname(tsconfig)
}

@johnsoncodehk would be nice if you could confirm that it’s a good fix? (I’d only add this to the Vue language service host)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prettier Pug Plugin: Not formatting as expected. #2347 - GitHub
Problem. Pug templates don't use @prettier/plugin-pug specific settings. According the developer over on @prettier/plugin-pug I think this ...
Read more >
@prettier/plugin-pug - npm
Plugin for Prettier to format pug code. You can disable code formatting for a particular code block by adding <!
Read more >
Plugins - Prettier
Plugins are ways of adding new languages or formatting rules to Prettier. Prettier's own implementations of all languages are expressed using the plugin...
Read more >
User Guide | eslint-plugin-vue
Official ESLint plugin for Vue.js.
Read more >
Vue.js | IntelliJ IDEA Documentation - JetBrains
JavaScript and TypeScript , Vue.js - The plugins are available only in ... Don't Open: in this case IntelliJ IDEA doesn't open the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found