-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improved the API Remote connection, UI and refactored the source code #16
Improved the API Remote connection, UI and refactored the source code #16
Conversation
Suggested upgrading to version 0.0.5
# SemVer format -> https://semver.org | ||
pluginVersion=0.0.4 | ||
|
||
pluginVersion=0.0.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an important change.
@@ -44,7 +44,7 @@ jobs: | |||
# Adjust severity of non-security issues | |||
gh-code-scanning-compat: true | |||
# Force 0 exit code to allow SARIF file generation | |||
# This will handover control about PR rejection to the GitHub side | |||
# This will hand over control about PR rejection to the GitHub side |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed typo
## [0.0.5] | ||
|
||
### Added | ||
|
||
- Added listeners when a file or folder is created, modified, copied, renamed, deleted or moved | ||
- Added ToDo's list. | ||
|
||
### Changed | ||
|
||
- Updated README with specific instructions about how to use the plugin | ||
- Updated Plugin org.jetbrains.intellij to 1.9.0 | ||
- Updated the notifications using emojis and given more information in the message | ||
- Refactored the source code | ||
|
||
### Fixed | ||
|
||
- Fixed typos in SECURITY markdown. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new changes for the suggested version 0.0.5
@@ -10,7 +10,7 @@ plugins { | |||
// Kotlin support | |||
id("org.jetbrains.kotlin.jvm") version "1.7.10" | |||
// Gradle IntelliJ Plugin | |||
id("org.jetbrains.intellij") version "1.7.0" | |||
id("org.jetbrains.intellij") version "1.9.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgraded to version 1.9.0; otherwise, it is not building the project.
|
||
APP_NAME="Gradle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constant wasn't used in the whole project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yhea because its a Autogenerated File if you use gradle init
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I restore this line of code in the commit: bd3d1f4.
|
||
class Bitburner { | ||
companion object { | ||
val extensions = arrayListOf("js", "script") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
val extensions = arrayListOf("js", "script", "ns", "txt")
Add justification about why we only can use js
and script
extension file.
- The api-server.js use the function document.saveFile()
- The function saveFile is declared in Electron.tsx. It is using home.writeToScriptFile()
- The function home.writeToScriptFile() is declared in BaseServer.ts which make two validations one of this is the function isScriptFilename().
- The function isScriptFilename() is declared in isScriptFilename.ts. It only accept two types of files: [
.js
,.script
]- https://github.com/danielyxie/bitburner/blob/f6f023eeb4f9c53452fcb8971f5c4151f369aab6/src/Script/isScriptFilename.ts#L1
export const validScriptExtensions: Array<string> = ['.js', '.script'];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this, i think somewhere written down, just a kinda copy of the VS Code Plugin, i took the list out there and put it in here. This Plugin was develop not much after the Steam Publish so many things were unknown or changed over the time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, it makes sense. You did an impressive job 9 months ago.
so i got back to view a bit. Thanks for filling my inbox. As i had written, I'm not playing that game anymore and i don't work actively on it. Multiple things i saw that i kinda dislike:
Also im a bit annoyed of the multiple messages on every channel. If im not fast enough, or not adding any labels, everyone is free to fork and Publish that Plugin ;) as i said: I'm not actively working on this or play the Game. As often as you Mentioned i should add the Labels, you never said why i should do this. What does it add to the Project? |
First: no need to quickly close this MR.
Normally i know that code that is checked in is already at the improved Quality, there should not be needed to add another pull Request to cleanup things that came in with a previous one, specially if know that it needs fixing
There is no Magic if there is no else branch or further functionality beside that one in the innermost. Example is line 23 for there: you have two if cases which does nothing more than check two different things without any logic between them or if one of them is not true and this is often the case. I consider it bad practices to increase the branching depth because it also reduces readability.
First: not actively Working on it != Dead |
Can I ask a favor? Could you add to the labels
hacktoberfest
,hacktoberfest-accepted
in the pull request?Added new features; Updated a lot of source code.
Suggested upgrading to version 0.0.5
It could be addressed in the issue #9. Could you add the labels
hacktoberfest
,hacktoberfest-accepted
in the issue?The notification changed from a simple message to integrate message with relevant information for example path/file, memory, if it is deleted, created or override. Furthermore, added emojis for better eye hit.
It is working and reflecting in the Bitburner game.