Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support Policies

未关闭
#7,672 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
typescript, vscode
领域
devtools

调研方向

首先比较 src/vs/code/electron-main/main.ts 中启用策略的 VS Code 配置服务与 src/vs/server/node/serverServices.ts 中的 VS Code Server 设置,尤其关注 NullPolicyService。跟踪 code-server 如何整合服务器配置,然后验证预期 Linux JSON 位置中的策略是否在 code-server 中得到应用。

由索引模型根据 Issue 内容生成。

描述

enhancement needs-investigation

Reposting this for visibility, as I'm not sure anyone will see a comment on a closed issue and I haven't heard anything for a week.

The upstream issue was resolved, but unfortunately VSCode disables policies (the partial solution to the problem) for VSCode Web. Would it be reasonable to make policies apply to code-server?

https://github.com/microsoft/vscode/issues/27972 is still open, but it would be nice to at least get the policy stuff over to code-server.

While I was trying to hack around this locally my AI coding assistant narrowed down to what it thinks the problem is (and which seems like a reasonable guess), which is that the ConfigurationService that is instantiated for the electron app includes a policyService
https://github.com/microsoft/vscode/blob/main/src/vs/code/electron-main/main.ts#L226
But the configuration service that is instantiated for VSCode Server uses a NullPolicyService.
https://github.com/microsoft/vscode/blob/main/src/vs/server/node/serverServices.ts#L145

Of note, the policy service on Linux is just a JSON file in a particular location, which I think would all that would be needed here.

In theory, the only patch necessary to fix this for code-server would be to change VSCode Server to instantiate a policyService and use it. I suspect that reality is quite different from theory, as always, but this feels like it has potential to be a low-lift improvement.

Originally posted by @MicahZoltu in #6995

主要语言
TypeScript
星标
79.4k
派生
6.9k
平均合并
2 天 13 小时
30 天内合并 PR
39

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/code-server 的其他 Issue

查看 coder/code-server 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。