Skip to content

Commit

Permalink
Update links. Part of microsoft/vscode-docs#2165
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Dec 17, 2018
1 parent 6d58bca commit dd383c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -9,6 +9,6 @@

### About

This tool assists in publishing Visual Studio Code extensions.
This tool assists in packaging and publishing Visual Studio Code extensions.

Read the [**Documentation**](https://code.visualstudio.com/docs/extensions/publish-extension) at VS Code's repository.
Read the [**Documentation**](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code website.
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -23,7 +23,7 @@ function fatal<T>(message: any, ...args: any[]): void {

if (/Unauthorized\(401\)/.test(message)) {
console.error(`Be sure to use a Personal Access Token which has access to **all accessible accounts**.
See https://code.visualstudio.com/docs/tools/vscecli#_common-questions for more information.`);
See https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publishing-extensions for more information.`);
}

process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion src/package.ts
Expand Up @@ -230,7 +230,7 @@ class ManifestProcessor extends BaseProcessor {

async onEnd(): Promise<void> {
if (this.manifest.publisher === 'vscode-samples') {
throw new Error('It\'s not allowed to use the \'vscode-samples\' publisher. Learn more at: https://code.visualstudio.com/docs/extensions/publish-extension.');
throw new Error('It\'s not allowed to use the \'vscode-samples\' publisher. Learn more at: https://code.visualstudio.com//api/working-with-extensions/publishing-extension.');
}

if (!this.manifest.repository) {
Expand Down
4 changes: 2 additions & 2 deletions src/validation.ts
Expand Up @@ -4,11 +4,11 @@ const nameRegex = /^[a-z0-9][a-z0-9\-]*$/i;

export function validatePublisher(publisher: string): void {
if (!publisher) {
throw new Error(`Missing publisher name. Learn more: https://code.visualstudio.com/docs/extensions/publish-extension#_publishing-extensions`);
throw new Error(`Missing publisher name. Learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publishing-extensions`);
}

if (!nameRegex.test(publisher)) {
throw new Error(`Invalid publisher name '${publisher}'. Expected the identifier of a publisher, not its human-friendly name. Learn more: https://code.visualstudio.com/docs/extensions/publish-extension#_publishing-extensions`);
throw new Error(`Invalid publisher name '${publisher}'. Expected the identifier of a publisher, not its human-friendly name. Learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publishing-extensions`);
}
}

Expand Down

0 comments on commit dd383c6

Please sign in to comment.