From ca5d64eca79d6da70d9f16f0126b713ee8c64c93 Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Fri, 25 Aug 2023 19:16:33 -0400 Subject: [PATCH] Configure automatic import sorting --- prototype-3x5.code-workspace | 6 +++++- src/notcl.ts | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/prototype-3x5.code-workspace b/prototype-3x5.code-workspace index 63eb5e9..074710a 100644 --- a/prototype-3x5.code-workspace +++ b/prototype-3x5.code-workspace @@ -10,6 +10,10 @@ "editor.formatOnSave": true, "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" - } + }, + "importSorter.generalConfiguration.sortOnBeforeSave": true + }, + "extensions": { + "recommendations": ["mike-co.import-sorter", "esbenp.prettier-vscode"] } } diff --git a/src/notcl.ts b/src/notcl.ts index 817094c..e352627 100644 --- a/src/notcl.ts +++ b/src/notcl.ts @@ -10,12 +10,12 @@ import { Use, } from "./peg"; import { - Script, - Word as WordType, - TextWord, EnchantedWord as EnchantedWordType, - SimplifyWord, InterpolatedPiece, + Script, + SimplifyWord, + TextWord, + Word as WordType, } from "./words"; const Comment = Regex(/#[^\n]*/y)