Skip to content

Commit ddc34d4

Browse files
committed
Save all file documents upon building
1 parent 047bbc1 commit ddc34d4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Changed
1212
- The build window will now display internal compiler errors as well.
13+
- The build system will now save all documents automatically upon building.
1314

1415
### Fixed
1516
- Fix a bug with script block indentation.

src/main/kotlin/io/runescript/plugin/ide/execution/build/RsBuildInstance.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import com.intellij.openapi.application.ApplicationManager
1212
import com.intellij.openapi.application.invokeLater
1313
import com.intellij.openapi.application.runWriteAction
1414
import com.intellij.openapi.components.service
15+
import com.intellij.openapi.fileEditor.FileDocumentManager
1516
import com.intellij.openapi.module.Module
1617
import com.intellij.openapi.project.Project
1718
import com.intellij.openapi.project.guessModuleDir
@@ -49,6 +50,7 @@ class RsBuildInstance(
4950
ApplicationManager.getApplication().executeOnPooledThread {
5051
executionPublisher.processStarting(executorId, environment)
5152
invokeLater {
53+
FileDocumentManager.getInstance().saveAllDocuments()
5254
openBuildToolWindow()
5355
runWriteAction {
5456
val processHandler = createProcessHandler()

0 commit comments

Comments
 (0)