You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ESLint configuration for TypeScript with custom rules and ignores
- Introduced a new ESLint configuration file (eslint.config.mjs)
- Integrated recommended settings from ESLint and TypeScript ESLint
- Configured specific rules to be turned off for flexibility in TypeScript code
- Added ignores for common directories and file types to streamline linting process
Copy file name to clipboardExpand all lines: docs/guide/ide-setup.md
+70-27Lines changed: 70 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,84 @@
1
1
# IDE Setup
2
2
3
-
To get the best experience developing with ObjectQL, we recommend Visual Studio Codewith the following configuration.
3
+
To get the best experience developing with ObjectQL, we recommend **Visual Studio Code** equipped with the official toolset. This setup provides you with an "AI-like" development experience with intelligent auto-completion, real-time validation, and instant code generation.
4
4
5
-
## Visual Studio Code
5
+
## Visual Studio Code Extension
6
6
7
-
We recommend using [VS Code](https://code.visualstudio.com/) as your primary editor.
7
+
The **Standard ObjectStack AI Extension** transforms VS Code into a dedicated IDE for ObjectQL.
8
8
9
-
### Recommended Extensions
9
+
### Core Features
10
10
11
-
**1. ObjectQL Extension** ⭐
12
-
The official ObjectQL extension provides intelligent IntelliSense, schema validation, and code snippets for all ObjectQL metadata files.
11
+
1.**Metadata Generators** ⚡
12
+
* Instantly scaffold new files using the Command Palette.
**Note:** The ObjectQL extension depends on the Red Hat YAML extension and will prompt you to install it automatically.
29
+
#### Option 1: VS Code Marketplace (Recommended)
30
+
Search for **"ObjectQL"** in the Extensions view (`Cmd+Shift+X`) and install.
31
31
32
-
**3. JSON (Official)**
33
-
For editing configuration files.
32
+
#### Option 2: Install from VSIX (For Enterprise/Offline)
33
+
If you are building from source or using a private build:
34
+
1. Run `pnpm run package` in `packages/tools/vscode-objectql`.
35
+
2. In VS Code, run command: **"Extensions: Install from VSIX..."**
36
+
3. Select the generated `.vsix` file.
37
+
38
+
### Recommended Usage
39
+
40
+
To maximize productivity, we recommend the following workflow:
41
+
42
+
1.**Create an Object:**
43
+
Run **"ObjectQL: New Object Definition"**. Enter a name (e.g., `invoice`).
44
+
*Result:*`src/objects/invoice.object.yml` is created with standard fields definitions.
45
+
46
+
2.**Add Fields:**
47
+
Open the file and use Snippets.
48
+
* Type `oql-field-lookup` -> tab -> auto-fills a relationship field structure.
49
+
* Type `oql-index` -> tab -> adds a database index.
50
+
51
+
3.**Validate:**
52
+
The extension runs silently in the background. If you see red squiggles, hover over them to see exactly which protocol rule was violated (e.g., "Field 'required' must be a boolean").
53
+
54
+
---
55
+
56
+
## Other Essential Extensions
57
+
58
+
The ObjectQL extension automatically configures these for you, but they are worth noting:
0 commit comments