Skip to content
Snippets Groups Projects
Commit 0a7f1b9b authored by Alex's avatar Alex
Browse files

fix: rm old theia dependency

parent dbd873c8
No related branches found
No related tags found
No related merge requests found
Pipeline #14174 passed
/**
* This file allow CORS for *.deadlock.io
* from the CORS middleware
* To generate the file you have to run Theia Docker-Java version from https://hub.docker.com/r/theiaide/theia-java
* then you will find this file under https://hub.docker.com/r/theiaide/theia-java in the container
*/
// @ts-check // @ts-check
require('reflect-metadata'); require('reflect-metadata');
...@@ -50,6 +58,7 @@ function start(port, host, argv) { ...@@ -50,6 +58,7 @@ function start(port, host, argv) {
}); });
} }
module.exports = (port, host, argv) => Promise.resolve() module.exports = (port, host, argv) => Promise.resolve()
.then(function () { return Promise.resolve(require('@theia/process/lib/common/process-common-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/process/lib/common/process-common-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/process/lib/node/process-backend-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/process/lib/node/process-backend-module')).then(load) })
...@@ -60,7 +69,6 @@ module.exports = (port, host, argv) => Promise.resolve() ...@@ -60,7 +69,6 @@ module.exports = (port, host, argv) => Promise.resolve()
.then(function () { return Promise.resolve(require('@theia/file-search/lib/node/file-search-backend-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/file-search/lib/node/file-search-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/git/lib/node/git-backend-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/git/lib/node/git-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/git/lib/node/env/git-env-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/git/lib/node/env/git-env-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/json/lib/node/json-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/terminal/lib/node/terminal-backend-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/terminal/lib/node/terminal-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/task/lib/node/task-backend-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/task/lib/node/task-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/debug/lib/node/debug-backend-module')).then(load) }) .then(function () { return Promise.resolve(require('@theia/debug/lib/node/debug-backend-module')).then(load) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment