sap-ux-sap-systems-ext 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extension.js +18 -13
- package/package.json +5 -5
package/dist/extension.js
CHANGED
|
@@ -169467,7 +169467,7 @@ function getSystemTypeLabel(systemType) {
|
|
|
169467
169467
|
var import_telemetry = __toESM(require_dist15());
|
|
169468
169468
|
|
|
169469
169469
|
// package.json
|
|
169470
|
-
var version = "0.1.
|
|
169470
|
+
var version = "0.1.3";
|
|
169471
169471
|
|
|
169472
169472
|
// src/utils/telemetryHelper.ts
|
|
169473
169473
|
var import_feature_toggle = __toESM(require_dist16());
|
|
@@ -169670,15 +169670,18 @@ var SapSystemsProvider = class {
|
|
|
169670
169670
|
// src/views/sapSystems.ts
|
|
169671
169671
|
var import_store2 = __toESM(require_dist2());
|
|
169672
169672
|
function initSapSystemsView(context4) {
|
|
169673
|
-
const systemsTreeDataProvider = new SapSystemsProvider(context4);
|
|
169674
|
-
|
|
169673
|
+
const systemsTreeDataProvider = new SapSystemsProvider(context4.vscodeExtContext);
|
|
169674
|
+
context4.vscodeExtContext.subscriptions.push(
|
|
169675
|
+
import_vscode3.window.registerTreeDataProvider("sap.ux.tools.sapSystems", systemsTreeDataProvider)
|
|
169676
|
+
);
|
|
169677
|
+
context4.systemsTreeDataProvider = systemsTreeDataProvider;
|
|
169675
169678
|
const storeWatcher = (0, import_store2.getFilesystemWatcherFor)(
|
|
169676
169679
|
import_store2.Entity.BackendSystem,
|
|
169677
169680
|
() => systemsTreeDataProvider.refresh(),
|
|
169678
169681
|
{ baseDirectory: (0, import_store2.getSapToolsDirectory)() }
|
|
169679
169682
|
);
|
|
169680
169683
|
if (storeWatcher) {
|
|
169681
|
-
context4.subscriptions.push({ dispose: () => storeWatcher.close() });
|
|
169684
|
+
context4.vscodeExtContext.subscriptions.push({ dispose: () => storeWatcher.close() });
|
|
169682
169685
|
}
|
|
169683
169686
|
}
|
|
169684
169687
|
|
|
@@ -170394,7 +170397,7 @@ var createSystemCommandHandler = (context4) => async () => {
|
|
|
170394
170397
|
await panel.reveal();
|
|
170395
170398
|
};
|
|
170396
170399
|
function createNewPanel(context4) {
|
|
170397
|
-
const extensionPath = context4.extContext.extensionPath;
|
|
170400
|
+
const extensionPath = context4.extContext.vscodeExtContext.extensionPath;
|
|
170398
170401
|
return new SystemPanel({
|
|
170399
170402
|
extensionPath,
|
|
170400
170403
|
systemPanelViewType: 0 /* Create */,
|
|
@@ -170450,7 +170453,7 @@ function openSystemPanel(context4, backendSystemKey, backendSystem, systemStatus
|
|
|
170450
170453
|
const panel = panelManager.getOrCreateNewPanel(
|
|
170451
170454
|
panelKey,
|
|
170452
170455
|
() => new SystemPanel({
|
|
170453
|
-
extensionPath: extContext.extensionPath,
|
|
170456
|
+
extensionPath: extContext.vscodeExtContext.extensionPath,
|
|
170454
170457
|
systemPanelViewType: 1 /* View */,
|
|
170455
170458
|
backendSystem,
|
|
170456
170459
|
disposeCallback: () => panelManager.deleteAndDispose(panelKey),
|
|
@@ -170511,9 +170514,8 @@ function logTelemetry2(status, systemType = "") {
|
|
|
170511
170514
|
|
|
170512
170515
|
// src/commands/system/refresh.ts
|
|
170513
170516
|
var refreshSystemsCommandHandler = (commandContext) => async () => {
|
|
170514
|
-
const systemsTreeDataProvider = new SapSystemsProvider(commandContext.extContext);
|
|
170515
170517
|
SystemsLogger.logger.info(t2("info.refreshingSystems"));
|
|
170516
|
-
systemsTreeDataProvider
|
|
170518
|
+
commandContext.extContext.systemsTreeDataProvider?.refresh();
|
|
170517
170519
|
};
|
|
170518
170520
|
|
|
170519
170521
|
// src/commands/system/import.ts
|
|
@@ -170564,7 +170566,7 @@ function createNewPanel2(context4, panelKey, systemConfig, existingSystem) {
|
|
|
170564
170566
|
password: existingSystem?.password
|
|
170565
170567
|
});
|
|
170566
170568
|
return new SystemPanel({
|
|
170567
|
-
extensionPath: context4.extContext.extensionPath,
|
|
170569
|
+
extensionPath: context4.extContext.vscodeExtContext.extensionPath,
|
|
170568
170570
|
systemPanelViewType: existingSystem ? 1 /* View */ : 3 /* Import */,
|
|
170569
170571
|
disposeCallback: () => {
|
|
170570
170572
|
context4.panelManager.deleteAndDispose(panelKey);
|
|
@@ -170667,7 +170669,7 @@ var registerSystemViewCommands = (context4) => {
|
|
|
170667
170669
|
import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.refresh" /* Refresh */, commandHandlers.refresh(systemCommandContext)),
|
|
170668
170670
|
import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.launchAppGen" /* LaunchAppGen */, commandHandlers.launchAppGen(systemCommandContext))
|
|
170669
170671
|
];
|
|
170670
|
-
context4.subscriptions.push(...disposables);
|
|
170672
|
+
context4.vscodeExtContext.subscriptions.push(...disposables);
|
|
170671
170673
|
};
|
|
170672
170674
|
|
|
170673
170675
|
// src/commands/extension/index.ts
|
|
@@ -170684,7 +170686,7 @@ function registerExtensionCommands(context4) {
|
|
|
170684
170686
|
|
|
170685
170687
|
// src/commands/registerCommands.ts
|
|
170686
170688
|
function registerCommands(context4) {
|
|
170687
|
-
registerExtensionCommands(context4);
|
|
170689
|
+
registerExtensionCommands(context4.vscodeExtContext);
|
|
170688
170690
|
registerSystemViewCommands(context4);
|
|
170689
170691
|
}
|
|
170690
170692
|
|
|
@@ -170692,8 +170694,11 @@ function registerCommands(context4) {
|
|
|
170692
170694
|
async function activate(context4) {
|
|
170693
170695
|
await initI18n();
|
|
170694
170696
|
await TelemetryHelper.initTelemetrySettings();
|
|
170695
|
-
|
|
170696
|
-
|
|
170697
|
+
const extContext = {
|
|
170698
|
+
vscodeExtContext: context4
|
|
170699
|
+
};
|
|
170700
|
+
registerCommands(extContext);
|
|
170701
|
+
registerViews(extContext);
|
|
170697
170702
|
}
|
|
170698
170703
|
function deactivate() {
|
|
170699
170704
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sap-ux-sap-systems-ext",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"displayName": "Connection Manager for SAP Systems",
|
|
5
5
|
"description": "Enables you to store connection information for remote SAP systems.",
|
|
6
6
|
"main": "./dist/extension.js",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"os-name": "4.0.1",
|
|
45
45
|
"vscode-uri": "3.0.7",
|
|
46
46
|
"@vscode/vsce": "3.6.0",
|
|
47
|
-
"@sap-ux/axios-extension": "1.
|
|
47
|
+
"@sap-ux/axios-extension": "1.25.0",
|
|
48
48
|
"@sap-ux/guided-answers-helper": "0.4.2",
|
|
49
49
|
"@sap-ux/feature-toggle": "0.3.5",
|
|
50
|
-
"@sap-ux/ui-components": "1.26.17",
|
|
51
50
|
"@sap-ux/logger": "0.7.2",
|
|
52
51
|
"@sap-ux/store": "1.4.0",
|
|
52
|
+
"@sap-ux/ui-components": "1.26.17",
|
|
53
53
|
"@sap-ux/sap-systems-ext-types": "0.0.2",
|
|
54
|
-
"@sap-ux/
|
|
55
|
-
"@sap-ux/
|
|
54
|
+
"@sap-ux/telemetry": "0.6.48",
|
|
55
|
+
"@sap-ux/sap-systems-ext-webapp": "0.0.6"
|
|
56
56
|
},
|
|
57
57
|
"contributes": {
|
|
58
58
|
"viewsContainers": {
|