You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ts-nocheckimport*asAPIClientErrorfrom'app/services/api/APIClientError';import{TPhotoSlug,Codec}from'app/services/api/Photo/types/PhotoSlug';APIClientError;exporttypeF=TPhotoSlug;// edit this comment and save the file
When I save index.ts and "code actions on save" runs, I notice two things. Firstly, it feels much slower than I would expect it to be. It adds about 500ms-1s to the save operation (see screen recording below). Secondly, I end up with broken imports—this is similar to #179 although note here I'm using the latest version of Biome which—I understand from https://github.com/biomejs/biome/issues/688—is supposed to include the fix.
// @ts-nocheckimport*asAPIClientErrorfrom'app/services/api/APIClientError';import{TPhotoStypelug}from'app/services/api/Photo/types/PhotoSlug';APIClientError;exporttypeF=TPhotoSlug;// edit this comment and save the file
Screen.Recording.2024-05-09.at.09.51.16.mov
Expected behavior
Save is fast + imports are not broken.
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
No response
The text was updated successfully, but these errors were encountered:
VS Code version
1.89.0
Extension version
2.2.2
Biome version
1.7.3
Operating system
Description
When
noUnusedImports
is enabled, running code actions on save (source.organizeImports.biome
+quickfix.biome
) is slow and breaks the imports.Steps to reproduce
Full reduced test case: https://github.com/OliverJAsh/biome-vscode-quickfix-import-issue/compare/1.7.3. Contents inlined below.
Given:
biome.json
:.vscode/settings.json
:index.ts
:When I save
index.ts
and "code actions on save" runs, I notice two things. Firstly, it feels much slower than I would expect it to be. It adds about 500ms-1s to the save operation (see screen recording below). Secondly, I end up with broken imports—this is similar to #179 although note here I'm using the latest version of Biome which—I understand from https://github.com/biomejs/biome/issues/688—is supposed to include the fix.Screen.Recording.2024-05-09.at.09.51.16.mov
Expected behavior
Save is fast + imports are not broken.
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
No response
The text was updated successfully, but these errors were encountered: