From dfbf41cf062226c2b12a5a8f33512854b913c0e8 Mon Sep 17 00:00:00 2001 From: Taras Novak Date: Fri, 3 Feb 2023 14:41:18 -0600 Subject: [PATCH] Add PRQL logo icon to .prql files display in file explorer and PRQL editor title bar (#40) --- package.json | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f33ad30..4dae820 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,11 @@ "extensions": [ ".prql" ], - "configuration": "./language-configuration.json" + "configuration": "./language-configuration.json", + "icon": { + "dark": "./resources/prql-logo.png", + "light": "./resources/prql-logo.png" + } } ], "grammars": [ @@ -44,9 +48,26 @@ { "command": "prqlSqlOutputPanel.open", "title": "Open SQL Output Panel", - "category": "PRQL" + "category": "PRQL", + "icon": "$(database)" } - ] + ], + "menus": { + "editor/title": [ + { + "command": "prqlSqlOutputPanel.open", + "when": "resourceFilename =~ /.*(.prql)/", + "group": "navigation" + } + ], + "editor/title/context": [ + { + "command": "prqlSqlOutputPanel.open", + "when": "resourceFilename =~ /.*\\.(prql)/", + "group": "navigation" + } + ] + } }, "scripts": { "vscode:prepublish": "npm run compile",