dist: ensure node_modules are included with extension until it's bundled properly

This commit is contained in:
Tyler Wilding 2022-08-02 13:56:52 -04:00
parent a4683d2e82
commit 7af5081dfc
No known key found for this signature in database
GPG key ID: A89403EB356ED106
3 changed files with 45 additions and 38 deletions

View file

@ -41,4 +41,4 @@ jobs:
- name: Create Release - name: Create Release
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }} GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
run: gh release create --generate-notes --repo open-goal/opengoal-vscode run: gh release create --generate-notes --repo open-goal/opengoal-vscode ./*.vsix

View file

@ -15,3 +15,4 @@
!README.md !README.md
!LICENSE !LICENSE
!src/vendor/**/LICENSE !src/vendor/**/LICENSE
!node_modules/**

View file

@ -11,7 +11,10 @@ import { initContext } from "./context";
import { IRFoldingRangeProvider } from "./languages/ir2-folder"; import { IRFoldingRangeProvider } from "./languages/ir2-folder";
import { activateTypeCastTools } from "./decomp/type-caster"; import { activateTypeCastTools } from "./decomp/type-caster";
const channel = vscode.window.createOutputChannel("OpenGOAL");
export async function activate(context: vscode.ExtensionContext) { export async function activate(context: vscode.ExtensionContext) {
try {
// Init Context // Init Context
initContext(context); initContext(context);
@ -57,6 +60,9 @@ export async function activate(context: vscode.ExtensionContext) {
// Start the LSP // Start the LSP
lsp.activate(context); lsp.activate(context);
} catch (err) {
channel.append(`Failed to activate extension - ${err}`);
}
} }
export function deactivate(): Promise<void> | undefined { export function deactivate(): Promise<void> | undefined {