Format and optimize imports

pull/285/head
Kelvin Schoofs 3 years ago
parent 7d930d3449
commit 1258a8e97d

@ -3,7 +3,7 @@ import * as path from 'path';
import type * as ssh2 from 'ssh2';
import type * as ssh2s from 'ssh2-streams';
import * as vscode from 'vscode';
import { FileSystemConfig } from './fileSystemConfig';
import type { FileSystemConfig } from './fileSystemConfig';
import { Logger, Logging, LOGGING_NO_STACKTRACE, LOGGING_SINGLE_LINE_STACKTRACE, withStacktraceOffset } from './logging';
// This makes it report a single line of the stacktrace of where the e.g. logger.info() call happened

@ -2,7 +2,7 @@
import * as vscode from 'vscode';
import { getConfigs } from './config';
import type { Connection, ConnectionManager } from './connection';
import { parseConnectionString, FileSystemConfig } from './fileSystemConfig';
import { FileSystemConfig, parseConnectionString } from './fileSystemConfig';
import type { Manager } from './manager';
import type { SSHPseudoTerminal } from './pseudoTerminal';
import type { SSHFileSystem } from './sshFileSystem';

@ -4,7 +4,7 @@ import { FieldDropdownWithInput } from '../FieldTypes/dropdownwithinput';
import { FieldNumber } from '../FieldTypes/number';
import { FieldString } from '../FieldTypes/string';
import { FileSystemConfig } from '../types/fileSystemConfig';
import { FieldFactory, FSCChanged, FSCChangedMultiple } from './fields';
import type { FieldFactory, FSCChanged, FSCChangedMultiple } from './fields';
export function proxy(config: FileSystemConfig, onChange: FSCChanged<'proxy'>): React.ReactElement {
const onChangeHost = (host: string) => onChange('proxy', { ...config.proxy!, host });

@ -3,7 +3,7 @@ import ConfigList from './ConfigList';
import { receivedData } from './data/actions';
import { connect, pickProperties } from './redux';
import { ConfigLocation, FileSystemConfig, formatConfigLocation, groupByGroup, groupByLocation } from './types/fileSystemConfig';
import { IStartScreenState } from './view';
import type { IStartScreenState } from './view';
import { openNewConfig, openStartScreen } from './view/actions';
import { API } from './vscode';

@ -10,8 +10,8 @@ export type ConfigLocation = number | string;
/** Might support conditional stuff later, although ssh2/OpenSSH might not support that natively */
export interface EnvironmentVariable {
key: string;
value: string;
key: string;
value: string;
}
export function formatConfigLocation(location?: ConfigLocation): string {

Loading…
Cancel
Save