Repository navigation
v0.64.1
Patch Changes
-
#568
477271dThanks @mattiamanzati! - Fix auto-import with namespace import packages generating malformed code when the identifier is at the beginning of the file.When using
namespaceImportPackagesconfiguration and auto-completing an export likeisAnyKeywordfromeffect/SchemaAST, the code was incorrectly generated as:SchemaAST.import * as SchemaAST from "effect/SchemaAST";
Instead of the expected:
import * as SchemaAST from "effect/SchemaAST"; SchemaAST.isAnyKeyword;
The fix ensures the import statement is added before the namespace prefix when both changes target position 0.