Skip to content

Commit 53799af

Browse files
committed
chore: add icon, ignore submodule
1 parent 3463e4a commit 53799af

File tree

5 files changed

+56
-74
lines changed

5 files changed

+56
-74
lines changed

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ vsc-extension-quickstart.md
88
**/.eslintrc.json
99
**/*.map
1010
**/*.ts
11+
velociraptor

README.md

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,13 @@
1-
# vscode-velociraptor README
2-
3-
This is the README for your extension "vscode-velociraptor". After writing up a brief description, we recommend including the following sections.
1+
# Velociraptor support for VSCode
42

53
## Features
64

7-
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
8-
9-
For example if there is an image subfolder under your extension project workspace:
10-
11-
\!\[feature X\]\(images/feature-x.png\)
12-
13-
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
5+
- Code assistance for script configuration files (both `yaml` and `json`).
146

157
## Requirements
168

17-
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
18-
19-
## Extension Settings
20-
21-
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22-
23-
For example:
24-
25-
This extension contributes the following settings:
26-
27-
* `myExtension.enable`: enable/disable this extension
28-
* `myExtension.thing`: set to `blah` to do something
29-
30-
## Known Issues
31-
32-
Calling out known issues can help limit users opening duplicate issues against your extension.
33-
34-
## Release Notes
35-
36-
Users appreciate release notes as you update your extension.
37-
38-
### 1.0.0
39-
40-
Initial release of ...
41-
42-
### 1.0.1
43-
44-
Fixed issue #.
45-
46-
### 1.1.0
47-
48-
Added features X, Y, and Z.
49-
50-
-----------------------------------------------------------------------------------------------------------
51-
52-
## Working with Markdown
53-
54-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55-
56-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
57-
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
58-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
59-
60-
### For more information
9+
This extension depends on `redhat.yaml` for yaml code assistance.
6110

62-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
11+
## License
6412

65-
**Enjoy!**
13+
See [LICENSE](LICENSE)

assets/icon.png

22.1 KB
Loading

package.json

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
{
22
"name": "vscode-velociraptor",
33
"displayName": "Velociraptor",
4-
"description": "Velociraptor support for VSCode",
5-
"version": "0.0.1",
4+
"description": "Velociraptor support for VSCode",
5+
"icon": "assets/icon.png",
6+
"version": "0.0.1",
7+
"publisher": "umbo",
68
"engines": {
79
"vscode": "^1.45.0"
8-
},
10+
},
11+
"keywords": [
12+
"deno",
13+
"npm",
14+
"scripts"
15+
],
916
"categories": [
1017
"Other"
1118
],
12-
"activationEvents": [
13-
"onCommand:vr.run"
14-
],
19+
"activationEvents": [
20+
"*",
21+
"onCommand:vr.enable",
22+
"onCommand:vr.disable"
23+
],
1524
"main": "./out/extension.js",
1625
"contributes": {
17-
"jsonValidation": [
26+
"jsonValidation": [
1827
{
1928
"fileMatch": "velociraptor.json",
2029
"url": "./out/schema.json"
@@ -41,12 +50,35 @@
4150
"fileMatch": "scripts.yml",
4251
"url": "./out/schema.json"
4352
}
44-
]
53+
],
54+
"commands": [
55+
{
56+
"title": "Enable Velociraptor",
57+
"command": "vr.enable",
58+
"category": "Velociraptor"
59+
},
60+
{
61+
"title": "Disable Velociraptor",
62+
"command": "vr.disable",
63+
"category": "Velociraptor"
64+
}
65+
],
66+
"configuration": {
67+
"type": "object",
68+
"title": "Velociraptor",
69+
"properties": {
70+
"vr.enable": {
71+
"type": "boolean",
72+
"default": true,
73+
"description": "Enable Velociraptor support"
74+
}
75+
}
76+
}
4577
},
4678
"scripts": {
4779
"build:jsonschema": "mkdir -p out && ts-json-schema-generator --path velociraptor/src/scripts_config.ts --type ScriptsConfiguration -o out/schema.json",
4880
"vscode:prepublish": "npm run compile",
49-
"compile": "tsc -p ./",
81+
"compile": "tsc -p ./ && npm run build:jsonschema",
5082
"lint": "eslint src --ext ts",
5183
"watch": "tsc -watch -p ./",
5284
"pretest": "npm run compile && npm run lint",
@@ -66,5 +98,9 @@
6698
"typescript": "^3.8.3",
6799
"vscode-test": "^1.3.0"
68100
},
69-
"extensionDependencies": ["redhat.vscode-yaml"]
101+
"extensionDependencies": ["redhat.vscode-yaml"],
102+
"repository": {
103+
"type": "git",
104+
"url": "https://github.com/umbopepato/vscode-velociraptor"
105+
}
70106
}

tsconfig.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
"target": "es6",
55
"outDir": "out",
66
"lib": [
7-
"es6"
7+
"es2019"
88
],
99
"sourceMap": true,
1010
"rootDir": "src",
11-
"strict": true /* enable all strict type-checking options */
12-
/* Additional Checks */
13-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
14-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
15-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
11+
"strict": true
1612
},
1713
"exclude": [
1814
"node_modules",
19-
".vscode-test"
15+
".vscode-test",
16+
"velociraptor"
2017
]
2118
}

0 commit comments

Comments
 (0)