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

feat: Able to override settings for workspace through .androidide/settings.json inside project #1788

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

itsvks19
Copy link
Contributor

fixes (#1674)

@itsvks19
Copy link
Contributor Author

I haven't added to customize the action for the app, for example override the task in quick run menu:

{
  "action.quickRun": "bash gradlew run"
}

Because you said that it could be a huge security vulnerability. But I'll add it also if you say.

@itsvks19
Copy link
Contributor Author

And I have only added a few editor settings because I don't think all the settings are necessary.

Copy link
Member

@itsaky itsaky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the issues mentioned, there are unnecessary changes in the files as well (mostly formatting).

Comment on lines +225 to +240
completionsMatchLower = workspaceSettings.completionsMatchLower
drawLeadingWs = workspaceSettings.drawLeadingWs
drawTrailingWs = workspaceSettings.drawTrailingWs
drawInnerWs = workspaceSettings.drawInnerWs
drawEmptyLineWs = workspaceSettings.drawEmptyLineWs
drawLineBreak = workspaceSettings.drawLineBreak
fontSize = workspaceSettings.fontSize
tabSize = workspaceSettings.tabSize
autoSave = workspaceSettings.autoSave
fontLigatures = workspaceSettings.fontLigatures
visiblePasswordFlag = workspaceSettings.visiblePasswordFlag
wordwrap = workspaceSettings.wordwrap
useSoftTab = workspaceSettings.useSoftTab
deleteTabsOnBackspace = workspaceSettings.deleteTabsOnBackspace
stickyScrollEnabled = workspaceSettings.stickyScrollEnabled
pinLineNumbers = workspaceSettings.pinLineNumbers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach is incorrect. You're updating the global IDE preferences here, which will affect other projects as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other project will be affected only once and next time that project also has its own settings.json file then it will be applied while opening the project.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It must not affect anything other than the preferences for that specific project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

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.

None yet

2 participants