Skip to content

[bug] CSS formatting shows up in the BAML vscode extension Prompt Preview mode  #1942

@szleventee

Description

@szleventee

Product

BAML

Describe the bug

In VSCode, (using remote ssh connection to a server), in lines where diffs appear in the editor, these seem to be picked up from the baml source file somehow, and the prompt contains elements like:

Welcome to 30 dark:text-yellow-100 rounded-sm px-0.5">100/70 text-yellow-900 dark:bg-yellow-800/30 dark:text-yellow-30 dark:text-yellow-100 rounded-sm px-0.5">100 rounded-sm px-0.5">

Workaround: disabling Git solves the problem.

{
"git.enabled": false,
"git.decorations.enabled": false
}

Reproduction Steps

Enable git in VS Code. Open a remote SSH connection (this might not be needed). Generated files should have formatting elements in the prompt shown in the vscode extension.

BAML Version

No response

Language/Framework

None

LLM Provider

None

LLM Model

No response

Operating System

None

Browser

None

Code Editor

None

Metadata

Metadata

Assignees

Labels

bugconfirmed by the BAML team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions