Create initial extension

This commit is contained in:
2024-09-29 21:25:48 -07:00
commit c671aebe80
8 changed files with 121 additions and 0 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
.direnv/
.vscode/
extension.js
node_modules/

5
extension.ts Normal file
View File

@@ -0,0 +1,5 @@
import { ExtensionContext } from "vscode";
export function activate(context: ExtensionContext) { }
export function deactivate() { }

27
flake.lock generated Normal file
View File

@@ -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
}

19
flake.nix Normal file
View File

@@ -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 ];
};
};
}

39
package-lock.json generated Normal file
View File

@@ -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"
}
}
}
}

19
package.json Normal file
View File

@@ -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 <git@nettika.cat>",
"license": "MIT",
"devDependencies": {
"@types/vscode": "^1.93.0",
"typescript": "^5.6.2"
}
}

7
tsconfig.json Normal file
View File

@@ -0,0 +1,7 @@
{
"compilerOptions": {
"lib": [
"ESNext"
]
}
}