Update all references to hellocode

This commit is contained in:
Pine Wu
2018-12-12 15:51:03 -08:00
parent c6b400f559
commit bf56683752
18 changed files with 34 additions and 33 deletions

View File

@ -1,5 +1,5 @@
# Base Sample
This sample is similar to the [hellocode-sample](https://github.com/Microsoft/vscode-extension-samples/tree/ext-docs/hellocode-sample), but it follows the [Sample Guideline](https://github.com/Microsoft/vscode-extension-samples/blob/ext-docs/.github/SAMPLE_GUIDELINE.md).
This sample is similar to the [helloworld-sample](../helloworld-sample), but it follows the [Sample Guideline](https://github.com/Microsoft/vscode-extension-samples/blob/ext-docs/.github/SAMPLE_GUIDELINE.md).
You can easily write a new sample following the guideline by `cp -r .base-sample my-sample`.

View File

@ -5,19 +5,19 @@
"version": "0.0.1",
"publisher": "vscode-samples",
"engines": {
"vscode": "^1.28.0"
"vscode": "^1.25.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.sayHello"
"onCommand:extension.helloWorld"
],
"main": "./out/extension",
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.sayHello",
"command": "extension.helloWorld",
"title": "Hello World"
}
]
@ -26,7 +26,7 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/node": "^8.10.25",

View File

@ -7,12 +7,12 @@ import * as vscode from 'vscode';
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 "hellocode-sample" is now active!');
console.log('Congratulations, your extension "helloworld-sample" is now active!');
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// 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('extension.sayHello', () => {
let disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
// The code you place here will be executed every time your command is executed
// Display a message box to the user

View File

@ -30,8 +30,8 @@ The quickest way is to start your project by copying [.base-sample](https://gith
Only deviate from the standard setting if your sample needs to.
- 5.1: Include a `tslint.json` following https://github.com/Microsoft/vscode-extension-samples/blob/ext-docs/hellocode-sample/tslint.json.
- 5.2: Include a `tsconfig.json` following https://github.com/Microsoft/vscode-extension-samples/blob/ext-docs/hellocode-sample/tsconfig.json.
- 5.1: Include a `tslint.json` following https://github.com/Microsoft/vscode-extension-samples/blob/ext-docs/helloworld-sample/tslint.json.
- 5.2: Include a `tsconfig.json` following https://github.com/Microsoft/vscode-extension-samples/blob/ext-docs/helloworld-sample/tsconfig.json.
- 5.3: Your source code should be formatted either using [tsfmt](https://github.com/vvakame/typescript-formatter) or the editor's TS formatter and contain no TSLint/TS errors.
## 6: Tests

View File

@ -20,8 +20,8 @@ You can expect from each sample:
## Getting Started
- [Hello Code Sample](hellocode-sample): The Hello World sample for VS Code.
- [Hello Code Minimal Sample](hellocode-minimal-sample): A minimal version of Hello Code Sample that doesn't use TypeScript.
- [Hello World Sample](helloworld-sample): The Hello World sample for VS Code.
- [Hello World Minimal Sample](helloworld-minimal-sample): A minimal version of Hello World Sample that doesn't use TypeScript.
## Samples

View File

@ -1,6 +1,6 @@
# Hello Code Minimal Sample
# Hello World Minimal Sample
This is a minimal version of the [Hello Code Sample](../hellocode-sample).
This is a minimal version of the [Hello World Sample](../helloworld-sample).
It does not use TypeScript and only includes the `vscode` devDependency needed for extension development.

View File

@ -11,12 +11,12 @@ const vscode = require('vscode');
function activate(context) {
// 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 "hellocode-minimal-sample" is now active!');
console.log('Congratulations, your extension "helloworld-minimal-sample" 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('extension.sayHello', () => {
let disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
// The code you place here will be executed every time your command is executed
// Display a message box to the user

View File

@ -1,19 +1,20 @@
{
"name": "hellocode-minimal-sample",
"name": "helloworld-minimal-sample",
"description": "Minimal HelloWorld example for VS Code",
"version": "0.0.1",
"publisher": "vscode-samples",
"repository": "https://github.com/Microsoft/vscode-extension-samples/helloworld-minimal-sample",
"engines": {
"vscode": "^1.28.0"
"vscode": "^1.25.0"
},
"activationEvents": [
"onCommand:extension.sayHello"
"onCommand:extension.helloWorld"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "extension.sayHello",
"command": "extension.helloWorld",
"title": "Hello World"
}
]
@ -22,6 +23,6 @@
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"vscode": "^1.1.17"
"vscode": "^1.1.22"
}
}

View File

@ -1,4 +1,4 @@
# Hello Code Sample
# Hello World Sample
This is a Hello World example that shows you how to use VS Code API.

View File

Before

Width:  |  Height:  |  Size: 846 KiB

After

Width:  |  Height:  |  Size: 846 KiB

View File

@ -1,5 +1,5 @@
{
"name": "hellocode-sample",
"name": "helloworld-sample",
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,10 +1,10 @@
{
"name": "hellocode-sample",
"displayName": "hellocode-sample",
"name": "helloworld-sample",
"displayName": "helloworld-sample",
"description": "HelloWorld example for VS Code",
"version": "0.0.1",
"publisher": "vscode-samples",
"repository": "https://github.com/Microsoft/vscode-extension-samples/hellocode-sample",
"repository": "https://github.com/Microsoft/vscode-extension-samples/helloworld-sample",
"engines": {
"vscode": "^1.25.0"
},
@ -12,14 +12,14 @@
"Other"
],
"activationEvents": [
"onCommand:extension.helloCode"
"onCommand:extension.helloWorld"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.helloCode",
"title": "Hello Code"
"command": "extension.helloWorld",
"title": "Hello World"
}
]
},

View File

@ -7,16 +7,16 @@ import * as vscode from 'vscode';
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 "hellocode-sample" is now active!');
console.log('Congratulations, your extension "helloworld-sample" 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('extension.helloCode', () => {
let disposable = vscode.commands.registerCommand('extension.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 Code!');
vscode.window.showInformationMessage('Hello World!');
});
context.subscriptions.push(disposable);