-
Notifications
You must be signed in to change notification settings - Fork 1k
[Mac] Use NSAppleScript instead of Carbon to spawn the terminal process #6215
base: main
Are you sure you want to change the base?
Conversation
: base (GetFullMessage (error, returnValue)) | ||
static class NSAppleScriptError | ||
{ | ||
public const string Number = "NSAppleScriptErrorNumber"; |
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.
@mhutch Ah, of course. |
var dict = new Dictionary<string, string> (); | ||
DecodeDescriptor (result, dict); | ||
|
||
if (result == null) { |
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.
I should probably check null before I try to decode...
0bd4940
to
d0166a5
Compare
@iainx Can you explain what does this fix? Can we have a work item for it? |
It doesn't fix anything really, it just removes some old complicated Carbon code. |
Ok, I'm not qualified to review this, somebody else will have to. |
I've made a user story for removing carbon code, and added this as a task under it https://devdiv.visualstudio.com/DevDiv/_workitems/edit/703355 |
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/703346 is the parent user story |
We can break API in release-8.0. We should rebase it on top of that. |
d0166a5
to
779be79
Compare
Uses Cocoa's NSAppleScript class to do all the heavy lifting of compiling and executing the AppleScript code.
Fixes VSTS #703355.