Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vscode): Fix designtime local.settings overwriting #4983

Merged
merged 4 commits into from
Jun 14, 2024

Conversation

ccastrotrejo
Copy link
Contributor

This pull request introduces changes primarily aimed at refactoring the project's settings management, improving code readability, and enhancing the test coverage. The modifications include consolidating imports, replacing hardcoded values with constants, adjusting the structure of local settings, and adding new test cases.

  • Consolidated imports from 'vscode' into a single line.

  • Replaced hardcoded values with constants and expanded the import list for better readability.

  • Similar changes were made as in ScriptProjectCreateStep.ts for code consistency.

  • The local settings structure was adjusted to include a design time flag and improved key-value mapping. The function getLocalSettingsSchema was added to generate the schema based on the project path and design time flag.

  • New test cases were added to verify the correct behavior of the getLocalSettingsSchema function.

  • The settings file content was replaced with the getLocalSettingsSchema function.

  • Removed unused settings file content.

  • Replaced hardcoded settings file content with the getLocalSettingsSchema function.

@ccastrotrejo ccastrotrejo changed the title fix(vscode): Fix designtime local.settings overwritting fix(vscode): Fix designtime local.settings overwriting Jun 14, 2024
@ccastrotrejo ccastrotrejo merged commit b010740 into main Jun 14, 2024
12 checks passed
@ccastrotrejo ccastrotrejo deleted the ccastrotrejo/localSettingsFix branch June 14, 2024 18:18
@ccastrotrejo ccastrotrejo linked an issue Jun 14, 2024 that may be closed by this pull request
ccastrotrejo added a commit that referenced this pull request Jun 24, 2024
* Add function to get local.settings schema

* Add test for local settings schema

* Redirect import to node_modules
ccastrotrejo added a commit that referenced this pull request Jun 24, 2024
* fix(vscode): Fix designtime local.settings overwriting  (#4983)

* Add function to get local.settings schema

* Add test for local settings schema

* Redirect import to node_modules

* fix(vscode): Update bundle dependencies to dotnetVersions (#5014)

Update bundle dependencies to dotnetVersions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logic App Standard Designer won't open in VS Code/Chrome
2 participants