You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the following commands, in a terminal, from the Makefile Tools extension code base root folder:
* yarn install will install the dependencies needed to build the extension.
* (optional)yarn global add vsce will install vsce globally to create a VSIX package that you can install.
To compile source changes, run from terminal: yarn compile.
* This is also done automatically by VSCode when requesting to debug the extension via F5.
To build a vsix with your changes, run from terminal: 'vsce package'.
File an issue and a pull request with the change and we will review it.
If the change affects functionality, add a line describing the change to CHANGELOG.md.
Adding and running tests: infrastructure to be finalized.
String Localization
vscode-nls is used to localize strings in TypeScript code. To use vscode-nls, the source file must contain:
For each user-facing string, wrap the string in a call to localize:
constreadmeMessage: string=localize("refer.read.me","Please refer to {0} for troubleshooting information. Issues can be created at {1}",readmePath,"https://github.com/Microsoft/vscode-makefile-tools/issues");
The first parameter to localize should be a unique key for that string, not used by any other call to localize() in the file unless representing the same string. The second parameter is the string to localize. Both of these parameters must be string literals. Tokens such as {0} and {1} are supported in the localizable string, with replacement values passed as additional parameters to localize().