Modify initial project

This commit is contained in:
orosmatthew 2023-05-04 22:32:46 -04:00
parent f976c750ae
commit 093ff3af56
4 changed files with 54 additions and 54 deletions

View File

@ -1 +1,2 @@
node_modules node_modules
out

View File

@ -0,0 +1,8 @@
{
"tabWidth": 2,
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"pluginSearchDirs": ["."]
}

View File

@ -1,7 +1,7 @@
{ {
"name": "bwcontest", "name": "bwcontest",
"displayName": "BWContest", "displayName": "BWContest",
"description": "The student extensions for BW HSPC", "description": "The student extension for BW's HSPC",
"version": "0.0.1", "version": "0.0.1",
"engines": { "engines": {
"vscode": "^1.78.0" "vscode": "^1.78.0"
@ -16,6 +16,10 @@
{ {
"command": "bwcontest.helloWorld", "command": "bwcontest.helloWorld",
"title": "Hello World" "title": "Hello World"
},
{
"command": "bwcontest.testThing",
"title": "Test Thing"
} }
] ]
}, },

View File

@ -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'; 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) { 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!'); 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', () => { 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!'); vscode.window.showInformationMessage('Hello World from BWContest!');
}); });
context.subscriptions.push(disposable); context.subscriptions.push(disposable);
} }
// This method is called when your extension is deactivated
export function deactivate() {} export function deactivate() {}