Skip to content

Commit a852378

Browse files
committed
Initial working version
1 parent 510b8b3 commit a852378

File tree

3 files changed

+8
-87
lines changed

3 files changed

+8
-87
lines changed

README.md

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1 @@
11
# command-server README
2-
3-
This is the README for your extension "command-server". After writing up a brief description, we recommend including the following sections.
4-
5-
## Features
6-
7-
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
8-
9-
For example if there is an image subfolder under your extension project workspace:
10-
11-
\!\[feature X\]\(images/feature-x.png\)
12-
13-
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
14-
15-
## Requirements
16-
17-
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
18-
19-
## Extension Settings
20-
21-
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22-
23-
For example:
24-
25-
This extension contributes the following settings:
26-
27-
* `myExtension.enable`: enable/disable this extension
28-
* `myExtension.thing`: set to `blah` to do something
29-
30-
## Known Issues
31-
32-
Calling out known issues can help limit users opening duplicate issues against your extension.
33-
34-
## Release Notes
35-
36-
Users appreciate release notes as you update your extension.
37-
38-
### 1.0.0
39-
40-
Initial release of ...
41-
42-
### 1.0.1
43-
44-
Fixed issue #.
45-
46-
### 1.1.0
47-
48-
Added features X, Y, and Z.
49-
50-
-----------------------------------------------------------------------------------------------------------
51-
52-
## Working with Markdown
53-
54-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55-
56-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
57-
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
58-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
59-
60-
### For more information
61-
62-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
64-
65-
**Enjoy!**

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"name": "command-server",
33
"displayName": "Command server",
44
"description": "Accept commands on an HTTP server",
5-
"version": "0.0.1",
5+
"publisher": "pokey",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/pokey/command-server"
10+
},
11+
"version": "0.1.0",
612
"engines": {
713
"vscode": "^1.53.0"
814
},
@@ -13,14 +19,7 @@
1319
"*"
1420
],
1521
"main": "./out/extension.js",
16-
"contributes": {
17-
"commands": [
18-
{
19-
"command": "command-server.helloWorld",
20-
"title": "Hello World"
21-
}
22-
]
23-
},
22+
"contributes": {},
2423
"scripts": {
2524
"vscode:prepublish": "yarn run compile",
2625
"compile": "tsc -p ./",

src/extension.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,6 @@ export function activate(context: vscode.ExtensionContext) {
6161
writeHost();
6262
}
6363
});
64-
// The command has been defined in the package.json file
65-
// Now provide the implementation of the command with registerCommand
66-
// The commandId parameter must match the command field in package.json
67-
let disposable = vscode.commands.registerCommand(
68-
"command-server.helloWorld",
69-
() => {
70-
// The code you place here will be executed every time your command is executed
71-
72-
// Display a message box to the user
73-
vscode.window.showInformationMessage("Hello World from Command server!");
74-
}
75-
);
76-
77-
context.subscriptions.push(disposable);
7864

7965
function writeHost() {
8066
writeFileSync("/tmp/vscode-host", `localhost:${port}`);

0 commit comments

Comments
 (0)