We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 783f7db commit 10c0693Copy full SHA for 10c0693
packages/playground/src/index.ts
@@ -188,7 +188,8 @@ export const setupPlayground = (
188
// something more inline, but we can abuse the code lenses for now because they get their own line!
189
sandbox.monaco.languages.registerCodeLensProvider(sandbox.language, {
190
provideCodeLenses: function (model, token) {
191
- const lenses = !showFileCodeLens
+ // If you have @filename on the first line, don't show the implicit filename
192
+ const lenses = !showFileCodeLens && !model.getLineContent(0).startsWith("// @filename")
193
? []
194
: [
195
{
0 commit comments