You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
423 B
19 lines
423 B
import { |
|
commands, |
|
ExtensionContext |
|
} from 'vscode'; |
|
import * as api from './commands'; |
|
|
|
function register(context: ExtensionContext, handler: any) { |
|
|
|
const command = `fileutils.${handler.name}`; |
|
const disposable = commands.registerCommand(command, handler); |
|
|
|
context.subscriptions.push(disposable); |
|
} |
|
|
|
export function activate(context: ExtensionContext) { |
|
|
|
register(context, api.newJekyllFile); |
|
|
|
}
|
|
|