Skip to content

Commit 5f87541

Browse files
committed
Docs, types, and dependency updates
Rebrand README and package metadata for the community fork (updated displayName, description, badges, and README content). Update logo image and bump package version to 1.10.18. Apply formatting and typing changes in src/setPlugin.ts and migrate src/types/git.d.ts to use explicit imports/types and non-const enums with consistent formatting. Update yarn.lock to refresh several dependency versions.
1 parent 20a7ec7 commit 5f87541

6 files changed

Lines changed: 443 additions & 395 deletions

File tree

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
1-
# CfxLua IntelliSense (FiveM / RedM)
1+
# CfxLua IntelliSense — Community Fork (VSCode & Open VSX)
22

3-
[![Version](https://img.shields.io/badge/version-1.10.16-blue)](https://github.com/AnishBplayz/cfxlua-vscode-openvsx/releases)
43
[![Open VSX](https://img.shields.io/badge/Open_VSX-Registry-8732a0?logo=openvscode)](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx)
54
[![VS Marketplace](https://img.shields.io/badge/VS_Marketplace-Install-007acc?logo=visualstudiocode)](https://marketplace.visualstudio.com/items?itemName=AnishBplayz.cfxlua-vscode-openvsx)
65

7-
> **Note**
8-
> Community-maintained fork of the archived [overextended/cfxlua-vscode](https://github.com/overextended/cfxlua-vscode). Published under the `anishbplayz` namespace on [Open VSX Registry](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) and [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=AnishBplayz.cfxlua-vscode-openvsx).
9-
>
10-
> *This extension is not authored, published, sponsored, nor endorsed by Cfx.re.*
6+
## About this fork
7+
8+
This extension is a **community fork** of the **archived** [overextended/cfxlua-vscode](https://github.com/overextended/cfxlua-vscode) project. The original is no longer maintained; this fork is kept up to date and published for the community.
9+
10+
It is maintained independently and published under the **anishbplayz** namespace on both the [Open VSX Registry](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) and the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=AnishBplayz.cfxlua-vscode-openvsx).
11+
12+
*This extension is not authored, published, sponsored, nor endorsed by Cfx.re.*
13+
14+
---
15+
16+
## Why use this fork?
17+
18+
- **Actively maintained** — The original overextended extension is archived; this fork receives updates and remains available.
19+
- **Available everywhere** — Install from both Open VSX (e.g. VSCodium) and the Visual Studio Marketplace (VS Code, Cursor).
20+
- **Drop-in replacement** — Same IntelliSense, native definitions, and runtime globals as the original; you can switch without changing your workflow.
1121

1222
---
1323

14-
## Features
24+
## What this extension provides
1525

16-
- **IntelliSense & diagnostics** — Provided by [sumneko's Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua): diagnostics, annotations, and auto-completion.
17-
- **Runtime globals** — Support for environment globals (e.g. `CreateThread`, promises, `json`, statebags).
18-
- **Natives** — Support for FiveM, RedM, and CFX natives.
19-
- **LuaGLM** — Support for Cfx's [Lua implementation (LuaGLM)](https://github.com/citizenfx/lua/tree/luaglm-dev/cfx):
20-
- Vector, quat, and matrix types.
21-
- Partial support for extended syntax / [power patches](https://github.com/citizenfx/lua/blob/luaglm-dev/cfx/README.md#power-patches).
22-
*Use with caution — some patches have been known to cause crashes.*
26+
- **Smart editing for Lua** — Diagnostics, hover info, and auto-completion via [sumneko's Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua).
27+
- **Cfx runtime globals** — Environment APIs such as `CreateThread`, promises, `json`, and statebags are recognized and completed.
28+
- **Game natives** — Type definitions and IntelliSense for FiveM, RedM, and CFX natives.
29+
- **LuaGLM support** — Types and support for Cfx's [Lua implementation (LuaGLM)](https://github.com/citizenfx/lua/tree/luaglm-dev/cfx): vectors, quaternions, and matrices, plus limited [power patches](https://github.com/citizenfx/lua/blob/luaglm-dev/cfx/README.md#power-patches) support.
30+
*Note: Some power patches have been reported to cause crashes; use with care.*
2331

2432
---
2533

@@ -46,4 +54,4 @@
4654

4755
## Credits
4856

49-
Thanks to CitizenFX, gottfriedleibniz, alloc8or, iTexZoz, TasoOneAsia, Overextended and CommunityOX.
57+
Thanks to CitizenFX, gottfriedleibniz, alloc8or, iTexZoz, TasoOneAsia, Overextended and CommunityOX.

logo.png

-10.9 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cfxlua-vscode-openvsx",
3-
"displayName": "CfxLua IntelliSense for VSCode | OpenVSX",
4-
"description": "Natives and IntelliSense support for the Lua Script runtime used by FiveM and RedM.",
3+
"displayName": "CfxLua IntelliSense — Community Fork (VSCode & Open VSX)",
4+
"description": "Community-maintained fork of the archived CfxLua extension. Adds Lua IntelliSense, FiveM/RedM native definitions, and runtime globals for VSCode and OpenVSX Extension Package.",
55
"version": "1.10.18",
66
"publisher": "anishbplayz",
77
"license": "MIT",

src/setPlugin.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ export default async function setPlugin(enable: boolean) {
4343
// Drastically improves time to load workspace
4444
const ignoreDir: string[] = config.get('workspace.ignoreDir') || [];
4545

46-
['.vscode', '.git', '.github', 'node_modules', '\\[cfx\\]'].forEach((item) => {
47-
if (!ignoreDir.includes(item)) {
48-
ignoreDir.push(item);
49-
}
50-
});
46+
['.vscode', '.git', '.github', 'node_modules', '\\[cfx\\]'].forEach(
47+
(item) => {
48+
if (!ignoreDir.includes(item)) {
49+
ignoreDir.push(item);
50+
}
51+
},
52+
);
5153

5254
await config.update('workspace.ignoreDir', ignoreDir, settingsScope);
5355

0 commit comments

Comments
 (0)