Skip to content

Commit 14c56aa

Browse files
committed
added version output to activation
1 parent 9996db2 commit 14c56aa

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

package.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vscode-gcode",
2+
"name": "vscode-gcode-syntax",
33
"displayName": "G-Code Syntax",
44
"description": "CNC G-Code Syntax Langauge",
55
"version": "0.0.1",
@@ -17,9 +17,9 @@
1717
"Snippets",
1818
"Other"
1919
],
20-
"icon": "images/icon.png",
20+
"icon": "images/logo.png",
2121
"galleryBanner": {
22-
"color": "#C80000",
22+
"color": "#666666",
2323
"theme": "dark"
2424
},
2525
"repository": {
@@ -78,6 +78,14 @@
7878
{
7979
"language": "gcode",
8080
"path": "./snippets/gcode-snippets.json"
81+
},
82+
{
83+
"language": "gcode",
84+
"path": "./snippets/mcode-snippets.json"
85+
},
86+
{
87+
"language": "gcode",
88+
"path": "./snippets/general-snippets.json"
8189
}
8290
],
8391
"configuration": {
@@ -92,12 +100,15 @@
92100
"vscode:prepublish": "npm run compile",
93101
"compile": "tsc -p ./",
94102
"watch": "tsc -watch -p ./",
95-
"postinstall": "node ./node_modules/vscode/bin/install"
103+
"postinstall": "node ./node_modules/vscode/bin/install",
104+
"test": "vscode-linter",
105+
"precommit": "npm run test"
96106
},
97107
"devDependencies": {
98108
"@types/node": "^10.12.18",
99109
"tslint": "^5.12.1",
100110
"typescript": "^3.2.2",
101-
"vscode": "^1.1.26"
111+
"vscode": "^1.1.26",
112+
"vscode-linter": "^0.2.1"
102113
}
103114
}

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import * as manifest from '../package.json';
12
import * as vscode from 'vscode';
23
//import * as util from './util';
34
//import { getColorization } from './colorization';
45

6+
const name = manifest.name;
7+
const version = manifest.version;
8+
59
export function activate(context: vscode.ExtensionContext) {
10+
11+
console.info(`[${name}] v${version} activated!`);
612
/*
713
// Get Configuration
814
let gcodeconf: vscode.WorkspaceConfiguration = util.getConfig();

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4+
"resolveJsonModule": true,
5+
"esModuleInterop": true,
46
"target": "es6",
57
"outDir": "out",
68
"lib": [
79
"es6"
810
],
911
"sourceMap": true,
10-
"rootDir": "src"
1112
},
1213
"exclude": [
1314
"node_modules",

0 commit comments

Comments
 (0)