update naming

pull/54/head
Muhammad Atif Ali 2 years ago
parent d47fe3ff36
commit d7f009a407
No known key found for this signature in database

@ -1,5 +1,5 @@
--- ---
display_name: vscode-server display_name: VS Code Web
description: VS Code Web - Visual Studio Code in the browser description: VS Code Web - Visual Studio Code in the browser
icon: ../.icons/code.svg icon: ../.icons/code.svg
maintainer_github: coder maintainer_github: coder
@ -9,7 +9,7 @@ tags: [helper, ide, vscode, web]
# VS Code 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) ![VS Code Server with GitHub Copilot and live-share](../.images/vscode-server.gif)

@ -22,14 +22,14 @@ variable "port" {
variable "folder" { variable "folder" {
type = string type = string
description = "The folder to open in vscode-server." description = "The folder to open in vscode-web."
default = "" default = ""
} }
variable "log_path" { variable "log_path" {
type = string type = string
description = "The path to log." description = "The path to log."
default = "/tmp/vscode-server.log" default = "/tmp/vscode-web.log"
} }
variable "install_dir" { 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 agent_id = var.agent_id
display_name = "VS Code Web" display_name = "VS Code Web"
icon = "/icon/code.svg" icon = "/icon/code.svg"
@ -60,9 +60,9 @@ resource "coder_script" "vscode-server" {
run_on_start = true run_on_start = true
} }
resource "coder_app" "vscode-server" { resource "coder_app" "vscode-web" {
agent_id = var.agent_id agent_id = var.agent_id
slug = "vscode-server" slug = "vscode-web"
display_name = "VS Code Web" display_name = "VS Code Web"
url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}" url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}"
icon = "/icon/code.svg" icon = "/icon/code.svg"

Loading…
Cancel
Save