daidodo / format-imports-vscode

Format imports and exports for JavaScript and TypeScript in VS Code.
https://marketplace.visualstudio.com/items?itemName=dozerg.tsimportsorter
MIT License
62 stars 5 forks source link

Empty line added in `.vue` files with no imports #90

Closed xiBread closed 1 year ago

xiBread commented 1 year ago

Describe the bug Title

Screenshots

https://user-images.githubusercontent.com/60681223/210297747-85440b37-a54d-431a-88c7-071dbabdb7ec.mov

OS (please complete the following information):

VS Code (please complete the following information):

tsconfig.json (if any)

{
    "extends": "./.nuxt/tsconfig.json",
    "compilerOptions": {
        "esModuleInterop": true
    }
}

.prettierrc/.prettierrc.js/prettier.config.js/.prettierrc.toml (if any) My prettier config is in my package.json:

"prettier": {
    "endOfLine": "lf",
    "htmlWhitespaceSensitivity": "ignore",
    "printWidth": 100,
    "tabWidth": 4,
    "useTabs": true
}

Installed VS Code extensions [Execute $ code --list-extensions in terminal to get the list. How to run VS Code from terminal in MacOS]

adpyke.codesnap
alefragnani.Bookmarks
antfu.iconify
antfu.unocss
asciidoctor.asciidoctor-vscode
astro-build.astro-vscode
BazelBuild.vscode-bazel
bierner.color-info
bierner.markdown-checkbox
bierner.markdown-preview-github-styles
bmewburn.vscode-intelephense-client
bradlc.vscode-tailwindcss
Breadnaught.vscode-ignore
castwide.solargraph
christian-kohler.path-intellisense
crystal-lang-tools.crystal-lang
darkriszty.markdown-table-prettify
Dart-Code.dart-code
DavidAnson.vscode-markdownlint
dbaeumer.vscode-eslint
dozerg.tsimportsorter
eamodio.gitlens
emilast.LogFileHighlighter
esbenp.prettier-vscode
formulahendry.code-runner
GitHub.codespaces
GitHub.copilot-nightly
GitHub.github-vscode-theme
GitHub.remotehub
GitHub.vscode-pull-request-github
golang.go
GraphQL.vscode-graphql-syntax
haskell.haskell
hbenl.vscode-test-explorer
James-Yu.latex-workshop
jock.svg
julialang.language-julia
justusadam.language-haskell
mads-hartmann.bash-ide-vscode
mikestead.dotenv
mrmlnc.vscode-scss
ms-azuretools.vscode-docker
ms-dotnettools.csharp
ms-python.isort
ms-python.python
ms-python.vscode-pylance
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.vscode-remote-extensionpack
ms-vscode.azure-repos
ms-vscode.cpptools-extension-pack
ms-vscode.hexeditor
ms-vscode.makefile-tools
ms-vscode.powershell
ms-vscode.remote-explorer
ms-vscode.remote-repositories
ms-vscode.test-adapter-converter
ms-vscode.vscode-typescript-next
nimsaem.nimvscode
Nuxt.mdc
nwolverson.language-purescript
Orta.vscode-jest
Orta.vscode-typescript-dev
PKief.material-icon-theme
rebornix.ruby
redhat.java
redhat.vscode-xml
redhat.vscode-yaml
rust-lang.rust-analyzer
sswg.swift-lang
svelte.svelte-vscode
tamasfe.even-better-toml
tonybaloney.vscode-pets
Tyriar.lorem-ipsum
Tyriar.sort-lines
unifiedjs.vscode-mdx
usernamehw.errorlens
vadimcn.vscode-lldb
VisualStudioExptTeam.intellicode-api-usage-examples
VisualStudioExptTeam.vscodeintellicode
vscjava.vscode-gradle
vscjava.vscode-java-pack
Vue.volar
WallabyJs.quokka-vscode
wingrunr21.vscode-ruby
withfig.fig
wmaurer.change-case
XadillaX.viml
yzhang.markdown-all-in-one
zhuangtongfa.material-theme
ZixuanChen.vitest-explorer
daidodo commented 1 year ago

Thanks for the feedback!

I've released v7.6.1 to fix it. Please tell me if you still have issues.

xiBread commented 1 year ago

Yep, that fixed it. Thanks!