Modify initial project
This commit is contained in:
parent
f976c750ae
commit
093ff3af56
1
extension/bwcontest/.gitignore
vendored
1
extension/bwcontest/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
out
|
8
extension/bwcontest/.prettierrc
Normal file
8
extension/bwcontest/.prettierrc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"printWidth": 100,
|
||||||
|
"pluginSearchDirs": ["."]
|
||||||
|
}
|
@ -1,43 +1,47 @@
|
|||||||
{
|
{
|
||||||
"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"
|
||||||
},
|
},
|
||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
],
|
],
|
||||||
"activationEvents": [],
|
"activationEvents": [],
|
||||||
"main": "./out/extension.js",
|
"main": "./out/extension.js",
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"commands": [
|
"commands": [
|
||||||
{
|
{
|
||||||
"command": "bwcontest.helloWorld",
|
"command": "bwcontest.helloWorld",
|
||||||
"title": "Hello World"
|
"title": "Hello World"
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
},
|
"command": "bwcontest.testThing",
|
||||||
"scripts": {
|
"title": "Test Thing"
|
||||||
"vscode:prepublish": "npm run compile",
|
}
|
||||||
"compile": "tsc -p ./",
|
]
|
||||||
"watch": "tsc -watch -p ./",
|
},
|
||||||
"pretest": "npm run compile && npm run lint",
|
"scripts": {
|
||||||
"lint": "eslint src --ext ts",
|
"vscode:prepublish": "npm run compile",
|
||||||
"test": "node ./out/test/runTest.js"
|
"compile": "tsc -p ./",
|
||||||
},
|
"watch": "tsc -watch -p ./",
|
||||||
"devDependencies": {
|
"pretest": "npm run compile && npm run lint",
|
||||||
"@types/vscode": "^1.78.0",
|
"lint": "eslint src --ext ts",
|
||||||
"@types/glob": "^8.1.0",
|
"test": "node ./out/test/runTest.js"
|
||||||
"@types/mocha": "^10.0.1",
|
},
|
||||||
"@types/node": "16.x",
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
"@types/vscode": "^1.78.0",
|
||||||
"@typescript-eslint/parser": "^5.59.1",
|
"@types/glob": "^8.1.0",
|
||||||
"eslint": "^8.39.0",
|
"@types/mocha": "^10.0.1",
|
||||||
"glob": "^8.1.0",
|
"@types/node": "16.x",
|
||||||
"mocha": "^10.2.0",
|
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
||||||
"typescript": "^5.0.4",
|
"@typescript-eslint/parser": "^5.59.1",
|
||||||
"@vscode/test-electron": "^2.3.0"
|
"eslint": "^8.39.0",
|
||||||
}
|
"glob": "^8.1.0",
|
||||||
|
"mocha": "^10.2.0",
|
||||||
|
"typescript": "^5.0.4",
|
||||||
|
"@vscode/test-electron": "^2.3.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user