File tree Expand file tree Collapse file tree 5 files changed +3
-17
lines changed
Expand file tree Collapse file tree 5 files changed +3
-17
lines changed Original file line number Diff line number Diff line change 1616 " onView:mdTreeItems" ,
1717 " onCommand:HackMD.login" ,
1818 " onCommand:HackMD.logout" ,
19- " onCommand:HackMD.createActiveEditorContentToHackMD" ,
20- " onCommand:HackMD.createCodeSnippet"
19+ " onCommand:HackMD.createActiveEditorContentToHackMD"
2120 ],
2221 "license" : " MIT" ,
2322 "homepage" : " https://github.com/hackmdio/vscode-hackmd/blob/master/README.md" ,
107106 {
108107 "command" : " HackMD.createActiveEditorContentToHackMD" ,
109108 "title" : " HackMD: Create Active Editor Content To HackMD"
110- },
111- {
112- "command" : " HackMD.createCodeSnippet" ,
113- "title" : " HackMD: Create a code snippet"
114109 }
115110 ],
116111 "menus" : {
Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ import * as vscode from 'vscode';
22import { registerUserCommands } from './user'
33import { registerTreeViewCommands } from './treeView'
44import { registerNoteCommands } from './note' ;
5- import { registerSnippetCommands } from './snippet'
65import { Store } from '../store' ;
76
87export function registerCommand ( context : vscode . ExtensionContext , store : Store ) {
98 registerUserCommands ( context , store ) ;
109 registerTreeViewCommands ( context , store ) ;
1110 registerNoteCommands ( context ) ;
12- registerSnippetCommands ( context ) ;
1311}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import * as vscode from 'vscode'
1+ import * as vscode from 'vscode' ;
22import { checkLogin , login , refreshHistoryList } from './../utils'
33import { Store } from '../store' ;
44import * as apiClient from '@hackmd/api' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as apiClient from '@hackmd/api';
55const API = new apiClient . default ( ) ;
66export const refreshHistoryList = async ( context ) => {
77 if ( await checkLogin ( ) ) {
8- store . history = ( await API . getHistory ( ) ) . history ;
8+ store . history = ( await API . getHistory ( ) ) . history . reverse ( ) ;
99 } else {
1010 store . history = [ { } ] ;
1111 }
You can’t perform that action at this time.
0 commit comments