Skip to content

Commit

Permalink
feat: add NSCode-compatible link provider
Browse files Browse the repository at this point in the history
  • Loading branch information
esfalsa committed Jun 20, 2024
1 parent bdfd28a commit 7bfb406
Show file tree
Hide file tree
Showing 10 changed files with 1,089 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
playground/
out/

# Node.js
node_modules/
Expand Down
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
8 changes: 8 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
.vscode/**
.vscode-test/**
src/**
playground/**
.gitignore
pnpm-lock.yaml
vsc-extension-quickstart.md
**/tsconfig.json
**/eslint.config.mjs
**/*.map
**/*.ts
**/.vscode-test.*

18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

/** @type {import('eslint').Linter.FlatConfig} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.ts"],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
},
},
];
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"categories": [
"Programming Languages"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
Expand All @@ -42,11 +44,21 @@
},
"scripts": {
"fmt": "prettier --write .",
"package": "vsce package"
"package": "vsce package",
"vscode:prepublish": "pnpm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src"
},
"devDependencies": {
"@eslint/js": "^9.5.0",
"@types/node": "^20.14.6",
"@types/vscode": "^1.90.0",
"@vscode/vsce": "^2.29.0",
"prettier": "^3.3.2"
"eslint": "9.x",
"prettier": "^3.3.2",
"typescript": "^5.5.2",
"typescript-eslint": "8.0.0-alpha.30"
},
"packageManager": "[email protected]+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
}
Loading

0 comments on commit 7bfb406

Please sign in to comment.