Add Godot 4 support to the Scene preview panel (#451)

This commit is contained in:
Daelon Suzuka
2023-03-14 13:13:32 -04:00
committed by GitHub
parent 3ce256379f
commit df386efa54
870 changed files with 1701 additions and 66 deletions

View File

@@ -40,7 +40,8 @@
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch"
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"generate-icons": "ts-node tools/generate_icons.ts"
},
"contributes": {
"commands": [
@@ -118,6 +119,10 @@
"command": "godotTools.scenePreview.copyNodePath",
"title": "Copy Node Path"
},
{
"command": "godotTools.scenePreview.copyResourcePath",
"title": "Copy Resource Path"
},
{
"command": "godotTools.scenePreview.openScene",
"title": "Open Scene"
@@ -427,6 +432,10 @@
"command": "godotTools.scenePreview.refresh",
"when": "false"
},
{
"command": "godotTools.scenePreview.goToDefinition",
"when": "false"
},
{
"command": "godotTools.scenePreview.pin",
"when": "false"
@@ -439,6 +448,18 @@
"command": "godotTools.scenePreview.copyNodePath",
"when": "false"
},
{
"command": "godotTools.scenePreview.copyResourcePath",
"when": "false"
},
{
"command": "godotTools.scenePreview.openScript",
"when": "false"
},
{
"command": "godotTools.scenePreview.openScene",
"when": "false"
},
{
"command": "godot-tool.copy_resource_path_context",
"when": "false"
@@ -491,9 +512,13 @@
"command": "godotTools.scenePreview.copyNodePath",
"when": "view == scenePreview"
},
{
"command": "godotTools.scenePreview.copyResourcePath",
"when": "view == scenePreview && viewItem =~ /hasResourcePath/"
},
{
"command": "godotTools.scenePreview.openScene",
"when": "view == scenePreview && viewItem =~ /PackedScene/",
"when": "view == scenePreview && viewItem =~ /openable/",
"group": "1@2"
},
{
@@ -540,6 +565,7 @@
"@types/vscode": "^1.68.0",
"@types/ws": "^8.2.2",
"esbuild": "^0.15.2",
"ts-node": "^10.9.1",
"tslint": "^5.20.1",
"typescript": "^3.5.1",
"vsce": "^2.10.0"