Skip to content

微软的“开放”幻象:拥抱开源,然后筑起高墙

作者 / AUTHOR 白墨麒麟 BaimoQilin (研究 初稿 审核); Gemini 2.0 Flash (文笔润色)

授权协议 / LICENSE CC-BY-NC-SA 署名-非商业性使用-相同方式共享

撰稿日期 / DATE OF WRITING 4/14/2025 19:31

外文标题 / TITLE The Mirage of Openness at Microsoft: Courting Open Source, Erecting Barriers

曾几何时,微软拥抱开源的姿态赢得了开发者社区的广泛赞誉,Visual Studio Code 的成功更是被视为典范。其核心开源的开放,吸引了无数开发者和第三方工具围绕其构建生态,Cursor 这类AI驱动的编辑器便是其中的佼佼者,它们站在巨人的肩膀上,拓展了代码编辑器的边界。然而,最近微软的一系列操作,却给这片繁荣的景象蒙上了一层浓重的阴影,让人不禁质疑:微软所谓的“开放”,究竟是真诚的分享,还是策略性的围猎?

事件的导火索是,许多依赖 VS Code 开源核心构建的第三方编辑器(如 Cursor)用户突然发现,来自微软官方的 C/C++、C# 等核心插件无法正常使用了。这不是意外的技术故障,而是微软有意为之。通过在插件代码中植入环境检测逻辑(if (!isVSCode) throw new Error("Not supported");),并在许可条款中明确限制其仅能在官方 Visual Studio 系列产品中使用,微软实际上对基于开源的衍生工具关上了大门。

这一手操作,可谓是“釜底抽薪”。微软深知,VS Code 的强大不仅仅在于其编辑器本身,更在于其背后庞大而成熟的插件市场。这些官方插件,尤其是语言支持类的,几乎是许多开发工作流的基石。现在,微软利用自己对这些关键插件的控制权,精准地打击了那些借力其开源基础发展起来的“竞争者”或“创新者”。

更令人寒心的是这种改变的方式。没有广泛的预告,没有与社区的充分沟通,更像是一次“背后捅刀”。开发者们一觉醒来,发现自己赖以生产的工具突然残缺不全,只能在各种论坛和代码仓库的角落里寻找答案,最终拼凑出微软悄悄修改了游戏规则的事实。这种缺乏透明度的做法,严重背离了开放源码所倡导的协作与信任精神。

微软此举的动机,或许可以从商业竞争的角度找到解释。随着 Cursor 等集成 AI 功能的编辑器崭露头角,甚至在某些方面威胁到了 VS Code 的地位,微软感到了压力。通过限制核心插件的使用,可以有效遏制这些衍生工具的发展,将用户重新“引导”回自家的“正统”产品,尤其是在微软自己也计划在 VS Code 中集成更强 AI 功能(如 Agent Mode)的背景下,这种“清理门户”的意图显得尤为明显。这无异于一场“生态控制战”:我开放了基础(开源),但生态的果实(插件市场和用户),必须牢牢掌握在自己手中。

然而,这种做法是对“开源精神”的极大讽刺。开源不仅仅是开放代码,更是一种共享、协作、共同发展的文化。微软享受了开源带来的红利——社区的贡献、广泛的采纳、以及因此建立起来的市场影响力,却在第三方工具真正开始繁荣、可能触及其核心利益时,毫不犹豫地收紧了缰绳,利用自己市场主导者的地位,设置了人为的壁垒。这就像是邀请大家来参与建设一座花园,却在花园初具规模时宣布,只有园丁本人才能采摘最美的花朵。

这种行为传递了一个危险的信号:对于大公司而言,开源可能只是一种策略,而非承诺。当开源符合其商业利益时,便高唱开放赞歌;当开源生态中出现可能挑战其地位的力量时,便可以随时改变规则,将“开放”的门槛变成“围墙”。这不仅损害了像 Cursor 这样的创新工具,更伤害了整个依赖开源生态的开发者群体,侵蚀了开发者对微软开源承诺的信任。

真正的开放,应当是拥抱而非扼杀生态的多样性。微软今天的做法,或许能在短期内巩固其市场地位,但从长远看,却可能失去比市场份额更宝贵的东西——开发者的信任和开源社区的尊重。当“开放”沦为可操控的商业手段时,其光环终将褪色,所谓的“拥抱开源”,不过是一场精心设计的幻象罢了。

参考资料

  1. Microsoft and open source - Wikipedia, https://en.wikipedia.org/wiki/Microsoft_and_open_source
  2. microsoft software license terms - Visual Studio Code, https://code.visualstudio.com/license
  3. Is Microsoft VS Code really open source?, https://opensource.stackexchange.com/questions/4288/is-microsoft-vs-code-really-open-source
  4. Visual Studio Code FAQ, https://code.visualstudio.com/docs/supporting/FAQ
  5. microsoft/vscode: Visual Studio Code - GitHub, https://github.com/microsoft/vscode
  6. VSCodium - Open Source Binaries of VSCode, https://vscodium.com/
  7. Extensions for Visual Studio family of products | Visual Studio ..., https://marketplace.visualstudio.com/vscode
  8. Cursor – Welcome to Cursor, https://docs.cursor.com/get-started/welcome
  9. Get Started With Cursor AI IDE - Catalin's Tech, https://catalins.tech/ai-visual-studio-code/
  10. VS code vs. Cursor : r/vscode - Reddit, https://www.reddit.com/r/vscode/comments/1i3i2n3/vs_code_vs_cursor/
  11. Helixform/CodeCursor: An extension for using Cursor in Visual Studio Code. - GitHub, https://github.com/Helixform/CodeCursor
  12. VS Code extension marketplace wars: Cursor users hit roadblocks - devclass, https://devclass.com/2025/04/08/vs-code-extension-marketplace-wars-cursor-users-hit-roadblocks/
  13. The C# Dev Kit extension is not working anymore - Bug Reports - Cursor Forum, https://forum.cursor.com/t/the-c-dev-kit-extension-is-not-working-anymore/76226
  14. The C# Dev Kit extension - Bug Reports - Cursor - Community Forum, https://forum.cursor.com/t/the-c-dev-kit-extension/76226
  15. Has the VSCode C/C++ Extension been blocked? · Issue #2976 · getcursor/cursor - GitHub, https://github.com/getcursor/cursor/issues/2976
  16. Tell HN: Microsoft bans its extensions from Cursor? - Hacker News, https://news.ycombinator.com/item?id=43616838
  17. As of 6 hours ago, C# Dev Kit is not working in Cursor : r/dotnet - Reddit, https://www.reddit.com/r/dotnet/comments/1jtxsxd/as_of_6_hours_ago_c_dev_kit_is_not_working_in/
  18. Microsoft has released their own Agent mode so they've blocked VSCode-derived editors (like Cursor) from using MS extensions : r/programming - Reddit, https://www.reddit.com/r/programming/comments/1jrl2zw/microsoft_has_released_their_own_agent_mode_so/
  19. Microsoft Quietly Blocked Cursor from Using Its VSCode Extension — Here's the, https://forum.cursor.com/t/microsoft-quietly-blocked-cursor-from-using-its-vscode-extension-here-s-the/77934
  20. Microsoft Quietly Blocked Cursor from Using Its VSCode Extension — Here's the - #3 by deanrie - Discussion, https://forum.cursor.com/t/microsoft-quietly-blocked-cursor-from-using-its-vscode-extension-here-s-the/77934/3
  21. DID YOU JUST BAN CURSOR? · Issue #1909 · microsoft/vscode-dotnettools - GitHub, https://github.com/microsoft/vscode-dotnettools/issues/1909
  22. Microsoft blocks VSCode-derived editors (like Cursor) from using MS extensions | Hacker News, https://news.ycombinator.com/item?id=43587420
  23. Microsoft - License Agreement | Visual Studio Marketplace, https://marketplace.visualstudio.com/items/ms-vscode.cpptools/license
  24. Why VS Code remains a developer favorite, year after year - ShiftMag, https://shiftmag.dev/vs-code-171/
  25. Microsoft Extension Licenses - Visual Studio Code, https://code.visualstudio.com/docs/supporting/oss-extensions
  26. Steps I take to fix stubborn TypeScript errors in VS Code | Mike Bifulco, https://mikebifulco.com/posts/typescript-vscode-error-fix-last-resort
  27. Working with JavaScript - Visual Studio Code, https://code.visualstudio.com/docs/nodejs/working-with-javascript
  28. how to fix the debugger in visual studio code - Microsoft Q&A, https://learn.microsoft.com/en-us/answers/questions/1846022/how-to-fix-the-debugger-in-visual-studio-code
  29. How to define or support a code language on Visual Studio - Stack Overflow, https://stackoverflow.com/questions/47913048/how-to-define-or-support-a-code-language-on-visual-studio
  30. VSCode not displaying any syntax errors [duplicate] - Stack Overflow, https://stackoverflow.com/questions/67681132/vscode-not-displaying-any-syntax-errors
  31. About – Open Source Initiative, https://opensource.org/about
  32. Open Source Initiative - Wikipedia, https://en.wikipedia.org/wiki/Open_Source_Initiative
  33. Free Software Foundation | Open Source, GNU, Copyleft - Britannica, https://www.britannica.com/topic/Free-Software-Foundation
  34. About - Free Software Foundation, https://www.fsf.org/about
  35. International Authority & Recognition - Open Source Initiative, https://opensource.org/authority
  36. The Open Source Initiative Announces the Release of the Industry's First Open Source AI Definition, https://opensource.org/blog/the-open-source-initiative-announces-the-release-of-the-industrys-first-open-source-ai-definition
  37. Free Software Foundation - Wikipedia, https://en.wikipedia.org/wiki/Free_Software_Foundation
  38. sirredbeard/microsoft-opensource: An unofficial timeline of Microsoft's transition towards open source - GitHub, https://github.com/sirredbeard/microsoft-opensource
  39. Microsoft Embracing Open Source - Developer Support, https://devblogs.microsoft.com/premier-developer/microsoft-embracing-open-source/