From 093ff3af56e66899fa125cc5bac09c9ddc764955 Mon Sep 17 00:00:00 2001 From: orosmatthew Date: Thu, 4 May 2023 22:32:46 -0400 Subject: [PATCH] Modify initial project --- extension/bwcontest/.gitignore | 1 + extension/bwcontest/.prettierrc | 8 +++ extension/bwcontest/package.json | 86 +++++++++++++++------------- extension/bwcontest/src/extension.ts | 13 ----- 4 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 extension/bwcontest/.prettierrc diff --git a/extension/bwcontest/.gitignore b/extension/bwcontest/.gitignore index 3c3629e..07d2252 100644 --- a/extension/bwcontest/.gitignore +++ b/extension/bwcontest/.gitignore @@ -1 +1,2 @@ node_modules +out \ No newline at end of file diff --git a/extension/bwcontest/.prettierrc b/extension/bwcontest/.prettierrc new file mode 100644 index 0000000..c125846 --- /dev/null +++ b/extension/bwcontest/.prettierrc @@ -0,0 +1,8 @@ +{ + "tabWidth": 2, + "useTabs": true, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 100, + "pluginSearchDirs": ["."] +} diff --git a/extension/bwcontest/package.json b/extension/bwcontest/package.json index 91f7491..2014bdc 100644 --- a/extension/bwcontest/package.json +++ b/extension/bwcontest/package.json @@ -1,43 +1,47 @@ { - "name": "bwcontest", - "displayName": "BWContest", - "description": "The student extensions for BW HSPC", - "version": "0.0.1", - "engines": { - "vscode": "^1.78.0" - }, - "categories": [ - "Other" - ], - "activationEvents": [], - "main": "./out/extension.js", - "contributes": { - "commands": [ - { - "command": "bwcontest.helloWorld", - "title": "Hello World" - } - ] - }, - "scripts": { - "vscode:prepublish": "npm run compile", - "compile": "tsc -p ./", - "watch": "tsc -watch -p ./", - "pretest": "npm run compile && npm run lint", - "lint": "eslint src --ext ts", - "test": "node ./out/test/runTest.js" - }, - "devDependencies": { - "@types/vscode": "^1.78.0", - "@types/glob": "^8.1.0", - "@types/mocha": "^10.0.1", - "@types/node": "16.x", - "@typescript-eslint/eslint-plugin": "^5.59.1", - "@typescript-eslint/parser": "^5.59.1", - "eslint": "^8.39.0", - "glob": "^8.1.0", - "mocha": "^10.2.0", - "typescript": "^5.0.4", - "@vscode/test-electron": "^2.3.0" - } + "name": "bwcontest", + "displayName": "BWContest", + "description": "The student extension for BW's HSPC", + "version": "0.0.1", + "engines": { + "vscode": "^1.78.0" + }, + "categories": [ + "Other" + ], + "activationEvents": [], + "main": "./out/extension.js", + "contributes": { + "commands": [ + { + "command": "bwcontest.helloWorld", + "title": "Hello World" + }, + { + "command": "bwcontest.testThing", + "title": "Test Thing" + } + ] + }, + "scripts": { + "vscode:prepublish": "npm run compile", + "compile": "tsc -p ./", + "watch": "tsc -watch -p ./", + "pretest": "npm run compile && npm run lint", + "lint": "eslint src --ext ts", + "test": "node ./out/test/runTest.js" + }, + "devDependencies": { + "@types/vscode": "^1.78.0", + "@types/glob": "^8.1.0", + "@types/mocha": "^10.0.1", + "@types/node": "16.x", + "@typescript-eslint/eslint-plugin": "^5.59.1", + "@typescript-eslint/parser": "^5.59.1", + "eslint": "^8.39.0", + "glob": "^8.1.0", + "mocha": "^10.2.0", + "typescript": "^5.0.4", + "@vscode/test-electron": "^2.3.0" + } } diff --git a/extension/bwcontest/src/extension.ts b/extension/bwcontest/src/extension.ts index 0d53166..60d5fff 100644 --- a/extension/bwcontest/src/extension.ts +++ b/extension/bwcontest/src/extension.ts @@ -1,26 +1,13 @@ -// 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'; -// This method is called when your extension is activated -// Your extension is activated the very first time the command is executed export function activate(context: vscode.ExtensionContext) { - - // Use the console to output diagnostic information (console.log) and errors (console.error) - // This line of code will only be executed once when your extension is activated console.log('Congratulations, your extension "bwcontest" is now active!'); - // 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('bwcontest.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 BWContest!'); }); context.subscriptions.push(disposable); } -// This method is called when your extension is deactivated export function deactivate() {}