Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

export const EXTENSION_DISPLAY_NAME: string = 'Debug Certificate Manager';

export const EXTENSION_ID: string = 'RushStack.debug-certificate-manager';
export const EXTENSION_ID: string = '@ext:ms-RushStack.debug-certificate-manager';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: @ext is a setting prefix to look for extension id and not part of the extension id itself. consider renaming the const to SETTINGS_EXTENSION_ID_FILTER or keep the string concatenation in extention.ts

Also, See if you can source this info from the extension manifest to avoid future issues like this. We can also start using that pattern for other vscode extensions here.

import packageJson from '../package.json';
// ....
export const EXTENSION_ID: string = `${packageJson.publisher}.${packageJson.name}`

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or something like

import packageJson from '../package.json';
// ....
export const EXTENSION_ID: string = `${packageJson.publisher}.${packageJson.name}`;
export const VSCODE_SETTINGS_EXTENSION_ID_FILTER = `@ext:${EXTENSION_ID}`;


export const COMMAND_PREFIX: string = 'debugCertificateManager';
export const COMMAND_SYNC: string = `${COMMAND_PREFIX}.sync`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export function activate(context: vscode.ExtensionContext): void {
}

async function handleShowSettings(): Promise<void> {
await vscode.commands.executeCommand(VSCODE_COMMAND_WORKSPACE_OPEN_SETTINGS, `@ext:${EXTENSION_ID}`);
await vscode.commands.executeCommand(VSCODE_COMMAND_WORKSPACE_OPEN_SETTINGS, EXTENSION_ID);
}

async function handleSync(): Promise<void> {
Expand Down