Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
deadlock-theia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
deadlock-public
deadlock-theia
Commits
0a7f1b9b
Commit
0a7f1b9b
authored
4 years ago
by
Alex
Browse files
Options
Downloads
Patches
Plain Diff
fix: rm old theia dependency
parent
dbd873c8
No related branches found
No related tags found
No related merge requests found
Pipeline
#14174
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.js
+9
-1
9 additions, 1 deletion
server.js
with
9 additions
and
1 deletion
server.js
+
9
−
1
View file @
0a7f1b9b
/**
* 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
)
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment