Skip to content

Install gitpod.gitpod-theme as builtin extension #10079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WORKSPACE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaultArgs:
jbMarketplacePublishTrigger: "false"
publishToJBMarketplace: true
localAppVersion: unknown
codeCommit: 64ebb59829c0d3998ebf6b69308aafd49362d29c
codeCommit: 9d98f338d0c8584b66195fceb555bb7223c755bc
codeQuality: stable
jetbrainsBackendQualifier: stable
intellijDownloadUrl: "https://download.jetbrains.com/idea/ideaIU-2022.1.1.tar.gz"
Expand Down
5 changes: 4 additions & 1 deletion components/ide/code/codehelper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func main() {
log.WithField("cost", time.Now().Local().Sub(startTime).Milliseconds()).Info("content available")

// code server args install extension with id
args := []string{"--start-server"}
args := []string{}

// install extension with filepath
extPathArgs := []string{}
Expand All @@ -60,6 +60,8 @@ func main() {
args = append(args, "--inspect", "--log=trace")
}

args = append(args, "--install-builtin-extension", "gitpod.gitpod-theme")

wsContextUrl := wsInfo.GetWorkspaceContextUrl()
if ctxUrl, err := url.Parse(wsContextUrl); err == nil {
if ctxUrl.Host == "github.com" {
Expand Down Expand Up @@ -107,6 +109,7 @@ func main() {
// install extensions and run code server with exec
args = append(args, os.Args[1:]...)
args = append(args, "--do-not-sync")
args = append(args, "--start-server")
log.WithField("cost", time.Now().Local().Sub(startTime).Milliseconds()).Info("starting server")
if err := syscall.Exec(Code, append([]string{"gitpod-code"}, args...), os.Environ()); err != nil {
log.WithError(err).Error("install ext and start code server failed")
Expand Down