also set .Repository link
This commit is contained in:
parent
7b045444bd
commit
beda83957b
2 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
<% if (links.repository) { %>
|
<% if (links.repository) { %>
|
||||||
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="${ links.repository }" />
|
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="${ links.repository }" />
|
||||||
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="${ links.repository }" />
|
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="${ links.repository }" />
|
||||||
|
<Property Id="Microsoft.VisualStudio.Services.Links.Repository" Value="${ links.repository }" />
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (links.bugs) { %><Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="${ links.bugs }" /><% } %>
|
<% if (links.bugs) { %><Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="${ links.bugs }" /><% } %>
|
||||||
<% if (links.homepage) { %><Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="${ links.homepage }" /><% } %>
|
<% if (links.homepage) { %><Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="${ links.homepage }" /><% } %>
|
||||||
|
|
|
@ -293,6 +293,7 @@ describe('toVsixManifest', () => {
|
||||||
const properties = result.PackageManifest.Metadata[0].Properties[0].Property.map(p => p.$);
|
const properties = result.PackageManifest.Metadata[0].Properties[0].Property.map(p => p.$);
|
||||||
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Source' && p.Value === 'https://github.com/Microsoft/vscode-spell-check.git'));
|
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Source' && p.Value === 'https://github.com/Microsoft/vscode-spell-check.git'));
|
||||||
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Getstarted' && p.Value === 'https://github.com/Microsoft/vscode-spell-check.git'));
|
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Getstarted' && p.Value === 'https://github.com/Microsoft/vscode-spell-check.git'));
|
||||||
|
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Repository' && p.Value === 'https://github.com/Microsoft/vscode-spell-check.git'));
|
||||||
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Support' && p.Value === 'https://github.com/Microsoft/vscode-spell-check/issues'));
|
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Support' && p.Value === 'https://github.com/Microsoft/vscode-spell-check/issues'));
|
||||||
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Learn' && p.Value === 'https://github.com/Microsoft/vscode-spell-check'));
|
assert.ok(properties.some(p => p.Id === 'Microsoft.VisualStudio.Services.Links.Learn' && p.Value === 'https://github.com/Microsoft/vscode-spell-check'));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue