Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Nov 7, 2023
1 parent 4b82750 commit ba20f48
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/JavaDependenciesManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export async function downloadSpecificCamelKJavaDependencies(
execSync(command);
triggerRefreshOfJavaClasspath(context);
} catch(error) {
console.log(`Error while trying to refresh Java classpath based on file ${uri.fsPath}:\n${error}`);
utils.shareMessage(mainOutputChannel, `Error while trying to refresh Java classpath based on file ${uri.fsPath}:\n${error}`);
}
} else {
Expand Down
12 changes: 0 additions & 12 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,10 @@ export const COMMAND_ID_START_JAVA_DEBUG = 'camelk.integrations.debug.java';
export const COMMAND_ID_CLASSPATH_REFRESH = 'camelk.classpath.refresh';

export async function activate(context: vscode.ExtensionContext) {
console.log('Begin activation');
stashedContext = context;
await telemetry.initializeTelemetry(context);
console.log('telemetry initialized');
camelKIntegrationsProvider = new CamelKNodeProvider(context);
console.log('Noede integration provider initialized');
applyUserSettings();
console.log('user settings applied');
mainOutputChannel = vscode.window.createOutputChannel("Apache Camel K");
registerCamelKSchemaProvider(mainOutputChannel);
myStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);
Expand All @@ -86,9 +82,7 @@ export async function activate(context: vscode.ExtensionContext) {
const tasksJson:vscode.DocumentSelector = { scheme: 'file', language: 'jsonc', pattern: '**/tasks.json' };
vscode.languages.registerCompletionItemProvider(tasksJson, new CamelKTaskCompletionItemProvider());

console.log('task and completion provider registerd');
await installDependencies(context).then ( (): void => {
console.log('in then afer installDepdencies');
createIntegrationsView();

// start the watch listener for auto-updates
Expand Down Expand Up @@ -198,12 +192,9 @@ export async function activate(context: vscode.ExtensionContext) {
await StartJavaDebuggerCommand.start(integrationItem);
telemetry.sendCommandTracking(COMMAND_ID_START_JAVA_DEBUG);
});
console.log('end of then afer installDepdencies');
});

console.log('install depdencies done');
initializeJavaDependenciesManager(context, mainOutputChannel);
console.log('Java dependencies Manager initialized');

vscode.workspace.onDidChangeConfiguration(async (event) => {
await handleChangeRuntimeConfiguration();
Expand Down Expand Up @@ -431,14 +422,11 @@ export async function installDependencies(context: vscode.ExtensionContext) {

async function installDependency(name: string, alreadyGot: boolean, context: vscode.ExtensionContext, installFunc: (context: vscode.ExtensionContext) => Promise<Errorable<null>>): Promise<void> {
if (!alreadyGot) {
console.log(`Installing ${name}...`);
shareMessageInMainOutputChannel(`Installing ${name}...`);
const result: Errorable<null> = await installFunc(context);
if (failed(result)) {
console.log(`Unable to install ${name}: ${result.error[0]}`);
utils.shareMessage(mainOutputChannel, `Unable to install ${name}: ${result.error[0]}`);
} else {
console.log(`Installed ${name}`);
shareMessageInMainOutputChannel('done');
}
}
Expand Down

0 comments on commit ba20f48

Please sign in to comment.