-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41b64ca
commit 6152786
Showing
14 changed files
with
163 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Release NPM | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare repository | ||
run: git fetch --unshallow --tags | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install Bun | ||
uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
|
||
- name: Install wasm-pack | ||
uses: jetli/wasm-pack-action@0d096b08b4e5a7de8c28de67e11e945404e9eefa | ||
with: | ||
version: 'latest' | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Build Language Server | ||
run: bun run build | ||
|
||
- name: Package Language Server | ||
run: bun run pack:server | ||
|
||
- name: Publish Language Server | ||
run: bun run publish:server | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_LSP_SERVER_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules/ | |
.DS_Store | ||
|
||
.env | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"crates/does-it-throw": "0.1.11", | ||
"crates/does-it-throw-wasm": "0.1.11", | ||
".": "0.2.5" | ||
".": "0.2.5", | ||
"server": "0.2.5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"name": "vscode-does-it-throw-client", | ||
"description": "VSCode part of a language server", | ||
"author": "Microsoft Corporation", | ||
"description": "VSCode Client for the Does It Throw extension", | ||
"author": { | ||
"name": "Michael Angelo", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"version": "0.1.6", | ||
"publisher": "vscode", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,18 @@ | |
"name": "Michael Angelo", | ||
"email": "[email protected]" | ||
}, | ||
"categories": ["Programming Languages", "Linters", "Debuggers"], | ||
"keywords": ["does it throw", "throw finder", "throw", "javascript", "typescript"], | ||
"categories": [ | ||
"Programming Languages", | ||
"Linters", | ||
"Debuggers" | ||
], | ||
"keywords": [ | ||
"does it throw", | ||
"throw finder", | ||
"throw", | ||
"javascript", | ||
"typescript" | ||
], | ||
"galleryBanner": { | ||
"color": "#050b1f", | ||
"theme": "dark" | ||
|
@@ -66,28 +76,48 @@ | |
"doesItThrow.throwStatementSeverity": { | ||
"scope": "resource", | ||
"type": "string", | ||
"enum": ["Error", "Warning", "Information", "Hint"], | ||
"enum": [ | ||
"Error", | ||
"Warning", | ||
"Information", | ||
"Hint" | ||
], | ||
"default": "Hint", | ||
"description": "Controls the severity level (underline) of a throw statement." | ||
}, | ||
"doesItThrow.functionThrowSeverity": { | ||
"scope": "resource", | ||
"type": "string", | ||
"enum": ["Error", "Warning", "Information", "Hint"], | ||
"enum": [ | ||
"Error", | ||
"Warning", | ||
"Information", | ||
"Hint" | ||
], | ||
"default": "Hint", | ||
"description": "Controls the severity level (underline) of a function/const that throws." | ||
}, | ||
"doesItThrow.callToThrowSeverity": { | ||
"scope": "resource", | ||
"type": "string", | ||
"enum": ["Error", "Warning", "Information", "Hint"], | ||
"enum": [ | ||
"Error", | ||
"Warning", | ||
"Information", | ||
"Hint" | ||
], | ||
"default": "Hint", | ||
"description": "Controls the severity level (underline) of a function/const that calls a function that throws in the same file." | ||
}, | ||
"doesItThrow.callToImportedThrowSeverity": { | ||
"scope": "resource", | ||
"type": "string", | ||
"enum": ["Error", "Warning", "Information", "Hint"], | ||
"enum": [ | ||
"Error", | ||
"Warning", | ||
"Information", | ||
"Hint" | ||
], | ||
"default": "Hint", | ||
"description": "Controls the severity level (underline) of a function/const that calls a function that throws in a different file." | ||
}, | ||
|
@@ -100,7 +130,11 @@ | |
"doesItThrow.trace.server": { | ||
"scope": "window", | ||
"type": "string", | ||
"enum": ["off", "messages", "verbose"], | ||
"enum": [ | ||
"off", | ||
"messages", | ||
"verbose" | ||
], | ||
"default": "off", | ||
"description": "Enable for debug mode. Traces the communication between VS Code and the language server." | ||
} | ||
|
@@ -119,8 +153,13 @@ | |
"build": "bun run build.ts", | ||
"vscode:release": "vsce publish", | ||
"vscode:package": "vsce package", | ||
"format": "biome format ." | ||
"format": "biome format .", | ||
"pack:server": "cp README.md server/README.md && cp LICENSE.txt server/LICENSE.txt && npm pack --workspace server", | ||
"publish:server": "npm publish --workspace server" | ||
}, | ||
"types": "index.d.ts", | ||
"workspaces": ["client", "server"] | ||
} | ||
"workspaces": [ | ||
"client", | ||
"server" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
out | ||
README.md | ||
LICENSE.txt | ||
assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require('path'); | ||
require(path.join(__dirname, '..', 'out', 'server.js')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
{ | ||
"name": "vscode-does-it-throw-server", | ||
"description": "Example implementation of a language server in node.", | ||
"version": "0.1.6", | ||
"author": "Microsoft Corporation", | ||
"name": "does-it-throw-lsp", | ||
"description": "Language Server for Does It Throw", | ||
"version": "0.2.5", | ||
"author": { | ||
"name": "Michael Angelo", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/michaelangeloio/does-it-throw/blob/main/LICENSE" | ||
} | ||
], | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Microsoft/vscode-extension-samples" | ||
}, | ||
"repository": "https://github.com/michaelangeloio/does-it-throw", | ||
"categories": ["Programming Languages", "Linters", "Debuggers"], | ||
"keywords": ["does it throw", "throw finder", "throw", "javascript", "typescript", "lsp", "language server"], | ||
"qna": "https://github.com/michaelangeloio/does-it-throw/discussions", | ||
"dependencies": { | ||
"vscode-languageserver": "^9.0.1", | ||
"vscode-languageserver-textdocument": "^1.0.8" | ||
}, | ||
"files": ["out", "package.json", "README.md", "LICENSE.txt", "bin"], | ||
"main": "out/server.js", | ||
"bin": { | ||
"does-it-throw-lsp": "./bin/does-it-throw" | ||
}, | ||
"scripts": {} | ||
} |