File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 13
13
"theme" : " dark"
14
14
},
15
15
"activationEvents" : [
16
- " onCommand:HackMD.createCodeSnippet"
16
+ " onCommand:HackMD.createCodeSnippet" ,
17
17
" onView:mdTreeItems" ,
18
18
" onCommand:HackMD.login" ,
19
19
" onCommand:HackMD.logout" ,
65
65
"markdown.previewStyles" : [
66
66
" ./dist/page.css"
67
67
],
68
- "commands" : [
69
- {
70
- "command" : " HackMD.createCodeSnippet" ,
71
- "title" : " HackMD: Create a code snippet"
72
68
"viewsContainers" : {
73
69
"activitybar" : [
74
70
{
87
83
]
88
84
},
89
85
"commands" : [
86
+ {
87
+ "command" : " HackMD.createCodeSnippet" ,
88
+ "title" : " HackMD: Create a code snippet"
89
+ },
90
90
{
91
91
"command" : " HackMD.login" ,
92
92
"title" : " Login" ,
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export async function registerTreeViewCommands(context: vscode.ExtensionContext)
55
55
const content = await API . exportString ( noteNode . noteId , ExportType . MD ) ;
56
56
if ( ! checkNoteExist ( content ) ) { return ; }
57
57
58
- console . log ( noteNode . label ) ;
59
58
const uri = vscode . Uri . parse ( `hackmd:${ noteNode . label } .md#${ noteNode . noteId } ` ) ;
60
59
const doc = await vscode . workspace . openTextDocument ( uri ) ;
61
60
await vscode . window . showTextDocument ( doc , { preview : false } ) ;
You can’t perform that action at this time.
0 commit comments