Skip to content

Commit

Permalink
add reflect-metadata for git locator-host, build git-locator-host for…
Browse files Browse the repository at this point in the history
… commonjs (#13487)
  • Loading branch information
fanyipin committed Mar 20, 2024
1 parent 82ada4b commit 44fbdb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ for (const [entryPointName, entryPointPath] of Object.entries({
${this.ifPackage('@theia/filesystem', "'nsfw-watcher': '@theia/filesystem/lib/node/nsfw-watcher',")}
${this.ifPackage('@theia/plugin-ext-vscode', "'plugin-vscode-init': '@theia/plugin-ext-vscode/lib/node/plugin-vscode-init',")}
${this.ifPackage('@theia/api-provider-sample', "'gotd-api-init': '@theia/api-provider-sample/lib/plugin/gotd-api-init',")}
${this.ifPackage('@theia/git', "'git-locator-host': '@theia/git/lib/node/git-locator/git-locator-host',")}
})) {
commonJsLibraries[entryPointName] = {
import: require.resolve(entryPointPath),
Expand Down Expand Up @@ -433,9 +434,7 @@ const config = {
${this.ifPackage('@theia/plugin-ext-headless', () => `// Theia Headless Plugin support:
'plugin-host-headless': require.resolve('@theia/plugin-ext-headless/lib/hosted/node/plugin-host-headless'),`)}
${this.ifPackage('@theia/process', () => `// Make sure the node-pty thread worker can be executed:
'worker/conoutSocketWorker': require.resolve('node-pty/lib/worker/conoutSocketWorker'),`)}
${this.ifPackage('@theia/git', () => `// Ensure the git locator process can the started
'git-locator-host': require.resolve('@theia/git/lib/node/git-locator/git-locator-host'),`)}
'worker/conoutSocketWorker': require.resolve('node-pty/lib/worker/conoutSocketWorker'),`)}
${this.ifElectron("'electron-main': require.resolve('./src-gen/backend/electron-main'),")}
${this.ifPackage('@theia/dev-container', () => `// VS Code Dev-Container communication:
'dev-container-server': require.resolve('@theia/dev-container/lib/dev-container-server/dev-container-server'),`)}
Expand Down
1 change: 1 addition & 0 deletions packages/git/src/node/git-locator/git-locator-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
// *****************************************************************************

import '@theia/core/shared/reflect-metadata';
import { RpcProxyFactory } from '@theia/core';
import { IPCEntryPoint } from '@theia/core/lib/node/messaging/ipc-protocol';
import { GitLocatorImpl } from './git-locator-impl';
Expand Down

0 comments on commit 44fbdb0

Please sign in to comment.