diff --git a/ext-src/KanbnBoardPanel.ts b/ext-src/KanbnBoardPanel.ts index 7e6e5d1..733bf05 100644 --- a/ext-src/KanbnBoardPanel.ts +++ b/ext-src/KanbnBoardPanel.ts @@ -88,7 +88,7 @@ export default class KanbnBoardPanel { vscode.Uri.file(path.join(this._extensionPath, 'node_modules', 'vscode-codicons', 'dist')) ] }); - this._panel.iconPath = { + (this._panel as any).iconPath = { light: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'project_light.svg')), dark: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'project_dark.svg')) }; diff --git a/ext-src/KanbnStatusBarItem.ts b/ext-src/KanbnStatusBarItem.ts index 7ae29a7..b85145a 100644 --- a/ext-src/KanbnStatusBarItem.ts +++ b/ext-src/KanbnStatusBarItem.ts @@ -42,8 +42,8 @@ export default class KanbnStatusBarItem { this._statusBarItem.tooltip = tooltip.join('\n'); this._statusBarItem.command = 'kanbn.board'; } else { - this._statusBarItem.text = '$(project) Not initialised'; - this._statusBarItem.tooltip = 'Click to initialise'; + this._statusBarItem.text = '$(project)'; + this._statusBarItem.tooltip = 'Initialise Kanbn'; this._statusBarItem.command = 'kanbn.init'; } this._statusBarItem.show(); diff --git a/ext-src/KanbnTaskPanel.ts b/ext-src/KanbnTaskPanel.ts index 379ecec..459cc49 100644 --- a/ext-src/KanbnTaskPanel.ts +++ b/ext-src/KanbnTaskPanel.ts @@ -122,7 +122,7 @@ export default class KanbnTaskPanel { vscode.Uri.file(path.join(this._extensionPath, 'node_modules', 'vscode-codicons', 'dist')) ] }); - this._panel.iconPath = { + (this._panel as any).iconPath = { light: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'task_light.svg')), dark: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'task_dark.svg')) }; diff --git a/ext-src/extension.ts b/ext-src/extension.ts index cbf78da..0601b02 100644 --- a/ext-src/extension.ts +++ b/ext-src/extension.ts @@ -7,13 +7,13 @@ let kanbnStatusBarItem: KanbnStatusBarItem; export async function activate(context: vscode.ExtensionContext) { - // Register a command to initialise kanbn in the current workspace. This command will be invoked when the status - // bar item is clicked in a workspace where kanbn isn't already initialised. + // Register a command to initialise Kanbn in the current workspace. This command will be invoked when the status + // bar item is clicked in a workspace where Kanbn isn't already initialised. context.subscriptions.push(vscode.commands.registerCommand('kanbn.init', async () => { // If no workspace folder is opened, we can't initialise kanbn if (vscode.workspace.workspaceFolders === undefined) { - vscode.window.showErrorMessage('You need to open a workspace before initialising kanbn.'); + vscode.window.showErrorMessage('You need to open a workspace before initialising Kanbn.'); return; } @@ -41,7 +41,7 @@ export async function activate(context: vscode.ExtensionContext) { await kanbn.initialise({ name: newProjectName }); - vscode.window.showInformationMessage(`Initialised kanbn project '${newProjectName}'.`); + vscode.window.showInformationMessage(`Initialised Kanbn project '${newProjectName}'.`); KanbnBoardPanel.update(); } kanbnStatusBarItem.update(); @@ -53,7 +53,7 @@ export async function activate(context: vscode.ExtensionContext) { // If no workspace folder is opened, we can't open the kanbn board if (vscode.workspace.workspaceFolders === undefined) { - vscode.window.showErrorMessage('You need to open a workspace before viewing the kanbn board.'); + vscode.window.showErrorMessage('You need to open a workspace before viewing the Kanbn board.'); return; } @@ -70,7 +70,7 @@ export async function activate(context: vscode.ExtensionContext) { ); KanbnBoardPanel.update(); } else { - vscode.window.showErrorMessage('You need to initialise kanbn before viewing the kanbn board.'); + vscode.window.showErrorMessage('You need to initialise Kanbn before viewing the Kanbn board.'); } kanbnStatusBarItem.update(); })); @@ -98,7 +98,7 @@ export async function activate(context: vscode.ExtensionContext) { null ); } else { - vscode.window.showErrorMessage('You need to initialise kanbn before adding a new task.'); + vscode.window.showErrorMessage('You need to initialise Kanbn before adding a new task.'); } }));