We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9535d38 commitb402b71Copy full SHA for b402b71
package.json
@@ -9,17 +9,55 @@
9
"categories": [
10
"Other"
11
],
12
+"publisher":"Shawn McKay <shawn.j.mckay@gmail.com>",
13
"activationEvents": [
-"onCommand:extension.helloWorld"
14
+"onCommand:coderoad.tutorial_load"
15
16
"main":"./out/extension.js",
17
"contributes": {
18
"commands": [
19
{
-"command":"extension.helloWorld",
20
-"title":"Hello World"
+"command":"coderoad.tutorial_setup",
21
+"title":"Tutorial Setup",
22
+"category":"CodeRoad"
23
+},
24
+{
25
+"command":"coderoad.tutorial_load",
26
+"title":"Load Tutorial",
27
28
29
30
+"command":"coderoad.test_run",
31
+"title":"Run Test",
32
33
34
35
+"command":"coderoad.solution_load",
36
+"title":"Load Solution",
37
38
}
-]
39
+],
40
+"viewsContainers": {
41
+"activitybar": [
42
43
+"id":"coderoad-tutorial",
44
+"title":"CodeRoad Tutorial",
45
+"icon":"resources/icons/icon.svg"
46
+}
47
+]
48
49
+"views": {
50
+"coderoad-tutorial": [
51
52
+"id":"tutorial-summary",
53
+"name":"Summary"
54
55
56
+"id":"tutorial-steps",
57
+"name":"Instructions"
58
59
60
61
},
62
"scripts": {
63
"vscode:prepublish":"npm run compile",
src/commands/index.ts
@@ -6,9 +6,9 @@ import loadSolution from './loadSolution'
6
// import quit from './quit'
7
8
constCOMMANDS={
-RUN_TEST:'coderoad.test_run',
-TUTORIAL_LOAD:'coderoad.tutorial_load',
TUTORIAL_SETUP:'coderoad.tutorial_setup',
+TUTORIAL_LOAD:'coderoad.tutorial_load',
+RUN_TEST:'coderoad.test_run',
LOAD_SOLUTION:'coderoad.solution_load',
// QUIT: 'coderoad.quit',
src/extension.ts
@@ -8,6 +8,7 @@ import createViews from './views'
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
exportfunctionactivate(context:vscode.ExtensionContext){
+console.log('ACTIVATE!')
// commands
createCommands(context)
src/test/extension.test.ts
@@ -4,19 +4,19 @@
4
//
5
// The module 'assert' provides assertion methods from node
-import*asassertfrom'assert';
+import*asassertfrom'assert'
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
-// import * as vscode from 'vscode';
-// import * as myExtension from '../extension';
+// import * as vscode from 'vscode'
+// import * as myExtension from '../extension'
// Defines a Mocha test suite to group tests of similar kind together
suite("Extension Tests",function(){
// Defines a Mocha unit test
test("Something 1",function(){
-assert.equal(-1,[1,2,3].indexOf(5));
-assert.equal(-1,[1,2,3].indexOf(0));
-});
+assert.equal(-1,[1,2,3].indexOf(5))
+assert.equal(-1,[1,2,3].indexOf(0))
+})
src/utils/fetch.ts
@@ -1,7 +1,7 @@
1
import*asCRfrom'typings'
2
3
// temporary tutorials
-importbasicTutorialfrom'tutorials/basic'
+importbasicTutorialfrom'../tutorials/basic'
interfaceOptions{
resource:string
tsconfig.json
@@ -22,7 +22,6 @@
"emitDecoratorMetadata":true,
"paths": {
"typings": ["./typings/index.d.ts"],
-"tutorials": ["./tutorials"]
"exclude": [