Skip to content

Commit

Permalink
Merge pull request #203 from BalticAmadeus/184-preparation-for-repo-p…
Browse files Browse the repository at this point in the history
…ublic-release

184 preparation for repo public release DO NOT MERGE
  • Loading branch information
PauliusKu authored Sep 16, 2024
2 parents ac5c46d + e05ce75 commit f27b91f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 74 deletions.
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.

0 comments on commit f27b91f

Please sign in to comment.