From d7f009a407a867b3de059fe5a758deaf6649df23 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 27 Sep 2023 08:10:25 +0300 Subject: [PATCH] update naming --- vscode-server/README.md | 4 ++-- vscode-server/main.tf | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vscode-server/README.md b/vscode-server/README.md index dfbec39..605ecf6 100644 --- a/vscode-server/README.md +++ b/vscode-server/README.md @@ -1,5 +1,5 @@ --- -display_name: vscode-server +display_name: VS Code Web description: VS Code Web - Visual Studio Code in the browser icon: ../.icons/code.svg maintainer_github: coder @@ -9,7 +9,7 @@ tags: [helper, ide, vscode, web] # VS Code Web -Automatically install [Visual Studio Code Server](https://code.visualstudio.com/docs/remote/vscode-server) in a workspace using the [VS Code CLIs](https://code.visualstudio.com/docs/editor/command-line) and create an app to access it via the dashboard. +Automatically install [Visual Studio Code Server](https://code.visualstudio.com/docs/remote/vscode-server) in a workspace using the [VS Code CLI](https://code.visualstudio.com/docs/editor/command-line) and create an app to access it via the dashboard. ![VS Code Server with GitHub Copilot and live-share](../.images/vscode-server.gif) diff --git a/vscode-server/main.tf b/vscode-server/main.tf index bd86703..ef72c52 100644 --- a/vscode-server/main.tf +++ b/vscode-server/main.tf @@ -22,14 +22,14 @@ variable "port" { variable "folder" { type = string - description = "The folder to open in vscode-server." + description = "The folder to open in vscode-web." default = "" } variable "log_path" { type = string description = "The path to log." - default = "/tmp/vscode-server.log" + default = "/tmp/vscode-web.log" } variable "install_dir" { @@ -48,7 +48,7 @@ variable "accept_license" { } } -resource "coder_script" "vscode-server" { +resource "coder_script" "vscode-web" { agent_id = var.agent_id display_name = "VS Code Web" icon = "/icon/code.svg" @@ -60,9 +60,9 @@ resource "coder_script" "vscode-server" { run_on_start = true } -resource "coder_app" "vscode-server" { +resource "coder_app" "vscode-web" { agent_id = var.agent_id - slug = "vscode-server" + slug = "vscode-web" display_name = "VS Code Web" url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}" icon = "/icon/code.svg"