mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Add Godot 4 support to the Scene preview panel (#451)
This commit is contained in:
30
package.json
30
package.json
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user