Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ class MemoService(private val project: Project) {
val editor = getActiveEditor(project)
if (editor == null) {
logger.warn("[createMemo] editor가 null이므로 null을 반환합니다.")
return null

return Memo(
content = content,
commitHash = null,
filePath = null,
selectedCodeSnippet = null,
fullCodeSnapshot = null,
selectionStart = null,
selectionEnd = null,
visibleStart = null,
visibleEnd = null
)
}

val selectionModel = editor.selectionModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class MemoServiceTest : BasePlatformTestCase() {

// expect
val memo: Memo? = MemoService(project).createMemo("에디터 없음")
assertNull(memo);
assertNotNull(memo)
}

fun `test 메모 생성 파일경로 없음`() {
Expand Down
Loading