Skip to content

Commit 16f3bed

Browse files
committed
ComponentHierarchyDgml and ShowComponentHierarchy components are now showing a information box instead of outputing to the output channel.
1 parent 717e77b commit 16f3bed

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/commands/componentHierarchyDgml.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ export class ComponentHierarchyDgml {
6565
// Write the prettified xml string to the ReadMe-ProjectStructure.dgml file.
6666
const fsUtils = new FileSystemUtils();
6767
fsUtils.writeFile(path.join(directoryPath, graphFilename), fileContent, () => {
68-
const angularToolsOutput = vscode.window.createOutputChannel("Angular Tools");
69-
angularToolsOutput.clear();
70-
angularToolsOutput.appendLine(`The project structure has been analyzed and a Directed Graph Markup Language (dgml) file has been created\n`);
71-
angularToolsOutput.appendLine('The ReadMe-ProjectStructure.dgml file can now be viewed in Visual Studio\n');
72-
angularToolsOutput.show();
68+
vscode.window.showInformationMessage('The project structure has been analyzed and a Directed Graph Markup Language (dgml) file has been created\nThe ReadMe-ProjectStructure.dgml file can now be viewed in Visual Studio');
7369
});
7470
} catch (ex) {
7571
console.log('exception:' + ex);

src/commands/showComponentHierarchy/showComponentHierarchy.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,7 @@ export class ShowComponentHierarchy {
276276
const newFilePath = path.join(workspaceDirectory, 'ComponentHierarchy.png');
277277
this.fsUtils.writeFile(newFilePath, u8arr, () => {});
278278

279-
const angularToolsOutput = vscode.window.createOutputChannel("Angular Tools");
280-
angularToolsOutput.clear();
281-
angularToolsOutput.appendLine(`The file ComponentHierarchy.png has been created in the root of the workspace.\n`);
282-
angularToolsOutput.show();
279+
vscode.window.showInformationMessage('The file ComponentHierarchy.png has been created in the root of the workspace.');
283280
}
284281
}
285282
}

0 commit comments

Comments
 (0)