Skip to content
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

Feature/self codes p2 #168

Closed
wants to merge 21 commits into from
Closed

Feature/self codes p2 #168

wants to merge 21 commits into from

Conversation

ajshedivy
Copy link
Collaborator

@ajshedivy ajshedivy commented Nov 16, 2023

Part 2

  • Ability to store self codes into config to they are set when the job starts up
  • If self codes are set, then refresh the error log after every statement into a new view (like a panel at the bottom)
  • Format JSON in result set (
    // Append a text node to the cell
    )

@ajshedivy ajshedivy marked this pull request as ready for review November 27, 2023 21:07
@worksofliam worksofliam changed the base branch from feature/self_codes to main December 5, 2023 20:37
Copy link

github-actions bot commented Dec 6, 2023

👋 A new build is available for this PR based on e37f4ef.

Copy link

github-actions bot commented Jan 3, 2024

👋 A new build is available for this PR based on d402a8e.

Copy link

github-actions bot commented Jan 3, 2024

👋 A new build is available for this PR based on 8140afb.

Copy link

github-actions bot commented Jan 3, 2024

👋 A new build is available for this PR based on 0ba27a8.

Copy link

github-actions bot commented Jan 8, 2024

👋 A new build is available for this PR based on 0423ec2.

@@ -0,0 +1,12 @@
import * as vscode from 'vscode';

class SelfCodesPanelProvider {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used anywhere? There is no export in this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just used later in vscode-db2i.runEditorStatement

Comment on lines 15 to 16
import { SQLJob } from "../../connection/sqlJob";
import LRUCache from "lru-cache";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few unused imports here. These should be removed.

src/views/results/html.ts Show resolved Hide resolved
src/views/results/html.ts Show resolved Hide resolved
src/connection/sqlJob.ts Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 9, 2024

👋 A new build is available for this PR based on 031d49b.

Copy link

👋 A new build is available for this PR based on a345aae.

}
}

class SelfCodePanelProvider {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in a seperate file.

Copy link

👋 A new build is available for this PR based on 6682b89.

Copy link

👋 A new build is available for this PR based on cf5d7db.

let updateView: boolean = false;
let data = [];
for (let count = 0; count < 5; count++) {
const curData = await JobManager.runSQL(content, undefined);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using the JobManager here, you should just use the attached job parameter (job.query)

break;
}
data = curData;
delay(1000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs an await otherwise there's not wait!

Copy link

👋 A new build is available for this PR based on f331d73.

Copy link

👋 A new build is available for this PR based on 705f0e4.

Copy link

👋 A new build is available for this PR based on 1be4d06.

@worksofliam worksofliam self-requested a review February 8, 2024 15:20
Copy link

👋 A new build is available for this PR based on dae4583.

@worksofliam worksofliam marked this pull request as draft March 5, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants