-
Notifications
You must be signed in to change notification settings - Fork 323
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
URL handling #6243
URL handling #6243
Conversation
# Conflicts: # app/ide-desktop/lib/client/src/authentication.ts
not explicitly approving since it'd be good to have another pair of eyes on this. also not sure this will work on linux (since it uses appimages) so i might try QAing this? |
encountered a bug while testing so this took a while.
|
there were also two zombie |
@somebody1234 |
export function onOpenUrl(url: URL, window: () => electron.BrowserWindow) { | ||
logger.log(`Received 'open-url' event for '${url.toString()}'.`) | ||
if (url.protocol !== `${common.DEEP_LINK_SCHEME}:`) { | ||
logger.error(`${url.toString()} is not a deep link, ignoring.`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${url.toString()}
should be quoted.
@@ -146,6 +148,29 @@ export function handleOpenFile(openedFile: string): string { | |||
} | |||
logger.error(e) | |||
electron.dialog.showErrorBox(common.PRODUCT_NAME, message) | |||
// eslint-disable-next-line no-restricted-syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@somebody1234 why we still need such strange linter config in code? I remember we were talking about fixing linter config some time ago and making such annotations not needed anymore. What is the status of this topic? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the cause of this specific one is bad eslint config, it should be able to be removed once #6267 is merged
QA 🟢 @mwu-tow I was able to make it finally running on my Windows.. We may think on some loader animation or at least disabling the button while user is waiting for the browser to open.. Other than that great work and thank you for making it running |
# Conflicts: # app/ide-desktop/lib/client/src/file-associations.ts
if (!electron.app.requestSingleInstanceLock()) { | ||
const message = 'Another instance of the application is already running. Exiting.' | ||
logger.error(message) | ||
// eslint-disable-next-line no-restricted-syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be redundant too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one seems to be still required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yeah, my bad - i think you can suppress it by explicitly doing else { return }
though
i haven't |
* develop: Turn null into UnexpectedExpression when Union type is incomplete (#6415) Ensure that IO.println does not fail if `to_text` returned a non-Text value. (#6223) Improve inlining of `<|` on (GraalVM EE) (#6384) Feat: update templates styles and feature (#6071) 5127 Add Table.parse_to_columns to parse a single column to a set of columns. (#6383) URL handling (#6243) Exclude comparison operators from modifier logic (#6370) Better cleanup of project management test suite (#6392) Fix all eslint errors (#6267) Infer SQLite types locally (#6381) Vector Editor with List Editor and adding elements. (#6363) Add typechecks to Aggregate and Cross Tab (#6380) Forbid edits in read-only mode (#6342) Add Table.parse_text_to_table to convert Text to a Table. (#6294) Adding typechecks to Column Operations (#6298) Rollback cloud options groups (#6331) Project folder not renamed after project name change (#6369) Add `replace`, `trim` to Column. Better number parsing. (#6253) Read-only mode for controllers (#6259) Prevent default for all events, fixing multiple IDE bugs (#6364)
This PR fixes #5239 by supporting the Windows-style of URL handling to support deep linking. Windows spawns a new process for each URL, rather than sending a 'open-url' event to the existing process. Now the differences between the two platforms should be abstracted away.
Pull Request Description
This PR fixes #5239 by supporting the Windows-style of URL handling to support deep linking.
Windows spawns a new process for each URL, rather than sending a 'open-url' event to the existing process. Now the differences between the two platforms should be abstracted away.
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.