Wrong folder on save

Open
#160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
json, typescript
Domain
desktop, tooling

Research direction

Reproduce the reported sequence in the map editor: open and save JSON files from different directories, then check which directory the save dialog opens. Find the load and save entry points and trace how the current file path is retained. Done means saving the second file opens its directory; the issue names no specific files or tests.

Written by the indexing model from the issue text.

Description

bug internal

By @keanuplayz via Discord:

On top of that, the map editor continuously forgets what file I opened.
Issue:

  1. Click load map, and load a mod's json file
  2. Edit it, save it
  3. Open another json file in another directory
  4. After clicking save, the map editor automatically opens the... previous file's directory, which requires me to manually move to the directory I'm working in now

Expected:

  1. Click load map, and load a mod's json file
  2. Edit it, save it
  3. Open another json file in another directory
  4. After clicking save, the map editor opens the directory of the file you were editing so you can immediately save to the correct location.
Dominant language
TypeScript
Stars
59
Forks
19
Avg merge
32m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CCDirectLink/crosscode-map-editor

All issues in CCDirectLink/crosscode-map-editor

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.