Skip to content

Commit f499fb9

Browse files
authored
Merge pull request #94 from satishbabariya/master
Add instructions for Theia Cloud IDE
2 parents 36e5673 + 26bb4b7 commit f499fb9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Editors/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,29 @@ autocmd FileType swift setlocal omnifunc=lsp#complete
102102

103103
With this added in `.vimrc`, you can use `<c-x><c-o>` in insert mode to trigger sourcekit-lsp completion.
104104

105+
## Theia Cloud IDE
106+
107+
You can use SourceKit-LSP with Theia by using the `theiaide/theia-swift` image. To use the image you need to have [Docker](https://docs.docker.com/get-started/) installed first.
108+
109+
The following command pulls the image and runs Theia IDE on http://localhost:3000 with the current directory as a workspace.
110+
111+
docker run -it -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia-swift:next
112+
113+
You can pass additional arguments to Theia after the image name, for example to enable debugging:
114+
115+
docker run -it -p 3000:3000 --expose 9229 -p 9229:9229 -v "$(pwd):/home/project:cached" theiaide/theia-swift:next --inspect=0.0.0.0:9229
116+
117+
Image Variants
118+
119+
`theiaide/theia-swift:latest`
120+
This image is based on the latest stable released version.
121+
122+
`theiaide/theia-swift:next`
123+
This image is based on the nightly published version.
124+
125+
theia-swift-docker source [theia-apps](https://github.com/theia-ide/theia-apps)
126+
127+
105128
## Other Editors
106129

107130
SourceKit-LSP should work with any editor that supports the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/)

0 commit comments

Comments
 (0)