跳转至

Benefits of VS Code workspaces(VS Code 工作区(VS Code workspaces)的优势)

This page provides an overview of the benefits of using VS Code in Foundry to write and manage code. In particular, the benefits below should be considered when deciding whether to switch from Code Repositories to VS Code in Foundry.

AI-powered coding assistance with Continue

VS Code in Foundry comes with Continue, an AI coding assistant preconfigured to work with Palantir-provided language models and equipped with knowledge about relevant Palantir SDKs and your Python transforms or OSDK repository. With this contextual understanding of your data structures, ontology, and organization, Continue can generate more accurate and relevant code suggestions and access Foundry-specific tools to accelerate your workflows.

Enhanced preview features

VS Code in Foundry provides powerful preview capabilities that go beyond basic sampling:

  • Full dataset preview in Python transforms repositories: Use full dataset preview to preview the full output of transforms without random sampling, giving you accurate results that match production behavior.
  • Accurate incremental preview: The Palantir extension runs the same incremental resolution and evaluation logic as production builds for both Spark and lightweight transforms, with full support for v1 and v2 incremental semantics. This way, you can see exactly how your incremental transforms will behave.
  • Custom filtering: Specify your own code-defined filters to control exactly what data gets loaded during preview, enabling targeted testing of specific scenarios.

Optimized VS Code language server

The highly optimized language server in VS Code enables an efficient, responsive developer experience, with major speed boosts for features like linting and auto-complete.

Integrated terminal

VS Code's integrated terminal gives you full control over your development environment. Automate workflows with scripts, run commands to perform bulk operations, and efficiently manage version control with the command line interface.

Flexibility to work in Foundry or locally

VS Code workspaces provide you with an environment deployed on Palantir infrastructure and accessible from the Palantir platform. Alternatively, the Palantir extension for Visual Studio Code can be installed in your local VS Code IDE to integrate directly with your code in Foundry.

For a detailed comparison to help you decide which is right for you, review our documentation on choosing between local development and VS Code workspaces.

Customizable user experience

VS Code workspaces enables you to customize your workflow and save your coding preferences, such as custom key bindings, configurable color themes and layouts, and other UI settings.

Learn more about the motivation for VS Code integration with Foundry ↗ and additional features of the VS Code extension.


Note: AIP feature availability is subject to change and may differ between customers.

VS Code workspaces and the Palantir extension for Visual Studio Code are not affiliated with or endorsed by Microsoft.

The Continue extension is a product of Continue Dev, Inc. No affiliation or endorsement is implied.


中文翻译


VS Code 工作区(VS Code workspaces)的优势

本页概述了在 Foundry 中使用 VS Code 编写和管理代码的优势。在决定是否从代码仓库(Code Repositories)切换至 Foundry 中的 VS Code 时,应重点考虑以下优势。

借助 Continue 实现 AI 辅助编程

Foundry 中的 VS Code 内置了 Continue,这是一款 AI 编程助手,已预配置为与 Palantir 提供的语言模型协同工作,并具备相关 Palantir SDK 以及您的 Python 转换(transforms)或 OSDK 仓库的知识。凭借对数据结构、本体(ontology)及组织的上下文理解,Continue 能够生成更准确、更相关的代码建议,并调用 Foundry 专属工具来加速您的工作流程。

增强的预览功能

Foundry 中的 VS Code 提供了超越基础采样的强大预览能力:

  • Python 转换仓库中的完整数据集预览: 使用完整数据集预览功能,无需随机采样即可预览转换的完整输出,从而获得与生产环境行为一致的准确结果。
  • 精确的增量预览: Palantir 扩展对 Spark 和轻量级转换均采用与生产构建相同的增量解析与评估逻辑,并全面支持 v1 和 v2 增量语义。这样,您可以精确了解增量转换的实际行为。
  • 自定义过滤: 指定您自己的代码定义过滤器,精确控制预览期间加载的数据,从而实现对特定场景的针对性测试。

优化的 VS Code 语言服务器

VS Code 中高度优化的语言服务器提供了高效、响应迅速的开发体验,在代码检查(linting)和自动补全等功能上实现了显著的速度提升。

集成终端

VS Code 的集成终端让您能够完全掌控开发环境。通过脚本自动化工作流程、运行命令执行批量操作,并利用命令行界面高效管理版本控制。

在 Foundry 或本地灵活工作

VS Code 工作区为您提供了一个部署在 Palantir 基础设施上、可从 Palantir 平台访问的开发环境。或者,您也可以在本地的 VS Code IDE 中安装 Palantir 扩展 for Visual Studio Code,直接与 Foundry 中的代码集成。

如需详细对比以帮助您做出选择,请查阅我们关于在本地开发与 VS Code 工作区之间选择的文档。

可定制的用户体验

VS Code 工作区允许您自定义工作流程并保存编码偏好设置,例如自定义快捷键、可配置的颜色主题和布局,以及其他 UI 设置。

了解更多关于 VS Code 与 Foundry 集成 ↗ 的动机,以及 VS Code 扩展的更多功能


注意:AIP 功能可用性可能随时变化,且不同客户之间可能存在差异。

VS Code 工作区及 Palantir 扩展 for Visual Studio Code 与 Microsoft 无关联关系,亦未获得其认可。

Continue 扩展是 Continue Dev, Inc. 的产品。不暗示任何关联关系或认可。