|
|
|
@ -26,8 +26,9 @@ interface CommandHandler {
|
|
|
|
|
handleTerminal?(terminal: SSHPseudoTerminal): void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function activate(context: vscode.ExtensionContext) {
|
|
|
|
|
export async function activate(context: vscode.ExtensionContext) {
|
|
|
|
|
Logging.info`Extension activated, version ${getVersion()}, mode ${context.extensionMode}`;
|
|
|
|
|
Logging.debug`Running VS Code version ${vscode.version} ${process.versions}`;
|
|
|
|
|
|
|
|
|
|
setDebug(process.env.VSCODE_SSHFS_DEBUG?.toLowerCase() === 'true');
|
|
|
|
|
|
|
|
|
@ -46,6 +47,11 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
|
|
// I really don't like having to pass context to *everything*, so let's do it this way
|
|
|
|
|
setAsAbsolutePath(context.asAbsolutePath.bind(context));
|
|
|
|
|
|
|
|
|
|
// Start loading the configs (asynchronously)
|
|
|
|
|
try { await loadConfigs() } catch (e) {
|
|
|
|
|
Logging.error`Could not load configs: ${e}`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const manager = new Manager(context);
|
|
|
|
|
|
|
|
|
|
const subscribe = context.subscriptions.push.bind(context.subscriptions) as typeof context.subscriptions.push;
|
|
|
|
|