Rename the new-diagram command to Archify | New Diagram…
This commit is contained in:
@@ -97,11 +97,11 @@ export async function run(): Promise<void> {
|
||||
assert.ok(diagnostics[0].range.start.line >= 2, `reported on line ${diagnostics[0].range.start.line + 1}`);
|
||||
});
|
||||
|
||||
await check('New Diagram Archify creates a .archify file from a template and opens the diagram', async () => {
|
||||
await check('Archify | New Diagram creates a .archify file from a template and opens the diagram', async () => {
|
||||
// Menus show the bare title, so it must name Archify by itself.
|
||||
const commands = vscode.extensions.getExtension(EXTENSION_ID)?.packageJSON.contributes.commands as { command: string; title: string; category?: string }[];
|
||||
const newDiagram = commands.find((item) => item.command === 'archify.newDiagram');
|
||||
assert.equal(newDiagram?.title, 'New Diagram Archify…');
|
||||
assert.equal(newDiagram?.title, 'Archify | New Diagram…');
|
||||
assert.equal(newDiagram?.category, undefined);
|
||||
const folder = workspaceFile('.');
|
||||
// Stub the template pick and the name prompt; check the name validation on the way.
|
||||
|
||||
Reference in New Issue
Block a user