Skip to content

Commit

Permalink
Removed unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsal-uppal-1997 committed Sep 30, 2023
1 parent 18924e2 commit d0ed4e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, typeof theia>();
const plugins = new Array<Plugin>();
Expand All @@ -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) {
Expand Down

0 comments on commit d0ed4e7

Please sign in to comment.