From d2e3df4965abcceae5d441d5f91276ffe0823f18 Mon Sep 17 00:00:00 2001 From: sophiadrewfs Date: Tue, 12 Oct 2021 12:43:10 -0500 Subject: [PATCH 1/2] Add basic settings --- package.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c570284..60dcb47 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,31 @@ "command": "mind-reader.helloWorld", "title": "Hello World" } - ] + ], + "configuration":{ + "title": "Mind_Reader", + "properties": { + "mindReader.productType":{ + "type":"string", + "default": "MINDSTORMS® EV3", + "enum": ["MINDSTORMS® EV3", "SPIKE™ Prime"], + "enumDescriptions": [ + "LEGO® MINDSTORMS® EV3 (31313)", + "LEGO® Education SPIKE™ Prime Set (45678)" + ] + }, + "mindReader.screenReader":{ + "type":"string", + "default": "NVDA", + "enum": ["NVDA", "JAWS", "VoiceOver"], + "enumDescriptions": [ + "NonVisual Desktop Access", + "Job Access With Speech", + "Voice Over" + ] + } + } + } }, "scripts": { "vscode:prepublish": "npm run compile", From 3ac94353de41e157dfd9d51bcfa1ce4b166bb10f Mon Sep 17 00:00:00 2001 From: jakergrossman Date: Tue, 12 Oct 2021 14:18:29 -0500 Subject: [PATCH 2/2] Add port options --- package.json | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 60dcb47..a4232af 100644 --- a/package.json +++ b/package.json @@ -23,24 +23,35 @@ "configuration":{ "title": "Mind_Reader", "properties": { - "mindReader.productType":{ + "mindreader.productType": { "type":"string", + "description": "Specifies the LEGO® product.", "default": "MINDSTORMS® EV3", - "enum": ["MINDSTORMS® EV3", "SPIKE™ Prime"], - "enumDescriptions": [ - "LEGO® MINDSTORMS® EV3 (31313)", - "LEGO® Education SPIKE™ Prime Set (45678)" - ] + "enum": ["MINDSTORMS® EV3", "SPIKE™ Prime"], + "enumDescriptions": [ + "LEGO® MINDSTORMS® EV3 (31313)", + "LEGO® Education SPIKE™ Prime Set (45678)" + ] }, - "mindReader.screenReader":{ - "type":"string", + "mindreader.screenReader": { + "type": "string", + "description": "Specifies which screen reader to optimize for.", "default": "NVDA", - "enum": ["NVDA", "JAWS", "VoiceOver"], - "enumDescriptions": [ - "NonVisual Desktop Access", - "Job Access With Speech", - "Voice Over" - ] + "enum": ["NVDA", "Orca", "VoiceOver"], + "enumDescriptions": [ + "NonVisual Desktop Access (Windows)", + "Orca (Linux)", + "Apple VoiceOver (macOS)" + ] + }, + "mindreader.connection.connectAutomatically": { + "type": "boolean", + "description": "Specifies whether to try to automatically detect and communicate with a connected Hub.", + "default": "true" + }, + "mindreader.connection.portPath": { + "type": "string", + "markdownDescription": "Specifies the serial port path to use if `#mindreader.connectAutomatically#` is not set." } } }