From 73e599df7b4953d2fc404c47e74a4e8b24dc5999 Mon Sep 17 00:00:00 2001 From: jakergrossman Date: Tue, 16 Nov 2021 12:44:39 -0600 Subject: [PATCH] Add persistent accessibility pane This will facilitate more extensive usage of the menu than the context menu. --- package.json | 21 ++++++++++++++++++++- src/extension.ts | 6 ++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a4af18..611ff18 100644 --- a/package.json +++ b/package.json @@ -186,7 +186,26 @@ "markdownDescription": "Specifies the serial port path to use if `#mindreader.connectAutomatically#` is not set." } } - } + }, + "views": { + "accessActions": [ + { + "id": "accessActions", + "name": "Access Actions", + "icon": "media/dep.svg", + "contextualTitle": "Accessibility Menu Actions" + } + ] + }, + "viewsContainers": { + "activitybar": [ + { + "id": "accessActions", + "title": "Access Actions", + "icon": "media/dep.svg" + } + ] + } }, "scripts": { "vscode:prepublish": "npm run compile", diff --git a/src/extension.ts b/src/extension.ts index 5767437..167b54b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -3,6 +3,8 @@ import * as vscode from 'vscode'; import * as pl from './pylex'; import commands from './commands'; +import { AccessNodeProvider } from './accessNodeProvider' + let parser: pl.Parser = new pl.Parser(); export function activate(context: vscode.ExtensionContext) { @@ -19,6 +21,10 @@ export function activate(context: vscode.ExtensionContext) { ); context.subscriptions.push(disposable); }); + + let provider = new AccessNodeProvider(); + vscode.window.registerTreeDataProvider('accessActions', provider); + } export function deactivate() {}