From 7aa32d20fca6f90d66a4ee19cb5868d46c6ff5b9 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 29 May 2023 17:13:54 -0600 Subject: [PATCH] vscode extension template --- tct-vscode-editor/.gitignore | 3 +++ tct-vscode-editor/.vscode/launch.json | 19 +++++++++++++++++++ tct-vscode-editor/.vscode/tasks.json | 13 +++++++++++++ tct-vscode-editor/.vscodeignore | 6 ++++++ tct-vscode-editor/README.md | 10 ++++++++++ tct-vscode-editor/build.hxml | 10 ++++++++++ tct-vscode-editor/package.json | 23 +++++++++++++++++++++++ tct-vscode-editor/src/Main.hx | 9 +++++++++ tct-vscode-editor/src/Main.kiss | 18 ++++++++++++++++++ tct-vscode-editor/test.sh | 3 +++ 10 files changed, 114 insertions(+) create mode 100644 tct-vscode-editor/.gitignore create mode 100644 tct-vscode-editor/.vscode/launch.json create mode 100644 tct-vscode-editor/.vscode/tasks.json create mode 100644 tct-vscode-editor/.vscodeignore create mode 100644 tct-vscode-editor/README.md create mode 100644 tct-vscode-editor/build.hxml create mode 100644 tct-vscode-editor/package.json create mode 100644 tct-vscode-editor/src/Main.hx create mode 100644 tct-vscode-editor/src/Main.kiss create mode 100644 tct-vscode-editor/test.sh diff --git a/tct-vscode-editor/.gitignore b/tct-vscode-editor/.gitignore new file mode 100644 index 0000000..9a4e1f7 --- /dev/null +++ b/tct-vscode-editor/.gitignore @@ -0,0 +1,3 @@ +bin/ +*.vsix +node_modules/ \ No newline at end of file diff --git a/tct-vscode-editor/.vscode/launch.json b/tct-vscode-editor/.vscode/launch.json new file mode 100644 index 0000000..216fc6b --- /dev/null +++ b/tct-vscode-editor/.vscode/launch.json @@ -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" + ] + } + ] +} \ No newline at end of file diff --git a/tct-vscode-editor/.vscode/tasks.json b/tct-vscode-editor/.vscode/tasks.json new file mode 100644 index 0000000..534edcc --- /dev/null +++ b/tct-vscode-editor/.vscode/tasks.json @@ -0,0 +1,13 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "hxml", + "file": "build.hxml", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/tct-vscode-editor/.vscodeignore b/tct-vscode-editor/.vscodeignore new file mode 100644 index 0000000..ac846bc --- /dev/null +++ b/tct-vscode-editor/.vscodeignore @@ -0,0 +1,6 @@ +.vscode +bin/*.map +src +build.hxml +haxelib.json +test.sh \ No newline at end of file diff --git a/tct-vscode-editor/README.md b/tct-vscode-editor/README.md new file mode 100644 index 0000000..171ccc8 --- /dev/null +++ b/tct-vscode-editor/README.md @@ -0,0 +1,10 @@ +# your-extension README +An extension made with kiss: https://github.com/NQNStudios/kisslang + +## Features + +## Extension Settings + +## Known Issues + +## Release Notes \ No newline at end of file diff --git a/tct-vscode-editor/build.hxml b/tct-vscode-editor/build.hxml new file mode 100644 index 0000000..200768e --- /dev/null +++ b/tct-vscode-editor/build.hxml @@ -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 \ No newline at end of file diff --git a/tct-vscode-editor/package.json b/tct-vscode-editor/package.json new file mode 100644 index 0000000..c57c515 --- /dev/null +++ b/tct-vscode-editor/package.json @@ -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": "" +} \ No newline at end of file diff --git a/tct-vscode-editor/src/Main.hx b/tct-vscode-editor/src/Main.hx new file mode 100644 index 0000000..2196d43 --- /dev/null +++ b/tct-vscode-editor/src/Main.hx @@ -0,0 +1,9 @@ +import kiss.Prelude; +import kiss.List; + +import vscode.*; + +using StringTools; + +@:build(kiss.Kiss.build()) +class Main {} diff --git a/tct-vscode-editor/src/Main.kiss b/tct-vscode-editor/src/Main.kiss new file mode 100644 index 0000000..e9ea786 --- /dev/null +++ b/tct-vscode-editor/src/Main.kiss @@ -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 "")) + ) \ No newline at end of file diff --git a/tct-vscode-editor/test.sh b/tct-vscode-editor/test.sh new file mode 100644 index 0000000..0ee8ae9 --- /dev/null +++ b/tct-vscode-editor/test.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +haxe build.hxml \ No newline at end of file