/
lmasikl
/
code-settings-sync
Обзор
Документация
Войти
/
lmasikl
/
code-settings-sync
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/extension.ts
48 строк
1 KB
Shan Khan
V3.4.2 (#1008)
22 авг 2019, 09:47
Не верифицирован
22 авг 2019, 09:47
7c15602
Код
Авторство
О чём код?
"use strict"; import * as vscode from "vscode"; import { Environment } from "./environmentPath"; import { state } from "./state"; import { Sync } from "./sync"; export async function activate(context: vscode.ExtensionContext) { state.context = context; state.environment = new Environment(); const sync = new Sync(); sync.bootstrap(); context.subscriptions.push( vscode.commands.registerCommand( "extension.updateSettings", (optArgument?: string) => { sync.upload.bind(sync, optArgument)(); } ) ); context.subscriptions.push( vscode.commands.registerCommand( "extension.downloadSettings", sync.download.bind(sync) ) ); context.subscriptions.push( vscode.commands.registerCommand( "extension.resetSettings", sync.reset.bind(sync) ) ); context.subscriptions.push( vscode.commands.registerCommand( "extension.HowSettings", sync.how.bind(sync) ) ); context.subscriptions.push( vscode.commands.registerCommand( "extension.otherOptions", sync.advance.bind(sync) ) ); }