We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
"Remove 'type' from import", IntelliSense, autocomplete, suggestion
I'm seeing this in VSCode, with all extensions disabled:
Bundled TypeScript version: v5.1.0
Version: 1.81.0 Commit: 6445d93c81ebe42c4cbd7a60712e0b17d9463e97 Date: 2023-08-02T12:38:28.722Z (1 wk ago) Electron: 22.3.18 ElectronBuildId: 22689846 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Darwin arm64 22.6.0
N/A
Use the following files:
// main.ts import { TwistyAlgEditor, type TwistyPlayer } from "./other-file"; new TwistyPlayer(); // other-file.ts export class TwistyAlgEditor {} export class TwistyPlayer {}
Then attempt to select the Remove 'type' from import of 'TwistyPlaver' from "cubing/twisty" suggestion for new TwistyPlayer:
Remove 'type' from import of 'TwistyPlaver' from "cubing/twisty"
new TwistyPlayer
The code is rewritten to:
import { TwistyAlgEditorTwistyPlayer, } from "./other-file"; new TwistyPlayer();
import { TwistyAlgEditor, TwistyPlayer } from "./other-file"; new TwistyPlayer();
The text was updated successfully, but these errors were encountered:
Thanks for the fix! 😄
Sorry, something went wrong.
iisaduan
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
🔎 Search Terms
"Remove 'type' from import", IntelliSense, autocomplete, suggestion
🕗 Version & Regression Information
I'm seeing this in VSCode, with all extensions disabled:
Bundled TypeScript version: v5.1.0
Version: 1.81.0
Commit: 6445d93c81ebe42c4cbd7a60712e0b17d9463e97
Date: 2023-08-02T12:38:28.722Z (1 wk ago)
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.6.0
⏯ Playground Link
N/A
💻 Code
Use the following files:
Then attempt to select the
Remove 'type' from import of 'TwistyPlaver' from "cubing/twisty"
suggestion fornew TwistyPlayer
:🙁 Actual behavior
The code is rewritten to:
🙂 Expected behavior
The code is rewritten to:
The text was updated successfully, but these errors were encountered: