From d0ed4e741b4fee18425b11ebaceeb848bf775465 Mon Sep 17 00:00:00 2001 From: Vatsal Uppal Date: Sun, 1 Oct 2023 01:20:26 +0530 Subject: [PATCH] Removed unnecessary changes --- packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts | 3 +-- .../plugin-ext/src/hosted/node/scanners/backend-init-theia.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts b/packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts index 8ef362310fb6f..244ecbd2e432f 100644 --- a/packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts +++ b/packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts @@ -19,7 +19,6 @@ import * as theia from '@theia/plugin'; import { BackendInitializationFn, PluginAPIFactory, Plugin, emptyPlugin } from '@theia/plugin-ext'; import { VSCODE_DEFAULT_API_VERSION } from '../common/plugin-vscode-types'; -import { realpathSync } from 'fs'; process.env['VSCODE_PID'] = process.env['THEIA_PARENT_PID']; @@ -31,7 +30,7 @@ let pluginApiFactory: PluginAPIFactory; export const doInitialization: BackendInitializationFn = (apiFactory: PluginAPIFactory, plugin: Plugin) => { pluginsApiImpl.set(plugin.model.id, createVSCodeAPI(apiFactory, plugin)); - plugins.push({ ...plugin, pluginFolder: realpathSync(plugin.pluginFolder) }); + plugins.push(plugin); pluginApiFactory = apiFactory; if (!isLoadOverride) { diff --git a/packages/plugin-ext/src/hosted/node/scanners/backend-init-theia.ts b/packages/plugin-ext/src/hosted/node/scanners/backend-init-theia.ts index c2250dcf9a5e7..84354f187372a 100644 --- a/packages/plugin-ext/src/hosted/node/scanners/backend-init-theia.ts +++ b/packages/plugin-ext/src/hosted/node/scanners/backend-init-theia.ts @@ -17,7 +17,6 @@ import * as theia from '@theia/plugin'; import { BackendInitializationFn } from '../../../common/plugin-protocol'; import { PluginAPIFactory, Plugin, emptyPlugin } from '../../../common/plugin-api-rpc'; -import { realpathSync } from 'fs'; const pluginsApiImpl = new Map(); const plugins = new Array(); @@ -30,7 +29,7 @@ export const doInitialization: BackendInitializationFn = (apiFactory: PluginAPIF const apiImpl = apiFactory(plugin); pluginsApiImpl.set(plugin.model.id, apiImpl); - plugins.push({ ...plugin, pluginFolder: realpathSync(plugin.pluginFolder) }); + plugins.push(plugin); pluginApiFactory = apiFactory; if (!isLoadOverride) {