Skip to content

Commit 1574851

Browse files
authored
feat: Apply file decorators to project level (#735)
Signed-off-by: Sheng Chen <[email protected]>
1 parent 61333f2 commit 1574851

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to the "vscode-java-dependency" extension will be documented
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 0.22.0
8+
### Added
9+
- Apply file decorators to project level. [#481](https://github.com/microsoft/vscode-java-dependency/issues/481)
10+
711
## 0.21.2
812
### Fixed
913
- Improve the output of exporting jar tasks. [#699](https://github.com/microsoft/vscode-java-dependency/issues/699)

src/views/dataNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export abstract class DataNode extends ExplorerNode {
2626
item.contextValue = this.computeContextValue();
2727
if (this.uri) {
2828
switch (this._nodeData.kind) {
29+
case NodeKind.Project:
2930
case NodeKind.PackageRoot:
3031
case NodeKind.Package:
3132
case NodeKind.PrimaryType:

test/maven-suite/projectView.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ suite("Maven Project View Tests", () => {
6565
assert.equal(roots?.length, 1, "Number of root node should be 1");
6666
const projectNode = roots![0] as ProjectNode;
6767
assert.equal(projectNode.name, "my-app", "Project name should be \"my-app\"");
68+
const projectTreeItem: vscode.TreeItem = await projectNode.getTreeItem();
69+
assert.ok(projectTreeItem.resourceUri !== undefined, "Project tree item should have resourceUri");
6870

6971
// validate package root/dependency nodes
7072
const packageRoots = await projectNode.getChildren();

0 commit comments

Comments
 (0)