Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb402b71

Browse files
committed
resolve setup
1 parent9535d38 commitb402b71

File tree

6 files changed

+53
-15
lines changed

6 files changed

+53
-15
lines changed

‎package.json

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,55 @@
99
"categories": [
1010
"Other"
1111
],
12+
"publisher":"Shawn McKay <shawn.j.mckay@gmail.com>",
1213
"activationEvents": [
13-
"onCommand:extension.helloWorld"
14+
"onCommand:coderoad.tutorial_load"
1415
],
1516
"main":"./out/extension.js",
1617
"contributes": {
1718
"commands": [
1819
{
19-
"command":"extension.helloWorld",
20-
"title":"Hello World"
20+
"command":"coderoad.tutorial_setup",
21+
"title":"Tutorial Setup",
22+
"category":"CodeRoad"
23+
},
24+
{
25+
"command":"coderoad.tutorial_load",
26+
"title":"Load Tutorial",
27+
"category":"CodeRoad"
28+
},
29+
{
30+
"command":"coderoad.test_run",
31+
"title":"Run Test",
32+
"category":"CodeRoad"
33+
},
34+
{
35+
"command":"coderoad.solution_load",
36+
"title":"Load Solution",
37+
"category":"CodeRoad"
2138
}
22-
]
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+
}
2361
},
2462
"scripts": {
2563
"vscode:prepublish":"npm run compile",

‎src/commands/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import loadSolution from './loadSolution'
66
// import quit from './quit'
77

88
constCOMMANDS={
9-
RUN_TEST:'coderoad.test_run',
10-
TUTORIAL_LOAD:'coderoad.tutorial_load',
119
TUTORIAL_SETUP:'coderoad.tutorial_setup',
10+
TUTORIAL_LOAD:'coderoad.tutorial_load',
11+
RUN_TEST:'coderoad.test_run',
1212
LOAD_SOLUTION:'coderoad.solution_load',
1313
// QUIT: 'coderoad.quit',
1414
}

‎src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import createViews from './views'
88
// this method is called when your extension is activated
99
// your extension is activated the very first time the command is executed
1010
exportfunctionactivate(context:vscode.ExtensionContext){
11+
console.log('ACTIVATE!')
1112

1213
// commands
1314
createCommands(context)

‎src/test/extension.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
//
55

66
// The module 'assert' provides assertion methods from node
7-
import*asassertfrom'assert';
7+
import*asassertfrom'assert'
88

99
// You can import and use all API from the 'vscode' module
1010
// as well as import your extension to test it
11-
// import * as vscode from 'vscode';
12-
// import * as myExtension from '../extension';
11+
// import * as vscode from 'vscode'
12+
// import * as myExtension from '../extension'
1313

1414
// Defines a Mocha test suite to group tests of similar kind together
1515
suite("Extension Tests",function(){
1616

1717
// Defines a Mocha unit test
1818
test("Something 1",function(){
19-
assert.equal(-1,[1,2,3].indexOf(5));
20-
assert.equal(-1,[1,2,3].indexOf(0));
21-
});
22-
});
19+
assert.equal(-1,[1,2,3].indexOf(5))
20+
assert.equal(-1,[1,2,3].indexOf(0))
21+
})
22+
})

‎src/utils/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asCRfrom'typings'
22

33
// temporary tutorials
4-
importbasicTutorialfrom'tutorials/basic'
4+
importbasicTutorialfrom'../tutorials/basic'
55

66
interfaceOptions{
77
resource:string

‎tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"emitDecoratorMetadata":true,
2323
"paths": {
2424
"typings": ["./typings/index.d.ts"],
25-
"tutorials": ["./tutorials"]
2625
},
2726
},
2827
"exclude": [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp