Skip to content

Commit 470a203

Browse files
DannyBritocpuguy83
authored andcommitted
add vscode reference in docs
Signed-off-by: Danny Brito <54994380+DannyBrito@users.noreply.github.com>
1 parent 5197e1c commit 470a203

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: gitleaks
66
- repo: https://github.com/golangci/golangci-lint
7-
rev: v1.62.0
7+
rev: v1.64.6
88
hooks:
99
- id: golangci-lint
1010
- repo: https://github.com/pre-commit/pre-commit-hooks

_typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[default.extend-words]
22
ba = "ba"
3+
4+
[default.extend-identifiers]
5+
fo = "fo"

test/linux_target_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5426,7 +5426,7 @@ func testLinuxSpec(t *testing.T, userSpec dalec.Spec) dalec.Spec {
54265426
userSpecRaw, err := json.Marshal(userSpec)
54275427
assert.NilError(t, err, "marshaling user spec to json")
54285428

5429-
assert.NilError(t, json.Unmarshal(userSpecRaw, &result), "unmarshaling user spec into result spec")
5429+
assert.NilError(t, json.Unmarshal(userSpecRaw, &result), "unmarshalling user spec into result spec")
54305430

54315431
return result
54325432
}

website/docs/editor-support.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ docker buildx build --call dalec.schema --build-arg BUILDKIT_SYNTAX=ghcr.io/proj
2424

2525
## VSCode
2626

27-
For VSCode you'll need to use a YAML plugin that supports JSON schemas, such as [YAML Support by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
27+
### Dalec Extension
28+
29+
The [Dalec VSCode Extension](https://github.com/project-dalec/dalec-vscode-extension) provides support for Dalec spec files with validation, syntax highlighting, and IntelliSense.
30+
31+
### Manual Configuration
32+
33+
You can also use a YAML plugin that supports JSON schemas, such as [YAML Support by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
2834
Follow the plugins instructions to add the schema to your workspace.
2935
Here are some examples of vscode workspace configs `settings.json` enabling the JSON schema:
3036

website/docs/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ To start building with Dalec, you'll need [Docker](https://docs.docker.com/engin
3434

3535
👉 **Ready to build?** See the [Quickstart](quickstart.md) guide!
3636

37+
**Using VSCode?** Install the [Dalec extension](https://github.com/project-dalec/dalec-vscode-extension) for schema validation and IntelliSense.
38+
3739
## Build Types
3840

3941
### Building from Source

0 commit comments

Comments
 (0)