From 9059067f34bbc431832240a571366fe37350c3a6 Mon Sep 17 00:00:00 2001 From: mlhiter <3076438032@qq.com> Date: Fri, 8 Nov 2024 12:00:07 +0800 Subject: [PATCH] perf: some code adjust --- extensions/ide/vscode/devbox/src/api/index.ts | 5 +++-- extensions/ide/vscode/devbox/src/extension.ts | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/extensions/ide/vscode/devbox/src/api/index.ts b/extensions/ide/vscode/devbox/src/api/index.ts index 2234d3218cf..8d465693cf2 100644 --- a/extensions/ide/vscode/devbox/src/api/index.ts +++ b/extensions/ide/vscode/devbox/src/api/index.ts @@ -1,16 +1,17 @@ +import * as vscode from 'vscode' import axios, { InternalAxiosRequestConfig, AxiosHeaders, AxiosResponse, AxiosRequestConfig, } from 'axios' -import { GlobalStateManager } from '../utils/globalStateManager' + import { defaultProductionUrl, developmentUrl, isDevelopment, } from '../constant/api' -import * as vscode from 'vscode' +import { GlobalStateManager } from '../utils/globalStateManager' const showStatus = (status: number) => { let message = '' diff --git a/extensions/ide/vscode/devbox/src/extension.ts b/extensions/ide/vscode/devbox/src/extension.ts index 372fc160856..b8489c62923 100644 --- a/extensions/ide/vscode/devbox/src/extension.ts +++ b/extensions/ide/vscode/devbox/src/extension.ts @@ -1,14 +1,14 @@ import * as vscode from 'vscode' +import { updateBaseUrl } from './api' +import { UriHandler } from './utils/handleUri' +import { isDevelopment } from './constant/api' +import { ToolCommands } from './commands/tools' import { RemoteSSHConnector } from './commands/remoteConnector' import { DevboxListViewProvider } from './providers/DevboxListViewProvider' -import { UriHandler } from './utils/handleUri' import { NetworkViewProvider } from './providers/NetworkViewProvider' import { DBViewProvider } from './providers/DBViewProvider' import { GlobalStateManager } from './utils/globalStateManager' -import { ToolCommands } from './commands/tools' -import { updateBaseUrl } from './api' -import { isDevelopment } from './constant/api' export async function activate(context: vscode.ExtensionContext) { // tools