-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19920: Support Amalgam versions with 1-based line numbers, MINOR (#12)
- Detect version of Amalgam executable and configure line numbers to be one or zero based. - Corrects issue where private or contained entity scoped label values were not be resolved on mouse over. - Show the ! and ^ symbols for private and contained entity label names in the outline. - Changes default amalgam executable to use -st postfix. - Updates snippets. --------- Co-authored-by: howsoRes <144272317+howsoRes@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
125 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { exec } from "child_process"; | ||
|
||
/** | ||
* Call Amalgam binary to run a one off command. | ||
* @param executable The path to the Amalgam executable. | ||
* @param args The command line arguments. | ||
* @returns The stdout result. | ||
*/ | ||
export const executeCommand = (executable: string, args: string): Promise<string> => { | ||
return new Promise((resolve, reject) => { | ||
exec(`"${executable}" ${args}`, (error, stdout, stderr) => { | ||
if (error) { | ||
reject(`error: ${error.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
reject(`stderr: ${stderr}`); | ||
return; | ||
} | ||
resolve(stdout); | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters