Skip to content

Commit

Permalink
Merge branch 'main' into users/cdgolmar/connector-credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
rllyy97 authored Nov 30, 2023
2 parents 4293bb6 + 1698066 commit 89cb06c
Show file tree
Hide file tree
Showing 16 changed files with 52 additions and 37 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Logic Apps Designer
## [2.88.0](https://github.com/Azure/LogicAppsUX/compare/v2.87.0...v2.88.0) (2023-11-30)


### Bug Fixes

* **designer:** Custom Code Workspace fix empty lib folder ([#3769](https://github.com/Azure/LogicAppsUX/issues/3769)) ([549f800](https://github.com/Azure/LogicAppsUX/commit/549f8002324b881fb9ae1d284ba4d0981dda129e))
* **designer:** Inconsistency in IGatewayService interface ([#3774](https://github.com/Azure/LogicAppsUX/issues/3774)) ([dbcdec2](https://github.com/Azure/LogicAppsUX/commit/dbcdec28472a9857872016f1026d59fcac60c146))
* **Designer:** Standalone - Errors command bar button now behaves as it does in portal ([#3771](https://github.com/Azure/LogicAppsUX/issues/3771)) ([83f155c](https://github.com/Azure/LogicAppsUX/commit/83f155c2f2fbd31b540de0f0a4b61c7fa36b108a))

## [2.87.0](https://github.com/Azure/LogicAppsUX/compare/v2.86.0...v2.87.0) (2023-11-29)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export async function validateAndInstallBinaries(context: IActionContext) {
await runWithDurationTelemetry(context, 'azureLogicAppsStandard.validateDotNetIsLatest', async () => {
progress.report({ increment: 20, message: `.NET SDK` });
await timeout(validateDotNetIsLatest, dependencyTimeout, dependenciesVersions?.dotnet);
await setDotNetCommand();
await setDotNetCommand(context);
});
ext.outputChannel.appendLog(
localize(
Expand Down
52 changes: 29 additions & 23 deletions apps/vs-code-designer/src/app/utils/dotnet/dotnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import { ext } from '../../../extensionVariables';
import { localize } from '../../../localize';
import { executeCommand } from '../funcCoreTools/cpUtils';
import { runWithDurationTelemetry } from '../telemetry';
import { getGlobalSetting, updateGlobalSetting } from '../vsCodeConfig/settings';
import { findFiles } from '../workspace';
import { tryGetFunctionProjectRoot } from '../verifyIsProject';
import { getGlobalSetting, updateGlobalSetting, updateWorkspaceSetting } from '../vsCodeConfig/settings';
import { findFiles, getWorkspaceFolder } from '../workspace';
import type { IActionContext } from '@microsoft/vscode-azext-utils';
import { AzExtFsExtra } from '@microsoft/vscode-azext-utils';
import type { IWorkerRuntime } from '@microsoft/vscode-extension';
Expand Down Expand Up @@ -220,7 +221,7 @@ export function getDotNetCommand(): string {
return command;
}

export async function setDotNetCommand(): Promise<void> {
export async function setDotNetCommand(context: IActionContext): Promise<void> {
const binariesLocation = getGlobalSetting<string>(autoRuntimeDependenciesPathSettingKey);
const dotNetBinariesPath = path.join(binariesLocation, dotnetDependencyName);
const binariesExist = fs.existsSync(dotNetBinariesPath);
Expand All @@ -235,31 +236,36 @@ export async function setDotNetCommand(): Promise<void> {
fs.chmodSync(dotNetBinariesPath, 0o777);

try {
const terminalConfig = vscode.workspace.getConfiguration();
const pathEnv = {
PATH: newPath,
};
if (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0) {
const workspaceFolder = await getWorkspaceFolder(context);
const projectPath = await tryGetFunctionProjectRoot(context, workspaceFolder);

// Required for dotnet cli in VSCode Terminal
switch (process.platform) {
case Platform.windows: {
terminalConfig.update('terminal.integrated.env.windows', pathEnv, vscode.ConfigurationTarget.Workspace);
break;
}
if (projectPath) {
const pathEnv = {
PATH: newPath,
};

case Platform.linux: {
terminalConfig.update('terminal.integrated.env.linux', pathEnv, vscode.ConfigurationTarget.Workspace);
break;
}
// Required for dotnet cli in VSCode Terminal
switch (process.platform) {
case Platform.windows: {
await updateWorkspaceSetting('integrated.env.windows', pathEnv, projectPath, 'terminal');
break;
}

case Platform.mac: {
terminalConfig.update('terminal.integrated.env.osx', pathEnv, vscode.ConfigurationTarget.Workspace);
break;
case Platform.linux: {
await updateWorkspaceSetting('integrated.env.linux', pathEnv, projectPath, 'terminal');
break;
}

case Platform.mac: {
await updateWorkspaceSetting('integrated.env.osx', pathEnv, projectPath, 'terminal');
break;
}
}
// Required for CoreClr
await updateWorkspaceSetting('dotNetCliPaths', [dotNetBinariesPath], projectPath, 'omnisharp');
}
}

// Required for CoreClr
terminalConfig.update('omnisharp.dotNetCliPaths', [dotNetBinariesPath], vscode.ConfigurationTarget.Workspace);
} catch (error) {
console.log(error);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/vs-code-designer/src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-azurelogicapps",
"displayName": "Azure Logic Apps (Standard)",
"version": "2.87.0",
"version": "2.88.0",
"aiKey": "setInGitHubBuild",
"repository": "https://github.com/Azure/LogicAppsUX",
"main": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion libs/chatbot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/logic-apps-chatbot",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../dist/libs/chatbot"
},
Expand Down
2 changes: 1 addition & 1 deletion libs/data-mapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/logic-apps-data-mapper",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../dist/libs/data-mapper"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/designer-ui",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../dist/libs/designer-ui"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const OperationSearchCard = (props: OperationSearchCardProps) => {
className="msla-op-search-card-container"
onClick={() => onCardClick()}
style={style}
data-automation-id={`msla-op-search-result-${convertUIElementNameToAutomationId(title)}`}
data-automation-id={`msla-op-search-result-${convertUIElementNameToAutomationId(operationActionData.id)}`}
aria-label={`${title} ${description}`}
>
<div className="msla-op-search-card-color-line" style={{ background: brandColor }} />
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/logic-apps-designer",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../dist/libs/designer"
},
Expand Down
2 changes: 1 addition & 1 deletion libs/parsers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/parsers-logic-apps",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../dist/libs/parsers"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/services/designer-client-services/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/designer-client-services-logic-apps",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../../dist/libs/services/designer-client-services"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/services/designer-client-services/src/lib/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface IGatewayService {
/**
* Gets configuration values for GatewayService.
*/
getConfig?(): Promise<GatewayServiceConfig>;
getConfig?(): GatewayServiceConfig;
}

export interface GatewayServiceConfig {
Expand Down
2 changes: 1 addition & 1 deletion libs/services/intl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/intl-logic-apps",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../../dist/libs/services/intl"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/utils-logic-apps",
"version": "2.87.0",
"version": "2.88.0",
"scripts": {
"yalcpush": "yalc push ../../dist/libs/utils"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@microsoft/vscode-extension-logic-apps",
"version": "2.87.0"
"version": "2.88.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/logicappsux",
"version": "2.87.0",
"version": "2.88.0",
"license": "MIT",
"scripts": {
"start": "nx serve",
Expand Down

0 comments on commit 89cb06c

Please sign in to comment.