diff --git a/vs-code-server/template/variables.tf b/vs-code-server/template/variables.tf deleted file mode 100644 index 0224831..0000000 --- a/vs-code-server/template/variables.tf +++ /dev/null @@ -1,26 +0,0 @@ -# 此文件定義 template 的可配置變數 -# 使用者在建立 Workspace 時可以填入這些參數 - -variable "github_token" { - description = "GitHub Personal Access Token for GitHub Copilot authentication (optional, will auto-use OIDC if not provided)" - type = string - sensitive = true - default = "" - - # 使用者提示 - validation { - condition = length(var.github_token) == 0 || startswith(var.github_token, "ghp_") - error_message = "GitHub token should start with 'ghp_' or be empty." - } -} - -# 未來可擴展的變數(示例,目前不需要): -# variable "extensions" { -# description = "VSCode extensions to auto-install" -# type = list(string) -# default = [ -# "github.copilot", -# "ms-vscode.cpptools", -# "ms-python.python" -# ] -# }