Skip to content

Inspector v2: Types support in Playground#17993

Open
ryantrem wants to merge 1 commit intoBabylonJS:masterfrom
ryantrem:inspector-v2/playground-types
Open

Inspector v2: Types support in Playground#17993
ryantrem wants to merge 1 commit intoBabylonJS:masterfrom
ryantrem:inspector-v2/playground-types

Conversation

@ryantrem
Copy link
Member

Adding the Inspector v2 umd d.ts to the list for the Monaco editor in Playground.

Also removing the now unneeded VS code task dependency for Playground/Sandbox on the Inspector v2 watch task since Inspector v2 is now consumed from umd in Playground/Sandbox.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

Snapshot stored with reference name:
refs/pull/17993/merge

Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17993/merge/index.html

To test a playground add it to the URL, for example:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17993/merge/index.html#WGZLGJ#4600

Links to test your changes to core in the published versions of the Babylon tools (does not contain changes you made to the tools themselves):

https://playground.babylonjs.com/?snapshot=refs/pull/17993/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/17993/merge
https://gui.babylonjs.com/?snapshot=refs/pull/17993/merge
https://nme.babylonjs.com/?snapshot=refs/pull/17993/merge

To test the snapshot in the playground with a playground ID add it after the snapshot query string:

https://playground.babylonjs.com/?snapshot=refs/pull/17993/merge#BCU1XR#0

If you made changes to the sandbox or playground in this PR, additional comments will be generated soon containing links to the dev versions of those tools.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17993/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17993/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17993/merge/?snapshot=refs/pull/17993/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

@ryantrem ryantrem marked this pull request as ready for review February 28, 2026 01:52
Copilot AI review requested due to automatic review settings February 28, 2026 01:52
@ryantrem ryantrem enabled auto-merge (squash) February 28, 2026 01:52
@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Inspector v2 TypeScript typings to the Playground’s Monaco editor so users get type support when using Inspector v2, and simplifies local dev tasks now that Playground/Sandbox consume Inspector v2 from the UMD build.

Changes:

  • Add babylon.inspector-v2.d.ts to Monaco’s fetched declaration list.
  • Remove the Watch Inspector v2 dependency from the VS Code “Playground Serve (Dev)” and “Sandbox Serve (Dev)” tasks.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/tools/playground/src/tools/monaco/monacoManager.ts Adds Inspector v2 declaration URL to Monaco typings preload list.
.vscode/tasks.json Removes Inspector v2 watch task dependency from Playground/Sandbox serve tasks.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17993/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17993/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17993/merge/?snapshot=refs/pull/17993/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants