Yandex YaCRM Assistant for BPMSoft Development (VS Code)
This Visual Studio Code extension accelerates development for the BPMSoft low-code platform. It provides 15 server-side C# snippets, 8 client-side JavaScript snippets, and three C# item-template generators.
The extension generates code only and does not bundle BPMSoft SDK assemblies. Compile generated C# code in a BPMSoftSDK project or a project referencing BPMSoft.Core.dll.
Snippets use VS Code's native declarative snippet format. File-generation commands are implemented by the extension runtime.
C# snippets
In a C# file, type a ya shortcut and select the snippet. Use Ctrl+Space if the suggestion list does not open automatically. Tab moves between replacement fields.
| Shortcut |
Inserts |
yafetch |
A typed entity loaded with FetchFromDB |
yaesqgetcol |
EntitySchemaQuery → GetEntityCollection |
yaesqpaged |
Deterministic paged EntitySchemaQuery read |
yaesqget |
EntitySchemaQuery → GetEntity |
yaselect |
Select with an Id = @id condition through IDataReader |
yainsert |
Insert |
yaupdate |
Update with Set / Where |
yadelete |
Delete with Where |
yaentity |
An Entity created with EntitySchema.CreateEntity, SetColumnValue, and Save |
yabpm |
A business-process launch through IProcessExecutor |
yastoredproc |
A parameterized StoredProcedure |
yasetting |
SysSettings.GetValue<T> |
yadi |
ClassFactory.Get<T>() |
yacheckop |
DBSecurityEngine.CheckCanExecuteOperation (throws) |
yatryop |
DBSecurityEngine.GetCanExecuteOperation (returns bool) |
The snippets are contributed through VS Code's built-in snippet engine and do not replace C# or C# Dev Kit suggestions.
JavaScript snippets
In a JavaScript client schema, type a ya shortcut and select the snippet.
| Shortcut |
Inserts |
yasetting |
Read one system setting |
yasettings |
Read multiple system settings |
yatryop |
Check one operation permission |
yatryops |
Check multiple operation permissions |
yaesqget |
Read one record with a client EntitySchemaQuery |
yaesqgetcol |
Read a collection with a client EntitySchemaQuery |
yaservicecall |
Call a configuration service through ServiceHelper |
yabpm |
Start a business process through ProcessModuleUtilities |
JavaScript snippets intentionally use schema dependencies by their imported names. Add the relevant modules to the client schema before using RightUtilities, ServiceHelper, or ProcessModuleUtilities.
Commands
Open the Command Palette with Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS and select a Yandex YaCRM Assistant command. You can also right-click a folder in Explorer and select Yandex YaCRM: New BPMSoft Item.
| Command |
Generated class |
| New Configuration Service... |
BPMSoft.Web.Common.BaseService with [ServiceContract], [OperationContract], and [WebInvoke] |
| New Entity Event Listener... |
BaseEntityEventListener with [EntityEventListener(SchemaName = "...")] and OnInserting / OnUpdating / OnDeleting stubs |
| New Process Executor... |
Partial user-task class in BPMSoft.Core.Process.Configuration with an InternalExecute override |
Each command validates the class name, selects a target folder, uses the BPMSoft namespace convention, and requests confirmation before overwriting an existing file. Commands that write files require a trusted workspace; snippets also work in Restricted Mode.
Install from VSIX
code --install-extension yandex-yacrm-assistant-bpmsoft-<version>.vsix --force
You can also use Extensions → … → Install from VSIX.
Build from source
npm install
npm run compile
npm test
npm run package
To debug, open this directory in VS Code and start the Run Extension configuration with F5.
BPMSoft API differences
Snippet bodies live in snippets/server-csharp.json and snippets/client-javascript.json; templates live in src/templates.ts. BPMSoft versions can differ in individual API signatures, so review generated code against the SDK version used by your installation.
License
MIT © 2026 Oleg Konanykhin.