Skip to content

Commit 8b6493c

Browse files
authored
Merge branch 'main' into cs/issue-145
2 parents c5ebc06 + 1574851 commit 8b6493c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

+4
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

+1
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

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ suite("Maven Project View Tests", () => {
6767
assert.equal(roots?.length, 1, "Number of root node should be 1");
6868
const projectNode = roots![0] as ProjectNode;
6969
assert.equal(projectNode.name, "my-app", "Project name should be \"my-app\"");
70+
const projectTreeItem: vscode.TreeItem = await projectNode.getTreeItem();
71+
assert.ok(projectTreeItem.resourceUri !== undefined, "Project tree item should have resourceUri");
7072

7173
// validate package root/dependency nodes
7274
const projectChildren = await projectNode.getChildren();

0 commit comments

Comments
 (0)