Skip to content

Commit

Permalink
Remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
LightFLP committed Jan 15, 2024
1 parent da7fdf4 commit 43a748b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class EditorProvider implements vscode.CustomTextEditorProvider {

if (fileUri && fileUri[0]) {
const filePath = fileUri[0].fsPath;
console.log('Selected file: ' + filePath);

webviewPanel.webview.postMessage({
type: 'loadedStructureDefinition',
structureDefinition: fs.existsSync(filePath) ? JSON.parse(fs.readFileSync(filePath, {encoding: 'utf8'})) : []
Expand Down
6 changes: 1 addition & 5 deletions src/viewer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class App extends React.Component<Props, State> {
handleStructureDialog(isClosing: boolean) {
if (isClosing === true) {
this.handleStructureUpdate(isClosing);
console.log(this.state.logFileAsString)

} else {
const { logFile, rowProperties, rules, showStructureDialog } = this.state;

Expand All @@ -277,14 +277,10 @@ export default class App extends React.Component<Props, State> {
}

handleSavingStuctureDefinition(structureDefinition: string) {
console.log("Saving definition - in App");
// console.log(structureDefinition);
this.vscode.postMessage({ type: "saveStructureDefinition", structureDefinition: structureDefinition});
}

handleLoadingStructureDefinition() {
console.log("Loading definition - in App");
// console.log(structureDefinition);
this.vscode.postMessage({ type: "loadStructureDefinition"});
}

Expand Down
6 changes: 0 additions & 6 deletions src/viewer/structures/StructureDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ export default class StructureDialog extends React.Component<Props, State> {
nextState.isStructureMatching,
);

console.log("isLoadingStructureDefinition", isLoadingStructureDefinition);

if (
isLoadingStructureDefinition ||
arelogHeaderColumnsUpdating ||
Expand Down Expand Up @@ -494,7 +492,6 @@ export default class StructureDialog extends React.Component<Props, State> {
}

saveStructureDefinition() {
console.log("Saving structure definition");
const {structureHeaderColumns, structureHeaderColumnsTypes, structureEntries, wildcards} = this.state;
const {onStructureDefinitionSave} = this.props;

Expand All @@ -505,7 +502,6 @@ export default class StructureDialog extends React.Component<Props, State> {
}

loadStructureDefinition() {
console.log("Loading structure definition");
this.props.onStructureDefinitionLoad();
this.setState({isLoadingStructureDefintion:true});
}
Expand All @@ -517,8 +513,6 @@ export default class StructureDialog extends React.Component<Props, State> {
const wildcardsCopy = cloneDeep(wildcards);
const contextMenuItems = this.getContextMenuItems();

console.log(structureEntriesCopy);

const CustomWidthTooltip = styled(({ className, ...props }: TooltipProps) => (
<Tooltip {...props} classes={{ popper: className }} />
))({
Expand Down

0 comments on commit 43a748b

Please sign in to comment.