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

fix(lookup): cancel note creation during "Create Note with Template" if template was not selected #3645

Merged
merged 2 commits into from Oct 10, 2022

Conversation

hikchoi
Copy link
Contributor

@hikchoi hikchoi commented Oct 7, 2022

fix(lookup): cancel note creation during "Create Note with Template" if template was not selected

This PR:

  • fixes an issue where Create Note with Template will create an empty note even when no template is selected.
  • also fixes an issue where the an empty note was assumed as a template when the user hits enter while the template selector quickpick showed no select-able items.
    • this was caused because note lookup provider will assume "Create New" as a selection when selectedItems is an empty list.

Pull Request Checklist

Code

Basics

Extended

  • General
    • check whether code be simplified
    • check if similar function already exist in the codebase. if so, can it be re-used?
    • check if this change adversely impact performance
  • Operations
    • when shipping this change, will it just work or will it introduce additional operational overhead due to complicated interface or known bugs?
  • Architecture
    • [~] check if code is introducing changes on a foundational class or interface. if so, call for design review if needed

Instrumentation

Basics

  • [~] if you are adding analytics related changes, make sure the Telemetry docs are updated

Extended

Tests

Basics

Extended

  • [~] If you are adding a new language feature (graphically visible in VS Code/preview/publishing), an example is included in the test workspace
  • CSS
    • [~] display is correct for following dimensions
      • [~] sm: screen ≥ 576px, eg. iphonex, (375x812)
      • [~] lg: screen ≥ 992px
      • [~] xxl: screen ≥ 1600px eg. mac (1600x900)
    • [~] display is correct for following browsers (across the various dimensions)
      • [~] safari
      • [~] firefox
      • [~] chrome

Docs

  • [~] if your change reflects documentation changes, also submit a PR to dendron-site and mention the doc PR link in your current PR
  • [~] does this change introduce a new or better way of doing things that others need to be aware of? if so, an async should be created and a process added in Development or Packages

Close the Loop

Extended

  • [~] is this a developer BREAKING change? if another person cloning from this branch will need to adjust their dependencies or mental model of the architecture, then it is. if this is the case, make sure this is communicated according to Close Loop

@hikchoi hikchoi merged commit 5f1b1e7 into master Oct 10, 2022
@hikchoi hikchoi deleted the fix/create-note-with-template-cancel branch October 10, 2022 07:02
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

5 participants