mirror of
https://github.com/open-goal/opengoal-vscode.git
synced 2024-10-19 20:47:37 -04:00
dist: ensure node_modules are included with extension until it's bundled properly
This commit is contained in:
parent
a4683d2e82
commit
7af5081dfc
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -41,4 +41,4 @@ jobs:
|
|||
- name: Create Release
|
||||
env:
|
||||
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
|
||||
|
|
|
@ -15,3 +15,4 @@
|
|||
!README.md
|
||||
!LICENSE
|
||||
!src/vendor/**/LICENSE
|
||||
!node_modules/**
|
||||
|
|
|
@ -11,52 +11,58 @@ import { initContext } from "./context";
|
|||
import { IRFoldingRangeProvider } from "./languages/ir2-folder";
|
||||
import { activateTypeCastTools } from "./decomp/type-caster";
|
||||
|
||||
const channel = vscode.window.createOutputChannel("OpenGOAL");
|
||||
|
||||
export async function activate(context: vscode.ExtensionContext) {
|
||||
// Init Context
|
||||
initContext(context);
|
||||
try {
|
||||
// Init Context
|
||||
initContext(context);
|
||||
|
||||
// Init settings that we unfortunately have to manually maintain
|
||||
await setVSIconAssociations();
|
||||
await setTextmateColors();
|
||||
|
||||
vscode.workspace.onDidChangeConfiguration(async (event) => {
|
||||
// Init settings that we unfortunately have to manually maintain
|
||||
await setVSIconAssociations();
|
||||
await setTextmateColors();
|
||||
});
|
||||
|
||||
context.subscriptions.push(
|
||||
vscode.commands.registerCommand("opengoal.switchFile", switchFile)
|
||||
);
|
||||
vscode.workspace.onDidChangeConfiguration(async (event) => {
|
||||
await setTextmateColors();
|
||||
});
|
||||
|
||||
activateDecompTools();
|
||||
activateTypeCastTools();
|
||||
context.subscriptions.push(
|
||||
vscode.commands.registerCommand("opengoal.switchFile", switchFile)
|
||||
);
|
||||
|
||||
// Customized PDF Viewer
|
||||
const provider = new PdfCustomProvider(
|
||||
vscode.Uri.file(context.extensionPath)
|
||||
);
|
||||
context.subscriptions.push(
|
||||
vscode.window.registerCustomEditorProvider(
|
||||
PdfCustomProvider.viewType,
|
||||
provider,
|
||||
{
|
||||
webviewOptions: {
|
||||
enableFindWidget: false, // default
|
||||
retainContextWhenHidden: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
activateDecompTools();
|
||||
activateTypeCastTools();
|
||||
|
||||
// TODO - disposable stuff?
|
||||
// Customized PDF Viewer
|
||||
const provider = new PdfCustomProvider(
|
||||
vscode.Uri.file(context.extensionPath)
|
||||
);
|
||||
context.subscriptions.push(
|
||||
vscode.window.registerCustomEditorProvider(
|
||||
PdfCustomProvider.viewType,
|
||||
provider,
|
||||
{
|
||||
webviewOptions: {
|
||||
enableFindWidget: false, // default
|
||||
retainContextWhenHidden: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
// Language Customizations
|
||||
vscode.languages.registerFoldingRangeProvider(
|
||||
{ scheme: "file", language: "opengoal-ir" },
|
||||
new IRFoldingRangeProvider()
|
||||
);
|
||||
// TODO - disposable stuff?
|
||||
|
||||
// Start the LSP
|
||||
lsp.activate(context);
|
||||
// Language Customizations
|
||||
vscode.languages.registerFoldingRangeProvider(
|
||||
{ scheme: "file", language: "opengoal-ir" },
|
||||
new IRFoldingRangeProvider()
|
||||
);
|
||||
|
||||
// Start the LSP
|
||||
lsp.activate(context);
|
||||
} catch (err) {
|
||||
channel.append(`Failed to activate extension - ${err}`);
|
||||
}
|
||||
}
|
||||
|
||||
export function deactivate(): Promise<void> | undefined {
|
||||
|
|
Loading…
Reference in a new issue