A VS Code extension to detect and refactor database queries in CFML files. Not published to the VS Code Marketplace; distributed as a sideloaded .vsix.
CFML Refactor: Detect QueriesCFML Refactor: Convert Queries In PlaceCFML Refactor: Hoist QueriesCFML Refactor: Index WorkspaceCFML Refactor: Find Similar QueriesCFML Refactor: Find Extractable FunctionsCFML Refactor: Find Extractable Functions (Workspace)
npm install
npm run build # dev build (sourcemaps, no minify)
npm run watch # rebuild on change
npm test # compile tests + run mocha
npm run typecheck # tsc --noEmitnpm run package:patch # bumps version, builds .vsix into dist/The .vsix file appears in dist/. Copy to the target machine and install:
code --install-extension dist/cfml-refactor-X.Y.Z.vsixUse package (no version bump) for testing the package step itself, or package:minor for a minor bump.
npm run release:patch # bumps version, commits, tags, pushesGitHub Actions builds the .vsix and attaches it to a new Release. Download from the Releases page on the target machine.
code --install-extension /path/to/cfml-refactor-X.Y.Z.vsixThen reload the VS Code window: Ctrl+Shift+P -> "Developer: Reload Window".
To verify:
code --list-extensions | grep cfml-refactorVS Code may cache the old version. If a new install doesn't take effect:
code --uninstall-extension <publisher>.cfml-refactor
code --install-extension /path/to/cfml-refactor-X.Y.Z.vsix