Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize imports incorrect, deleted one and duplicate one #1595

Closed
1 task done
zhoujian-official opened this issue Jan 19, 2024 · 3 comments
Closed
1 task done

Organize imports incorrect, deleted one and duplicate one #1595

zhoujian-official opened this issue Jan 19, 2024 · 3 comments

Comments

@zhoujian-official
Copy link
Contributor

Environment information

CLI:
  Version:                      1.5.2
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.11.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.2.4"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

What happened?

Original code:
import { useState } from "react";
import viteLogo from "/vite.svg";
import reactLogo from "./assets/react.svg";
import "./App.css";

After format:
import { useState } from "react";
import viteLogo from "/vite.svg";
import App.css
import reactLogo from reaassets/react.svgfrom "./assets/react.svg";

The last line of output is broken.

I tried Playground, but it works fine on playground.

Expected result

It should output the same as in playground.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico
Copy link
Member

Probably duplicate of #1570

Can you confirm that this is an issue that happens ONLY with VSCode?

@zhoujian-official
Copy link
Contributor Author

Probably duplicate of #1570

Can you confirm that this is an issue that happens ONLY with VSCode?

Yes, only in vscode.

@ematipico
Copy link
Member

Closing as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants