diff --git a/src/connect.ts b/src/connect.ts index d365a61..6839a0e 100644 --- a/src/connect.ts +++ b/src/connect.ts @@ -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'; diff --git a/src/extension.ts b/src/extension.ts index 76e5bc6..4620d6d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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'; diff --git a/src/fileSystemConfig.ts b/src/fileSystemConfig.ts index a06fd09..549f698 100644 --- a/src/fileSystemConfig.ts +++ b/src/fileSystemConfig.ts @@ -1,4 +1,4 @@ -import { ConnectConfig } from 'ssh2'; +import type { ConnectConfig } from 'ssh2'; export interface ProxyConfig { type: 'socks4' | 'socks5' | 'http'; diff --git a/src/logging.ts b/src/logging.ts index 0f95eef..1c6d15f 100644 --- a/src/logging.ts +++ b/src/logging.ts @@ -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; diff --git a/src/proxy.ts b/src/proxy.ts index c3428f9..d66bdb7 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -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'; diff --git a/src/pseudoTerminal.ts b/src/pseudoTerminal.ts index 52fd99c..d7dbf70 100644 --- a/src/pseudoTerminal.ts +++ b/src/pseudoTerminal.ts @@ -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]; diff --git a/src/sshFileSystem.ts b/src/sshFileSystem.ts index d996428..da76dcb 100644 --- a/src/sshFileSystem.ts +++ b/src/sshFileSystem.ts @@ -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'; diff --git a/src/webviewMessages.ts b/src/webviewMessages.ts index 3cf4848..e402cd5 100644 --- a/src/webviewMessages.ts +++ b/src/webviewMessages.ts @@ -1,4 +1,4 @@ -import { ConfigLocation, FileSystemConfig } from './fileSystemConfig'; +import type { ConfigLocation, FileSystemConfig } from './fileSystemConfig'; /* Type of messages*/