WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@mkslanc
Copy link
Contributor

@mkslanc mkslanc commented Jun 5, 2025

Issue #, if available:

Description of changes:
Add createDiffView wrapper to improve API and allow users to use extension in ace-builds

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Pull Request Checklist:

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR.

@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 98.55072% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.77%. Comparing base (7e53851) to head (ed9b547).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/ext/diff_test.js 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5825      +/-   ##
==========================================
+ Coverage   87.73%   87.77%   +0.03%     
==========================================
  Files         618      620       +2     
  Lines       46046    46096      +50     
  Branches     7549     7559      +10     
==========================================
+ Hits        40400    40461      +61     
+ Misses       5646     5635      -11     
Flag Coverage Δ
unittests 87.77% <98.55%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mkslanc mkslanc marked this pull request as ready for review June 16, 2025 10:45
@github-actions
Copy link

One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR.

type GutterKeyboardEvent = import("ace-code/src/keyboard/gutter_handler").GutterKeyboardEvent;
type HoverTooltip = import("ace-code/src/tooltip").HoverTooltip;
type Tooltip = import("ace-code/src/tooltip").Tooltip;
type PopupManager = import("ace-code/src/tooltip").PopupManager;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional to remove PopupManager from our types here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was on purpose. PopupManager was never exposed as class in code .

src/ext/diff.js Outdated
@@ -0,0 +1,31 @@
var InlineDiffView = require("./diff/inline_diff_view").InlineDiffView;
var DiffView = require("./diff/diff_view").DiffView;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should call this one the split diff view :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I make an alias for that purpose? Or just rename the class?

ace.d.ts Outdated
/**
* Interface representing a model for handling differences between two views or states.
*/
export interface DiffModel {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to add these types into the main ace.d.ts file? Can it be enough to just have these in ace-ext?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we could, but in terms of reusing better to do it through some .d.ts file (and ace-ext.d.ts is auto-generated). The only way to do this with js codebase (which I know) would be making jsdoc with @typedef tag. Also previously all interfaces were centralized in ace.d.ts under Ace namespace, not sure if that approach changed. Just poke me, if you still want it to be @typedef as PromptOptions for example

# Conflicts:
#	ace-internal.d.ts
#	ace.d.ts
@github-actions
Copy link

One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR.

…update usage across modules; add diff ext package tests
@github-actions
Copy link

One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR.

@github-actions
Copy link

One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR.

…functionality; add destroy calls for `diffView`
@github-actions
Copy link

One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR.

@akoreman akoreman merged commit 4310066 into ajaxorg:master Jun 20, 2025
4 checks passed
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.

4 participants