From c671aebe80e42f7f94afd056edec55385f96f4d2 Mon Sep 17 00:00:00 2001 From: Nettika Date: Sun, 29 Sep 2024 21:25:48 -0700 Subject: [PATCH] Create initial extension --- .envrc | 1 + .gitignore | 4 ++++ extension.ts | 5 +++++ flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 19 +++++++++++++++++++ package-lock.json | 39 +++++++++++++++++++++++++++++++++++++++ package.json | 19 +++++++++++++++++++ tsconfig.json | 7 +++++++ 8 files changed, 121 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 extension.ts create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 tsconfig.json diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1983c29 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.direnv/ +.vscode/ +extension.js +node_modules/ diff --git a/extension.ts b/extension.ts new file mode 100644 index 0000000..aa27b12 --- /dev/null +++ b/extension.ts @@ -0,0 +1,5 @@ +import { ExtensionContext } from "vscode"; + +export function activate(context: ExtensionContext) { } + +export function deactivate() { } diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ad01f94 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1727540905, + "narHash": "sha256-40J9tW7Y794J7Uw4GwcAKlMxlX2xISBl6IBigo83ih8=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "fbca5e745367ae7632731639de5c21f29c8744ed", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f36811b --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "Fennlang Visual Studio Code extension"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + }; + + outputs = { nixpkgs, ... }: + let + pkgs = import nixpkgs { + system = "x86_64-linux"; + }; + in + { + devShells.x86_64-linux.default = pkgs.mkShell { + packages = with pkgs; [ nodejs ]; + }; + }; +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4675196 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,39 @@ +{ + "name": "fennlang-vscode", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "fennlang-vscode", + "version": "0.1.0", + "license": "MIT", + "devDependencies": { + "@types/vscode": "^1.93.0", + "typescript": "^5.6.2" + }, + "engines": { + "vscode": "^1.74.0" + } + }, + "node_modules/@types/vscode": { + "version": "1.93.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.93.0.tgz", + "integrity": "sha512-kUK6jAHSR5zY8ps42xuW89NLcBpw1kOabah7yv38J8MyiYuOHxLQBi0e7zeXbQgVefDy/mZZetqEFC+Fl5eIEQ==", + "dev": true + }, + "node_modules/typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..ce5d8d2 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "fennlang-vscode", + "version": "0.1.0", + "description": "Fennlang extension for Visual Studio Code", + "engines": { + "vscode": "^1.74.0" + }, + "main": "extension.js", + "contributes": {}, + "scripts": { + "build": "tsc" + }, + "author": "Nettika ", + "license": "MIT", + "devDependencies": { + "@types/vscode": "^1.93.0", + "typescript": "^5.6.2" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..50aa84c --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "lib": [ + "ESNext" + ] + } +}