VS Code extension providing IntelliSense for cs_script — the JavaScript scripting API for Counter-Strike 2 maps.
Features
Completions for Instance methods and other Domain receiver members
Auto-import — accepting a symbol like Entity from the completion list automatically adds the import
Go to Definition and hover docs for Domain receiver methods and imported API types
No project config files are written to your workspace
Requirements
VS Code 1.87+
A CS2 map project containing .js script files
Getting started
The extension activates automatically when a JavaScript file containing a cs_script/point_script import is opened. A prompt will appear:
cs_script imports detected. Enable cs_script IntelliSense for this workspace?
Click Enable. Alternatively, run the cs_script: Enable cs_script IntelliSense command from the Command Palette, or click the lightbulb on an import line.
Once enabled, the setting csscript.enable: true is saved to the workspace so it starts automatically on future opens.
Usage
import { Entity, Instance } from 'cs_script/point_script';
Type Instance. to see all available callbacks and methods
Type a class name (e.g. Ent) and accept from the completion list — the import is added automatically
Ctrl+click an imported type to jump to its declaration
Type declarations
Declaration files are bundled with the extension and kept up to date with CS2 game updates.