Mark some imports as type-only

feature/ssh-config
Kelvin Schoofs 4 years ago
parent 327ae2b2c8
commit 9e3041116c

@ -4,7 +4,7 @@ import { Client, ClientChannel, ConnectConfig, SFTPWrapper as SFTPWrapperReal }
import { SFTPStream } from 'ssh2-streams';
import * as vscode from 'vscode';
import { getConfigs } from './config';
import { FileSystemConfig } from './fileSystemConfig';
import type { FileSystemConfig } from './fileSystemConfig';
import { censorConfig, Logging } from './logging';
import { toPromise } from './toPromise';

@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import { loadConfigs } from './config';
import { FileSystemConfig } from './fileSystemConfig';
import type { FileSystemConfig } from './fileSystemConfig';
import { FileSystemRouter } from './fileSystemRouter';
import { Logging } from './logging';
import { Manager } from './manager';

@ -1,4 +1,4 @@
import { ConnectConfig } from 'ssh2';
import type { ConnectConfig } from 'ssh2';
export interface ProxyConfig {
type: 'socks4' | 'socks5' | 'http';

@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { FileSystemConfig } from './fileSystemConfig';
import type { FileSystemConfig } from './fileSystemConfig';
// Since the Extension Development Host runs with debugger, we can use this to detect if we're debugging
export const DEBUG: number | undefined = process.execArgv.find(a => a.includes('--inspect')) ? 3000 : undefined;

@ -2,7 +2,7 @@
import * as dns from 'dns';
import { request } from 'http';
import { SocksClient } from 'socks';
import { FileSystemConfig } from './fileSystemConfig';
import type { FileSystemConfig } from './fileSystemConfig';
import { Logging } from './logging';
import { toPromise } from './toPromise';

@ -1,7 +1,7 @@
import { Client, ClientChannel, PseudoTtyOptions } from "ssh2";
import { Readable } from "stream";
import type { Client, ClientChannel, PseudoTtyOptions } from "ssh2";
import type { Readable } from "stream";
import * as vscode from "vscode";
import { FileSystemConfig } from "./fileSystemConfig";
import type { FileSystemConfig } from "./fileSystemConfig";
import { toPromise } from "./toPromise";
const [HEIGHT, WIDTH] = [480, 640];

@ -1,7 +1,7 @@
import * as path from 'path';
import * as ssh2 from 'ssh2';
import * as ssh2s from 'ssh2-streams';
import type * as ssh2 from 'ssh2';
import type * as ssh2s from 'ssh2-streams';
import * as vscode from 'vscode';
import { FileSystemConfig } from './fileSystemConfig';
import { Logger, Logging, LOGGING_NO_STACKTRACE, LOGGING_SINGLE_LINE_STACKTRACE, withStacktraceOffset } from './logging';

@ -1,4 +1,4 @@
import { ConfigLocation, FileSystemConfig } from './fileSystemConfig';
import type { ConfigLocation, FileSystemConfig } from './fileSystemConfig';
/* Type of messages*/

Loading…
Cancel
Save