mirror of
				https://github.com/We-Dont-Byte/Mind_Reader.git
				synced 2025-02-04 10:38:42 +00:00 
			
		
		
		
	Add persistent accessibility pane
This will facilitate more extensive usage of the menu than the context menu.
This commit is contained in:
		
							
								
								
									
										21
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								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",
 | 
			
		||||
 
 | 
			
		||||
@@ -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() {}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user