vscode extension template
This commit is contained in:
3
tct-vscode-editor/.gitignore
vendored
Normal file
3
tct-vscode-editor/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
bin/
|
||||
*.vsix
|
||||
node_modules/
|
19
tct-vscode-editor/.vscode/launch.json
vendored
Normal file
19
tct-vscode-editor/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Extension",
|
||||
"type": "extensionHost",
|
||||
"request": "launch",
|
||||
"runtimeExecutable": "${execPath}",
|
||||
"args": [
|
||||
"--extensionDevelopmentPath=${workspaceFolder}"
|
||||
],
|
||||
"stopOnEntry": false,
|
||||
"sourceMaps": true,
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/*.js"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
13
tct-vscode-editor/.vscode/tasks.json
vendored
Normal file
13
tct-vscode-editor/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "hxml",
|
||||
"file": "build.hxml",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
6
tct-vscode-editor/.vscodeignore
Normal file
6
tct-vscode-editor/.vscodeignore
Normal file
@@ -0,0 +1,6 @@
|
||||
.vscode
|
||||
bin/*.map
|
||||
src
|
||||
build.hxml
|
||||
haxelib.json
|
||||
test.sh
|
10
tct-vscode-editor/README.md
Normal file
10
tct-vscode-editor/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# your-extension README
|
||||
An extension made with kiss: https://github.com/NQNStudios/kisslang
|
||||
|
||||
## Features
|
||||
|
||||
## Extension Settings
|
||||
|
||||
## Known Issues
|
||||
|
||||
## Release Notes
|
10
tct-vscode-editor/build.hxml
Normal file
10
tct-vscode-editor/build.hxml
Normal file
@@ -0,0 +1,10 @@
|
||||
-lib kiss-vscode-api
|
||||
-lib kiss
|
||||
-cp src
|
||||
-js bin/extension.js
|
||||
-dce full
|
||||
-D analyzer-optimize
|
||||
-D js-es=6
|
||||
-debug
|
||||
Main
|
||||
-cmd npx vsce package
|
23
tct-vscode-editor/package.json
Normal file
23
tct-vscode-editor/package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"main": "bin/extension.js",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"repository": {
|
||||
"url": "",
|
||||
"type:": "git"
|
||||
},
|
||||
"homepage": "",
|
||||
"categories": [],
|
||||
"extensionPack": [],
|
||||
"publisher": "",
|
||||
"contributes": {},
|
||||
"engines": {
|
||||
"vscode": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vsce": "^2.15.0"
|
||||
},
|
||||
"version": "0.0.0",
|
||||
"activationEvents": [],
|
||||
"displayName": ""
|
||||
}
|
9
tct-vscode-editor/src/Main.hx
Normal file
9
tct-vscode-editor/src/Main.hx
Normal file
@@ -0,0 +1,9 @@
|
||||
import kiss.Prelude;
|
||||
import kiss.List;
|
||||
|
||||
import vscode.*;
|
||||
|
||||
using StringTools;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class Main {}
|
18
tct-vscode-editor/src/Main.kiss
Normal file
18
tct-vscode-editor/src/Main.kiss
Normal file
@@ -0,0 +1,18 @@
|
||||
(loadFrom "kiss-vscode-api" "src/Util.kiss")
|
||||
(loadFrom "kiss-vscode-api" "src/KissUtil.kiss")
|
||||
|
||||
@(:expose "activate")
|
||||
(function activate [:ExtensionContext context]
|
||||
(printThroughInfoMessage)
|
||||
// Add your extension's commands here with (defCommand <...>):
|
||||
// (defCommand context exampleCommand "An example command for your extension" "C-; C-1" [] (doSomething))
|
||||
|
||||
// Add your extension's configuration here with (defConfiguration <...>):
|
||||
// (defConfiguration
|
||||
// :Bool configBool
|
||||
// (object
|
||||
// default false)
|
||||
// :String configString
|
||||
// (object
|
||||
// default ""))
|
||||
)
|
3
tct-vscode-editor/test.sh
Normal file
3
tct-vscode-editor/test.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
haxe build.hxml
|
Reference in New Issue
Block a user