Skip to content

Commit

Permalink
merge with main and minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Nok Lam Chan <[email protected]>
  • Loading branch information
noklam committed Aug 22, 2024
1 parent d1933f1 commit 2e28c02
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
}),
);

context.subscriptions.push(
vscode.commands.registerCommand('kedro.runKedroViz', () => {
KedroVizPanel.createOrShow(context.extensionUri, lsClient);
}),
);

// Log Server information
traceLog(`Name: ${serverInfo.name}`);
Expand Down Expand Up @@ -106,9 +101,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>

traceError(
'Python interpreter missing:\r\n' +
'[Option 1] Select python interpreter using the ms-python.python.\r\n' +
`[Option 2] Set an interpreter using "${serverId}.interpreter" setting.\r\n` +
'Please use Python 3.8 or greater.',
'[Option 1] Select python interpreter using the ms-python.python.\r\n' +
`[Option 2] Set an interpreter using "${serverId}.interpreter" setting.\r\n` +
'Please use Python 3.8 or greater.',
);
};

Expand Down Expand Up @@ -137,6 +132,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
registerCommand('kedro.sendDefinitionRequest', async () => {
await executeServerDefinitionCommand(lsClient);
}),
vscode.commands.registerCommand('kedro.runKedroViz', () => {
KedroVizPanel.createOrShow(context.extensionUri, lsClient);
}),
);

setImmediate(async () => {
Expand Down

0 comments on commit 2e28c02

Please sign in to comment.