Autocomplete for Codename XML Files (Only stages currently) & Haxe scripts (HScript)
- Create stage with stage snippets and code completion
- PLANNED!
Completion for other XML file types - Completion for hscript callbacks, functions, and variables (global scripts have different autocomplete than normal scripts)
- Hover documentation for classes and their members
- Type inference for variable dot-completion
- Supported script file extensions:
.haxe,.hscript,.hxs,.hxc,.pack
- Download the .vsix file from the latest release
- Open Visual Studio Code and select Extensions from the left bar
- At the top of Extensions menu click on three dots and select "Install From VSIX..."
- In the Install from VSIX window select downloaded .vsix file
- Restart Visual Studio Code
- Added Foxlite (3D) class support, and reorganized class data into per-library subfolders internally so lookups don't care which library a class came from
- Added Signature Help: as you type a function call, you'll now see its parameters pop up with the one you're currently on highlighted
- Hover info for classes now shows each member/static/function in its own colored Haxe code block instead of a flat description list
- Hover and autocomplete now also infer a variable's type from function parameters (e.g.
function onUpdate(cam:FoxCamera)), not justvardeclarations - Added hover support for functions, variables, and parameters you write yourself in your own script, not just library classes
- Fixed hovering not showing anything for instance fields (e.g.
camera.fov) - it only worked for functions and statics before - Fixed importing function parameters: parameters that are already built into Haxe are no longer incorrectly imported.
import Int; // no longer imports `Int`
function stepHit(curStep:Int) {}Added supported classes:
| Class |
|---|
FoxBasic |
FoxCache |
FoxCamera |
FoxInstancedModel |
FoxLayer |
FoxModel |
FoxObject |
FoxOfflineScene |
FoxScene |
FoxShader |
- Added
modpack.iniSupport, You can now add Flags without having to look at the API doc. - Overhauled Extenstion Runner by Detecting
modpack.iniin yourdata/config/folder. Added supported classes:
| Class |
|---|
TranslationUtil |
Week |
Video Cutscene |
sorry it had to be little i have other important stuff to do
- Added Class Support (on adding a new constructor OR getting a static variable/function)
- Added support for
.hscript,.hxs,.hxc, and.packfile extensions, they all behave like you're coding in a.hxfile - Added warnings on importing pre-imported libraries like
flixel.FlxSprite. You can check the full list here
Added supported classes:
| Class |
|---|
FunkinSprite |
FunkinSave |
CoolUtil |
Flags |
FunkinText |
WindowUtils |
MathUtil |
HttpUtil |
DiscordUtil |
- Fixed regex for arrow functions
- Removed the command example from vscode 💀 (i left it in by accident)
- Changed repo url to the CodenameCrew one
- Changed Codename Autocomplete Prefix to "CNE"
- Added the default hscript events and callbacks (no type checking) (global scripts has different autocomplete than normal scripts)
- The first release yay!
Any pull requests are appreciated, feel free to Pull Request any missing stuff!
NOTE : If you don't know how to install dependencies use npm install
- Install npm
- Clone this repo with
git clone https://github.com/CodenameCrew/CNE-Autocompleter.git - To install all the libraries run
npm install - And to compile run
npm run compile(or pressF5)