Skip to content

Add Project Year to Dependency View #758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 3 additions & 2 deletions vscode-wpilib/src/dependencyView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {
const scriptUri = createUri(`media/main.js`);
const styleUri = createUri(`media/main.css`);
const codiconUri = createUri(`media/icons.css`);
const projectYear = this.wp ? this.externalApi.getPreferencesAPI().getPreferences(this.wp).getProjectYear() : 'Unknown';

// Return the complete HTML
return `
Expand All @@ -560,8 +561,8 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {
<div class="top-line">
<vscode-button id="updateall-action">Update All</vscode-button>
</div>
<vscode-collapsible title="Installed Dependencies" id="installed-dependencies" open></vscode-collapsible>
<vscode-collapsible title="Available Dependencies" id="available-dependencies" open></vscode-collapsible>
<vscode-collapsible title="Installed Dependencies: ${projectYear}" id="installed-dependencies" open></vscode-collapsible>
<vscode-collapsible title="Available Dependencies: ${projectYear}" id="available-dependencies" open></vscode-collapsible>
<script src="${scriptUri}"></script>
</body>
</html>
Expand Down