Restrictions on string lengths

Applies to: yesVisual Studio noVisual Studio for Mac noVisual Studio Code

The Source Control Plug-in API limits the lengths of strings used in various functions.

String length values

Constant Value
SCC_NAME_LEN 31
SCC_AUXLABEL_LEN 31
SCC_USER_LEN 31
SCC_PRJPATH_LEN 300

Note

Length does not include the terminating null. Other constants with a "_SIZE" suffix instead of "_LEN" do include space for the terminating null.

Constant Value
SCC_NAME_SIZE 32
SCC_AUXLABEL_SIZE 32
SCC_USER_SIZE 32
SCC_PRJPATH_SIZE 301

See also