17 lines
672 B
TypeScript
17 lines
672 B
TypeScript
// The module 'vscode' contains the VS Code extensibility API
|
|
// Import the module and reference it with the alias vscode in your code below
|
|
import * as vscode from 'vscode';
|
|
process.env.DOCKER_HOST = '/var/run/docker.sock'
|
|
import { OpenFaasProvider, DockerProvider } from './provider'
|
|
|
|
// this method is called when your extension is activated
|
|
// your extension is activated the very first time the command is executed
|
|
export function activate(context: vscode.ExtensionContext) {
|
|
console.log('init...')
|
|
new DockerProvider(context);
|
|
new OpenFaasProvider(context);
|
|
}
|
|
|
|
// this method is called when your extension is deactivated
|
|
export function deactivate() { }
|