Skip to content

Commit 10c0693

Browse files
ortajakebailey
andauthored
Improves docs for the multifile playground (#2238)
Co-authored-by: Jake Bailey <[email protected]>
1 parent 783f7db commit 10c0693

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/playground/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ export const setupPlayground = (
188188
// something more inline, but we can abuse the code lenses for now because they get their own line!
189189
sandbox.monaco.languages.registerCodeLensProvider(sandbox.language, {
190190
provideCodeLenses: function (model, token) {
191-
const lenses = !showFileCodeLens
191+
// If you have @filename on the first line, don't show the implicit filename
192+
const lenses = !showFileCodeLens && !model.getLineContent(0).startsWith("// @filename")
192193
? []
193194
: [
194195
{

0 commit comments

Comments
 (0)