File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " coding-plugin" ,
3
3
"description" : " Coding plugin for VS Code." ,
4
- "version" : " 0 .0.1 " ,
4
+ "version" : " 1 .0.0 " ,
5
5
"publisher" : " alcheung" ,
6
6
"license" : " MIT" ,
7
7
"engines" : {
13
13
"activationEvents" : [
14
14
" onCommand:codingPlugin.show" ,
15
15
" onCommand:codingPlugin.login" ,
16
- " onWebviewPanel:codingPlugin" ,
17
16
" onView:treeViewSample"
18
17
],
19
18
"repository" : {
20
19
"type" : " git" ,
21
- "url" : " https://github.com/microsoft/vscode-extension-samples .git"
20
+ "url" : " https://github.com/cangzhang/coding-vscode .git"
22
21
},
23
22
"main" : " ./out/extension.js" ,
24
23
"contributes" : {
25
24
"commands" : [
26
25
{
27
26
"command" : " codingPlugin.show" ,
28
- "title" : " Start coding session " ,
27
+ "title" : " Show coding tree " ,
29
28
"category" : " Coding plugin"
30
29
},
31
30
{
41
40
{
42
41
"command" : " codingPlugin.refresh" ,
43
42
"title" : " Refresh" ,
43
+ "category" : " Coding plugin" ,
44
44
"icon" : {
45
45
"light" : " src/assets/refresh.light.svg" ,
46
46
"dark" : " src/assets/refresh.dark.svg"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as vscode from 'vscode';
3
3
// import Logger from './common/logger';
4
4
import { uriHandler , CodingServer } from './codingServer' ;
5
5
import { Panel } from './panel' ;
6
- import { ListProvider } from './tree' ;
6
+ import { ListItem , ListProvider } from './tree' ;
7
7
8
8
export async function activate ( context : vscode . ExtensionContext ) {
9
9
const repoInfo = await CodingServer . getRepoParams ( ) ;
@@ -15,12 +15,13 @@ export async function activate(context: vscode.ExtensionContext) {
15
15
}
16
16
17
17
const treeDataProvider = new ListProvider ( context , codingAuth , repoInfo ) ;
18
- vscode . window . registerTreeDataProvider ( `treeViewSample` , treeDataProvider ) ;
18
+ const tree = vscode . window . createTreeView ( `treeViewSample` , { treeDataProvider } ) ;
19
19
20
20
context . subscriptions . push ( vscode . window . registerUriHandler ( uriHandler ) ) ;
21
21
context . subscriptions . push (
22
22
vscode . commands . registerCommand ( 'codingPlugin.show' , ( ) => {
23
23
Panel . createOrShow ( context ) ;
24
+ tree . reveal ( { } as ListItem ) ;
24
25
} ) ,
25
26
) ;
26
27
context . subscriptions . push (
You can’t perform that action at this time.
0 commit comments