Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Commit

Permalink
disable pnp function in workbench
Browse files Browse the repository at this point in the history
  • Loading branch information
dilin-MS committed Aug 10, 2020
1 parent ed1db93 commit 373d073
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 94 deletions.
44 changes: 12 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 1 addition & 60 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@
"onCommand:iotworkbench.deviceUpload",
"onCommand:iotworkbench.azureProvision",
"onCommand:iotworkbench.azureDeploy",
"onCommand:iotworkbench.configureDevice",
"onCommand:azure-digital-twins.createInterface",
"onCommand:azure-digital-twins.createCapabilityModel",
"onCommand:azure-digital-twins.openRepository",
"onCommand:azure-digital-twins.signOutRepository",
"onCommand:azure-digital-twins.submitFiles",
"workspaceContains:**/*.json"
"onCommand:iotworkbench.configureDevice"
],
"main": "./dist/extension",
"contributes": {
Expand Down Expand Up @@ -95,36 +89,6 @@
"command": "iotworkbench.configureDevice",
"title": "Configure Device Settings...",
"category": "Azure IoT Device Workbench"
},
{
"command": "iotworkbench.iotPnPGenerateCode",
"title": "Generate Device Code Stub...",
"category": "IoT Plug and Play"
},
{
"command": "azure-digital-twins.createInterface",
"title": "Create Interface",
"category": "IoT Plug and Play"
},
{
"command": "azure-digital-twins.createCapabilityModel",
"title": "Create Capability Model",
"category": "IoT Plug and Play"
},
{
"command": "azure-digital-twins.openRepository",
"title": "Open Model Repository",
"category": "IoT Plug and Play"
},
{
"command": "azure-digital-twins.signOutRepository",
"title": "Sign out Model Repository",
"category": "IoT Plug and Play"
},
{
"command": "azure-digital-twins.submitFiles",
"title": "Submit Files to Model Repository",
"category": "IoT Plug and Play"
}
],
"configuration": [
Expand Down Expand Up @@ -180,31 +144,8 @@
},
"IoTWorkbench.BoardId": {
"type": "string"
},
"IoTWorkbench.IoTPnPCodeGenVersion": {
"type": "string"
},
"IoTWorkbench.IoTPnPPublicRepositoryUrl": {
"type": "string",
"default": "https://repo.azureiotrepository.com"
}
}
},
{
"title": "IoT Plug and Play",
"properties": {
"azure-digital-twins.publicRepositoryUrl": {
"type": "string",
"default": "https://repo.azureiotrepository.com",
"description": "Set the public model repository url."
}
}
}
],
"jsonValidation": [
{
"fileMatch": "*.json",
"url": "./resources/pnp/templates/emptySchema.json"
}
],
"languages": [
Expand Down
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ function initDigitalTwinCommand(
);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function initDigitalTwin(context: vscode.ExtensionContext, outputChannel: vscode.OutputChannel): void {
const colorizedChannel = new ColorizedChannel(Constants.CHANNEL_NAME);
context.subscriptions.push(colorizedChannel);
Expand Down Expand Up @@ -601,7 +602,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
}, 200);

// init DigitalTwin part
initDigitalTwin(context, outputChannel);
// Deprecate digital twin feature in workbench.
// initDigitalTwin(context, outputChannel);
}

// this method is called when your extension is deactivated
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"sourceMap": true,
"rootDir": ".",
"noUnusedLocals": true,
"noUnusedLocals": false,
"noUnusedParameters": true,
"strict": true // Enable several strict checks
},
Expand Down

0 comments on commit 373d073

Please sign in to comment.