Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

184 preparation for repo public release DO NOT MERGE #203

Merged
merged 5 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ vsc-extension-quickstart.md
node_modules/**
resources/functionalTests/**
resources/samples/**
resources/treeSitterErrorTests/**
18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "AblFormatter",
"displayName": "AblFormatter",
"description": "TODO",
"name": "abl-formatter",
"displayName": "Abl Formatter",
"description": "Progress OpenEdge (ABL) code formatter",
"version": "0.0.1",
"icon": "resources/Formatter_LOGO.png",
"repository": {},
"repository": {
"url": "https://github.com/BalticAmadeus/AblFormatter"
},
"engines": {
"vscode": "^1.84.0"
},
Expand Down Expand Up @@ -226,13 +228,7 @@
"description": "Enable table view with tree info on hover"
}
}
},
"commands": [
{
"command": "AblFormatter.helloWorld",
"title": "Hello World"
}
]
}
},
"scripts": {
"copy-wasm": "copyfiles -u 2 ./node_modules/web-tree-sitter/*.wasm out",
Expand Down
24 changes: 3 additions & 21 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from "vscode";
import Parser from "web-tree-sitter";
import { AblFormatterProvider } from "./providers/AblFormatterProvider";
Expand All @@ -10,8 +8,6 @@ import { ConfigurationManager2 } from "./utils/ConfigurationManager";
import { enableFormatterDecorators } from "./v2/formatterFramework/enableFormatterDecorators";
import { DebugManager } from "./providers/DebugManager";

// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
export async function activate(context: vscode.ExtensionContext) {
const debugManager = DebugManager.getInstance(context);

Expand All @@ -38,23 +34,9 @@ export async function activate(context: vscode.ExtensionContext) {

const hoverProvider = new AblDebugHoverProvider(parserHelper);
vscode.languages.registerHoverProvider(Constants.ablId, hoverProvider);

// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand(
"AblFormatter.helloWorld",
() => {
// The code you place here will be executed every time your command is executed
// Display a message box to the user
vscode.window.showInformationMessage(
"Hello World from AblFormatter!"
);
}
);

context.subscriptions.push(disposable);
}

// This method is called when your extension is deactivated
export function deactivate() {}
export function deactivate() {
//do nothing
}
42 changes: 0 additions & 42 deletions vsc-extension-quickstart.md

This file was deleted.