diff --git a/.gitignore b/.gitignore
index c1edce9..f41630f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -136,6 +136,9 @@ _TeamCity*
*.coverage
*.coveragexml
+# Visual Studio code extension
+out/
+
# NCrunch
_NCrunch_*
.*crunch*.local.xml
@@ -221,7 +224,7 @@ ClientBin/
*.publishsettings
orleans.codegen.cs
-# Including strong name files can present a security risk
+# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
@@ -317,7 +320,7 @@ __pycache__/
# OpenCover UI analysis results
OpenCover/
-# Azure Stream Analytics local run output
+# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
@@ -326,7 +329,7 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser
-# MFractors (Xamarin productivity tool) working folder
+# MFractors (Xamarin productivity tool) working folder
.mfractor/
### macOS ###
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d18832b..0c6d350 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# Change Log
+## v0.2
+- Add more text to start view of extension
+- Fix import issue with umlauts under Windows (see #5)
+- Fix issue with page numbering by matuc (see #6)
+- Add more information to clone sucess (see #7)
## v0.1
- Initial release
\ No newline at end of file
diff --git a/out/editorFunctions.js b/out/editorFunctions.js
deleted file mode 100644
index 5753753..0000000
--- a/out/editorFunctions.js
+++ /dev/null
@@ -1,576 +0,0 @@
-"use strict";
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * @author Lucas Vogel
- */
-const vscode = require("vscode");
-const helper_1 = require("./helper/helper");
-const languages_1 = require("./languages");
-const imageHelper_1 = require("./helper/imageHelper");
-const matucCommands_1 = require("./matucCommands");
-const editorFunctionsSnippets_1 = require("./snippets/editorFunctionsSnippets");
-const tableHelper_1 = require("./helper/tableHelper");
-const Papa = require("papaparse");
-const path = require("path");
-const listHelper_1 = require("./helper/listHelper");
-const insertHelper_1 = require("./helper/insertHelper");
-const headlineHelper_1 = require("./helper/headlineHelper");
-const settingsHelper_1 = require("./helper/settingsHelper");
-/**
- * The Main Class to add Buttons and their functionality of the Editor Tools Bar.
- */
-class EditorFunctions {
- constructor(taskbarCallback, sidebarCallback, context) {
- /**
- * Setup of the Editor Functions. Here taskbar edit-buttons can be added.
- */
- this.setup = () => {
- this._taskbarCallback.addButton("bold.svg", this._language.get("bold"), this.bold, this._language.get("emphasis"), "agsbs.bold");
- this._taskbarCallback.addButton("italic.svg", this._language.get("italic"), this.italic, this._language.get("emphasis"), "agsbs.italic");
- this._taskbarCallback.addButton("strikethrough.svg", this._language.get("strikethrough"), this.strikethrough, this._language.get("emphasis"), "agsbs.strikethrough");
- this._taskbarCallback.addButton("h.svg", this._language.get("headline"), this.headline, this._language.get("headline"), "agsbs.h");
- this._taskbarCallback.addButton("h1.svg", this._language.get("headline1"), this.h1, this._language.get("headline"), "agsbs.h1");
- this._taskbarCallback.addButton("h2.svg", this._language.get("headline2"), this.h2, this._language.get("headline"), "agsbs.h2");
- this._taskbarCallback.addButton("h3.svg", this._language.get("headline3"), this.h3, this._language.get("headline"), "agsbs.h3");
- this._taskbarCallback.addButton("h4.svg", this._language.get("headline4"), this.h4, this._language.get("headline"), "agsbs.h4");
- this._taskbarCallback.addButton("h5.svg", this._language.get("headline5"), this.h5, this._language.get("headline"), "agsbs.h5");
- this._taskbarCallback.addButton("h6.svg", this._language.get("headline6"), this.h6, this._language.get("headline"), "agsbs.h6");
- this._taskbarCallback.addButton('numbered_list.svg', this._language.get('orderedList'), this.orderedList, this._language.get('list'), "agsbs.numberedList");
- this._taskbarCallback.addButton('list.svg', this._language.get('unorderedList'), this.unorderedList, this._language.get('list'), "agsbs.list");
- this._taskbarCallback.addButton('table.svg', this._language.get('insertTable'), this.insertTable, this._language.get('table'), "agsbs.table");
- this._taskbarCallback.addButton('import_table_csv.svg', this._language.get('importTableCsv'), this.insertCSVTable, this._language.get('table'), "agsbs.importTableCSV");
- this._taskbarCallback.addButton("edit_table.svg", this._language.get("editTable"), this.editTable, this._language.get("table"), "agsbs.editTable");
- this._taskbarCallback.addButton("formula.svg", this._language.get("formula"), this.formula, this._language.get("formatting"), "agsbs.formula");
- this._taskbarCallback.addButton("inline_formula.svg", this._language.get("formulaInline"), this.inlineFormula, this._language.get("formatting"), "agsbs.inlineFormula");
- this._taskbarCallback.addButton("code.svg", this._language.get("code"), this.code, this._language.get("formatting"), "agsbs.code");
- this._taskbarCallback.addButton("quote.svg", this._language.get("blockquote"), this.blockquote, this._language.get("formatting"), "agsbs.quote");
- this._taskbarCallback.addButton("link.svg", this._language.get("insertLink"), this.insertLink, this._language.get("insert"), "agsbs.link");
- this._taskbarCallback.addButton('image.svg', this._language.get('insertGraphic'), this.insertImage, this._language.get('insert'), "agsbs.image");
- this._taskbarCallback.addButton('footnote.svg', this._language.get('insertFootnote'), this.insertFootnote, this._language.get('insert'), "agsbs.footnote");
- this._taskbarCallback.addButton('annotation.svg', this._language.get('authorAnnotation'), this.insertAnnotation, this._language.get('insert'), "agsbs.annotation");
- this._taskbarCallback.addButton('hr.svg', this._language.get('horizontalRule'), this.insertHorizontalRule, this._language.get('separator'), "agsbs.hr");
- this._taskbarCallback.addButton('new_page.svg', this._language.get('newPage'), this.addNewPage, this._language.get('separator'), "agsbs.newPage");
- };
- /**
- * Inserts a headline with a computed grade.
- * It tries to smartly match what the next headline could be.
- */
- this.headline = () => __awaiter(this, void 0, void 0, function* () {
- var result = yield this._headlineHelper.getNextHeadlineString();
- var headlineGrade = (result.match(/\#/g) || []).length;
- vscode.window.showInformationMessage(this._language.get("headlineInsertedWithGrade") + headlineGrade);
- this._headlineHelper.setSpecificHeadline(headlineGrade);
- });
- /**
- * Inserts a headline with grade 1
- */
- this.h1 = () => __awaiter(this, void 0, void 0, function* () {
- this._headlineHelper.setSpecificHeadline(1);
- });
- /**
- * Inserts a headline with grade 2
- */
- this.h2 = () => __awaiter(this, void 0, void 0, function* () {
- this._headlineHelper.setSpecificHeadline(2);
- });
- /**
- * Inserts a headline with grade 3
- */
- this.h3 = () => __awaiter(this, void 0, void 0, function* () {
- this._headlineHelper.setSpecificHeadline(3);
- });
- /**
- * Inserts a headline with grade 4
- */
- this.h4 = () => __awaiter(this, void 0, void 0, function* () {
- this._headlineHelper.setSpecificHeadline(4);
- });
- /**
- * Inserts a headline with grade 5
- */
- this.h5 = () => __awaiter(this, void 0, void 0, function* () {
- this._headlineHelper.setSpecificHeadline(5);
- });
- /**
- * Inserts a headline with grade 6
- */
- this.h6 = () => __awaiter(this, void 0, void 0, function* () {
- this._headlineHelper.setSpecificHeadline(6);
- });
- /**
- * Inserts a new Page identifier. It uses Matuc to determine what Page it is.
- */
- this.addNewPage = () => __awaiter(this, void 0, void 0, function* () {
- var currentTextEditor = yield this._helper.getCurrentTextEditor();
- if (currentTextEditor.document.isDirty) {
- yield currentTextEditor.document.save();
- vscode.window.showInformationMessage(this._language.get("documentHasBeenSaved"));
- }
- var matucIsInstalled = yield this._matucCommands.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var result = yield this._matucCommands.addPageNumber();
- if (result.includes("|| - ") === false) {
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError"));
- return;
- }
- var insertText = "\n" + result + "\n";
- this._helper.insertStringAtStartOfLine(insertText);
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Inserts a horizontal rule.
- */
- this.insertHorizontalRule = () => __awaiter(this, void 0, void 0, function* () {
- var text = "\n---\n\n";
- var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection();
- if (insertPosition === false) {
- yield this._helper.insertStringAtStartOfLineOrLinebreak(text);
- return;
- }
- else {
- vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning"));
- var thisCurrentEditor = yield this._helper.getCurrentTextEditor();
- var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end);
- this._helper.insertStringAtStartOfLineOrLinebreak(text, thisCurrentEditor, newEndPosition);
- }
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Adds the 'add Annotation'-Dialogue to to the sidebar.
- */
- this.insertAnnotation = () => __awaiter(this, void 0, void 0, function* () {
- var setttingsTextboxContentIsOptional = yield this._settings.get("optionalTextboxContent");
- var form = this._snippets.get("insertAnnotationHTMLPart1");
- if (setttingsTextboxContentIsOptional === false) {
- form += "required='true'";
- }
- form += this._snippets.get("insertAnnotationHTMLPart2");
- if (setttingsTextboxContentIsOptional === false) {
- form += "required='true'";
- }
- form += this._snippets.get("insertAnnotationHTMLPart3");
- var script = this._snippets.get("insertAnnotationSCRIPT");
- this._sidebarCallback.addToSidebar(form, this._language.get("insertTextbox"), this.insertAnnotationSidebarCallback, this._language.get("insert"), "", script);
- });
- /**
- * Adds an specified annotation to the text.
- */
- this.insertAnnotationSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var annotationType = params.annotationType.value;
- var color = params.color.value;
- var title = params.titleOfBox.value;
- var content = params.contentOfBox.value;
- var text = "";
- if (annotationType === "textFrame") {
- text = `
\n`;
- text += `${title}\n`;
- text += `${content}\n`;
- text += `
\n`;
- }
- if (annotationType === "textBox") {
- text = `
\n`;
- text += `${title}\n`;
- text += `${content}\n`;
- text += `
\n`;
- }
- if (annotationType === "annotation") {
- text = `
${content}
`;
- if (title !== "") {
- vscode.window.showWarningMessage(this._language.get("annotationNoTitleError"));
- }
- }
- //Check if Annotation will be placed in Table (optional, but additional check);
- var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection();
- if (insertPosition === false) {
- yield this._helper.insertStringAtStartOfLineOrLinebreak(text);
- return;
- }
- else {
- vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning"));
- var thisCurrentEditor = yield this._helper.getCurrentTextEditor();
- var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end);
- this._helper.insertStringAtStartOfLineOrLinebreak(text, thisCurrentEditor, newEndPosition);
- }
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Adds the form dialogue to the sidebar
- */
- this.insertFootnote = () => __awaiter(this, void 0, void 0, function* () {
- var form = this._snippets.get("insertFootnoteHTML");
- this._sidebarCallback.addToSidebar(form, this._language.get("insertFootnote"), this.insertFootnoteSidebarCallback, this._language.get("insertFootnote"));
- });
- /**
- * Adds a specified footnote to the text.
- */
- this.insertFootnoteSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var label = params.footLabel.value;
- var text = params.footText.value;
- var currentLineLabel = "[^" + label + "]";
- var includesLabel = yield this._insertHelper.checkDocumentForString(currentLineLabel);
- if (text.includes("[") || text.includes("]") || text.includes("^")) {
- vscode.window.showErrorMessage(this._language.get("footLabelError"));
- return false;
- }
- if (includesLabel === true) {
- vscode.window.showErrorMessage(this._language.get("footLabelErrorDetail"));
- return false;
- }
- var pageEndLabel = currentLineLabel + ": " + text;
- var endPoint = yield this._insertHelper.getPageEndLine();
- if (endPoint === false) {
- yield this._helper.insertStringAtStartOfLine(currentLineLabel + "\n" + pageEndLabel + "\n");
- }
- else {
- yield this._helper.insertStringAtStartOfLineOrLinebreak(currentLineLabel);
- endPoint = yield this._insertHelper.getPageEndLine();
- var currentTextEditor = yield this._helper.getCurrentTextEditor();
- var newEndSelection = new vscode.Selection(endPoint, endPoint);
- yield this._helper.insertStringAtStartOfLineOrLinebreak(pageEndLabel, currentTextEditor, newEndSelection);
- }
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Adds a quote identifier at the start of the current line.
- */
- this.blockquote = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtBeginningOfLine("> ");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Marks the current selection as code.
- */
- this.code = () => __awaiter(this, void 0, void 0, function* () {
- var currentTextEditor = yield this._helper.getCurrentTextEditor();
- var selection = yield this._helper.getWordsSelection(currentTextEditor);
- var startInsertText = "```";
- var endInsertText = "```";
- if (selection.start.line !== selection.end.line) {
- startInsertText = "\n" + startInsertText + "\n";
- endInsertText = "\n" + endInsertText;
- }
- yield this._helper.toggleCharactersAtStartAndEnd(startInsertText, endInsertText);
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Toggles the current selection as a inline formula
- */
- this.inlineFormula = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtStartAndEnd("$", "$");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Toggles the current selection as a formula
- */
- this.formula = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtStartAndEnd("$$ ", " $$");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Toggles a unordered list.
- */
- this.unorderedList = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtBeginningOfLine("- ");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Adds a Marker at the current line as a ordered list.
- */
- this.orderedList = () => __awaiter(this, void 0, void 0, function* () {
- this._listHelper.orderedList();
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Editing a existing Table
- */
- this.editTable = () => __awaiter(this, void 0, void 0, function* () {
- var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection();
- if (insertPosition === false) {
- vscode.window.showErrorMessage(this._language.get("noTableFound"));
- return;
- }
- else {
- var tableData = yield this._tableHelper.loadSelectedTable(insertPosition);
- var form = this._snippets.get('editTableHTML');
- form = form + ``; //TODO possible escape file string
- var script = this._snippets.get('editTableSCRIPT');
- script += this._snippets.get('editTableScriptPart1');
- var jsonToInsert = JSON.stringify(tableData["data"]);
- jsonToInsert = jsonToInsert.replace(/\\n/g, "\\\\n")
- .replace(/\\"/g, "\\\\\"")
- .replace(/\\'/g, "\\\\'")
- .replace(/\\&/g, "\\\\&")
- .replace(/\\r/g, "\\\\r")
- .replace(/\\t/g, "\\\\t")
- .replace(/\\b/g, "\\\\b")
- .replace(/\\f/g, "|\f");
- script += jsonToInsert;
- script += this._snippets.get('editTableScriptPart2');
- var style = this._snippets.get('editTableSTYLE');
- this._sidebarCallback.addToSidebar(form, this._language.get("insertTable"), this.editTableSidebarCallback, this._language.get("insert"), style, script);
- }
- });
- /**
- * Callback of the Sidebar for editing a table
- */
- this.editTableSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var hasHeader = params.tableHeadCheckbox.checked;
- var tableType = params.tableType.value;
- var rawdata = params.tableJSON.value;
- var data;
- try {
- data = JSON.parse(rawdata);
- }
- catch (e) {
- console.log(e);
- return;
- }
- var tableData = yield this._tableHelper.generateCSVfromJSON(rawdata);
- var fileName = params.hiddenFileName.value.replace(/^.*[\\\/]/, '');
- var folderName = params.hiddenFileName.value.substr(0, params.hiddenFileName.value.lastIndexOf("/") - 1);
- var defaultGeneratedFolderName = yield this._tableHelper.getTableFolderName();
- var savedTable;
- if (folderName === defaultGeneratedFolderName) {
- savedTable = yield this._tableHelper.writeCSVFile(tableData, fileName);
- }
- else {
- savedTable = yield this._tableHelper.writeCSVFile(tableData);
- //if table exists in other folder, generate new Name, because the file could potentially already exists
- // with that name so no other file will be overridden by accident
- }
- vscode.window.showInformationMessage(this._language.get("filehasBeenWritten") + params.hiddenFileName.value);
- var extraText = "";
- if (savedTable !== false) {
- var relSavedTablePathParts = savedTable.split(path.sep);
- var relSavedTablePath = "." + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 2] + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 1];
- extraText = "exported to " + relSavedTablePath;
- }
- var table = this._tableHelper.generateTable(hasHeader, data, tableType, extraText);
- var insertSelection = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection();
- if (insertSelection === false) {
- vscode.window.showErrorMessage(this._language.get("originalTableNotFound"));
- this._helper.insertStringAtStartOfLineOrLinebreak(table);
- }
- else {
- this._helper.replaceSelection(table, insertSelection);
- }
- });
- /**
- * Insert a Table from a CSV-File
- */
- this.insertCSVTable = () => __awaiter(this, void 0, void 0, function* () {
- var thisPath = yield this._helper.getCurrentDocumentFolderPath();
- var results = yield this._tableHelper.getAllTablesInFolder(thisPath);
- var selectionTablesHTML = this._tableHelper.generateSelectTableOptionsHTML(results);
- var form = `
-
- `;
- this._sidebarCallback.addToSidebar(form, this._language.get("importTableCsv"), this.insertCSVTableSidebarCallback, this._language.get("insert"));
- });
- /**
- * Callback for insert a table from a CSV-File
- */
- this.insertCSVTableSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var urlData = params.selectTable.value;
- var url;
- if (urlData === "") {
- vscode.window.showErrorMessage(this._language.get("noFileSelected"));
- return false;
- }
- else {
- try {
- url = JSON.parse(urlData);
- }
- catch (e) {
- vscode.window.showErrorMessage(this._language.get("importTableFromCsvError"));
- console.log(e);
- return false;
- }
- }
- var content = yield this._helper.getContentOfFile(url.completePath);
- content = content.replace(/\ +$/, "");
- content = content.replace(/\n+$/, ""); //removes trailing spaces and line breaks
- var result = yield Papa.parse(content);
- var extraText = this._language.get("importedFrom") + " " + url.relativePath;
- var table = this._tableHelper.generateTable(false, result.data, "", extraText);
- var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection();
- if (insertPosition === false) {
- this._helper.insertStringAtStartOfLineOrLinebreak(table);
- }
- else {
- vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning"));
- var thisCurrentEditor = yield this._helper.getCurrentTextEditor();
- var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end);
- this._helper.insertStringAtStartOfLineOrLinebreak(table, thisCurrentEditor, newEndPosition);
- }
- });
- /**
- * Insert Table Button Function
- */
- this.insertTable = () => __awaiter(this, void 0, void 0, function* () {
- var form = this._snippets.get('insertTableHTML');
- var script = this._snippets.get('insertTableSCRIPT');
- var style = this._snippets.get('insertTableSTYLE');
- this._sidebarCallback.addToSidebar(form, this._language.get("insertTable"), this.insertTableSidebarCallback, this._language.get("insert"), style, script);
- });
- /**
- * Insert Table SidebarCallback Function
- */
- this.insertTableSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var hasHeader = params.tableHeadCheckbox.checked;
- var tableType = params.tableType.value;
- var rawdata = params.tableJSON.value;
- var data;
- try {
- data = JSON.parse(rawdata);
- }
- catch (e) {
- console.log(e);
- return;
- }
- var savedTable = yield this._tableHelper.generateCSVfromJSONandSave(rawdata);
- var extraText = "";
- if (savedTable !== false) {
- var relSavedTablePathParts = savedTable.split(path.sep);
- var relSavedTablePath = "." + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 2] + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 1];
- extraText = "exported to " + relSavedTablePath;
- }
- var table = this._tableHelper.generateTable(hasHeader, data, tableType, extraText);
- var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection();
- if (insertPosition === false) {
- this._helper.insertStringAtStartOfLineOrLinebreak(table);
- }
- else {
- vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning"));
- var thisCurrentEditor = yield this._helper.getCurrentTextEditor();
- var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end);
- this._helper.insertStringAtStartOfLineOrLinebreak(table, thisCurrentEditor, newEndPosition);
- }
- });
- /**
- * Inserts an Image
- */
- this.insertImage = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matucCommands.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var thisPicturesFolderName = yield this._imageHelper.getPictureFolderName();
- var thisPath = yield this._helper.getCurrentDocumentFolderPath();
- var thisPicturesArray = yield this._imageHelper.getAllPicturesInFolder(thisPath, thisPicturesFolderName);
- var allPicturesHTMLString = yield this._imageHelper.generateSelectImagesOptionsHTML(thisPicturesArray);
- var form = "";
- var script = this._snippets.get("insertImageScript");
- form += this._snippets.get('insertImageFormPart1') + allPicturesHTMLString + this._snippets.get('insertImageFormPart2');
- this._sidebarCallback.addToSidebar(form, this._language.get("insertGraphic"), this.insertImageSidebarCallback, this._language.get("insert"), "", script);
- });
- /**
- * The Callback for inserting an image from the sidebar, inserts the image
- * @param params parameters given by the callback about the html-elements of the html-form
- */
- this.insertImageSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var altText = "";
- var pictureTitle = "";
- var pictureSelector = JSON.parse(params.selectPicture.value);
- altText += params.altText.value;
- pictureTitle += params.graphicTitle.value;
- var pictureSource = "";
- pictureSource += pictureSelector.markdownReadyRelativePath;
- var result = yield this._matucCommands.imageDescription(altText, params.outsourceCheckbox.checked, pictureSelector.basePath, pictureTitle, pictureSelector.markdownReadyRelativePath);
- yield this._helper.insertStringAtStartOfSelection(result['internal'].verbatim);
- //typescript does not like .internal, so this workaround is used.
- if (result.hasOwnProperty("external")) { // if the description is outsourced, the returning JSON has a 'external' property
- var fileName = yield this._imageHelper.getPictureFolderName();
- fileName += ".md";
- this._imageHelper.addImageDescriptionToFile(pictureSelector.basePath, fileName, result["external"].verbatim);
- //typescript does not like .external, so this workaround is used.
- }
- });
- /**
- * Adds a panel to the sidebar to add a link
- */
- this.insertLink = () => {
- var form = this._snippets.get("insertLinkForm");
- var script = `
- function valueChanged(){
- var urlElement = document.getElementById("url");
- var url = urlElement.value;
- var linkTextElement = document.getElementById("linkText");
- var linkText = linkTextElement.value;
- var linkTitleElement = document.getElementById("linkTitle");
- var linkTitle = linkTitleElement.value;
- var a = document.getElementById("link");
-
- a.href = url;
- a.innerHTML = linkText;
- a.title = linkTitle;
-
- }
- `;
- this._sidebarCallback.addToSidebar(form, this._language.get("insertLink"), this.insertLinkSidebarCallback, this._language.get("insertLinkSubmit"), "", script);
- };
- /**
- * gets called when the 'insert Link'-Button is pressed
- */
- this.insertLinkSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var stringToInsert;
- if (params.linkTitle.value !== "") {
- stringToInsert = `[${params.linkText.value}](${params.url.value} "${params.linkTitle.value}") `;
- }
- else {
- stringToInsert = `[${params.linkText.value}](${params.url.value}) `;
- }
- yield this._helper.insertStringAtStartOfSelection(stringToInsert);
- });
- /**
- * Makes the current text bold.
- */
- this.bold = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtStartAndEnd("**", "**");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Makes the current text italic.
- */
- this.italic = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtStartAndEnd("*", "*");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Makes the current text strikethrough.
- */
- this.strikethrough = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.toggleCharactersAtStartAndEnd("~~", "~~");
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- this._helper = new helper_1.default;
- this._imageHelper = new imageHelper_1.default(context);
- this._sidebarCallback = sidebarCallback;
- this._taskbarCallback = taskbarCallback;
- this._language = new languages_1.default;
- this._matucCommands = new matucCommands_1.default;
- this._snippets = new editorFunctionsSnippets_1.default;
- this._tableHelper = new tableHelper_1.default;
- this._listHelper = new listHelper_1.default;
- this._insertHelper = new insertHelper_1.default;
- this._headlineHelper = new headlineHelper_1.default;
- this._settings = new settingsHelper_1.default;
- }
-}
-exports.default = EditorFunctions;
-//# sourceMappingURL=editorFunctions.js.map
\ No newline at end of file
diff --git a/out/editorFunctions.js.map b/out/editorFunctions.js.map
deleted file mode 100644
index 59d86cf..0000000
--- a/out/editorFunctions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"editorFunctions.js","sourceRoot":"","sources":["../src/editorFunctions.ts"],"names":[],"mappings":";;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AAG,eAAe,CAAC;QACxC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,IAAI,uBAAa,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,iCAAsB,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,qBAAW,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAU,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,IAAI,sBAAY,CAAC;QACtC,IAAI,CAAC,eAAe,GAAG,IAAI,wBAAc,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAc,CAAC;IACxC,CAAC;CAyjBJ;AAplBD,kCAolBC"}
\ No newline at end of file
diff --git a/out/extension.js b/out/extension.js
deleted file mode 100644
index e5ca995..0000000
--- a/out/extension.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * @author Lucas Vogel
- */
-const vscode = require("vscode");
-const helper_1 = require("./helper/helper");
-const settingsHelper_1 = require("./helper/settingsHelper");
-const sidebar_1 = require("./sidebar");
-const taskbar_1 = require("./taskbar");
-/**
- * Gets triggered when the Extension is activated
- * @param context Context of the extension, gets automatically handed over from VSCode at activation
- */
-function activate(context) {
- console.log('AGSBS is now active!');
- let extensionController = new ExtensionController(context);
- let disposable = vscode.commands.registerCommand('agsbs.open', () => {
- vscode.window.showInformationMessage('AGSBS is active.');
- });
- context.subscriptions.push(extensionController);
- context.subscriptions.push(disposable);
-}
-exports.activate = activate;
-/**
- * this method is called when your extension is deactivated
- */
-function deactivate() {
- vscode.window.showInformationMessage('AGSBS deactivated.');
-}
-exports.deactivate = deactivate;
-/**
- * Orchestrates Updates and all open Panels
- */
-class ExtensionController {
- constructor(context) {
- this.disposable = vscode.commands.registerCommand("agsbs.focusDocument", () => {
- this._helper.focusDocument();
- });
- let sidebar = new sidebar_1.default(context);
- let taskbar = new taskbar_1.default(sidebar, context);
- let helper = new helper_1.default();
- this._settingsHelper = new settingsHelper_1.default;
- this._settingsHelper.setup(); //If settings are not set, this will initialize them
- this._layout = { orientation: 1, groups: [{ groups: [{ size: 0.8 }, { size: 0.2 }], size: 0.85 }, { size: 0.15 }] };
- this._defaultLayout = { orientation: 1, groups: [{}] };
- this._helper = helper;
- this._taskbar = taskbar;
- this._sidebar = sidebar;
- let subscriptions = []; //Create Disposable for Event subscriptions
- vscode.window.onDidChangeActiveTextEditor(this._update, this, subscriptions);
- // create a combined disposable from both event subscriptions
- this._disposable = vscode.Disposable.from(...subscriptions);
- this._update();
- }
- getSidebarPanel(params) {
- console.log("RETURN PANEL" + params);
- return this._sidebarPanel;
- }
- dispose() {
- this._disposable.dispose();
- }
- /**
- * Gets triggered when the Layout of the Editor changes.
- */
- _update() {
- return __awaiter(this, void 0, void 0, function* () {
- let editor = vscode.window.activeTextEditor;
- if (!editor) { //If no Editor is open, return.
- return;
- }
- let doc = editor.document;
- if (doc.languageId === "markdown" || doc.languageId === "multimarkdown") { //This gets executed if a Markdown File gets opened
- //First, reset Workspace
- if (this._sidebar.isVisible() === false || this._taskbar.isVisible() === false) {
- yield this._helper.setEditorLayout(this._layout);
- }
- if (this._sidebar.isVisible() === false && this._taskbar.isVisible() === true) {
- //If Sidebar is closed but Taskbar is open, close Taskbar to reset
- yield this._taskbar.hide(this._taskbarPanel);
- }
- if (this._sidebar.isVisible() === true && this._taskbar.isVisible() === false) {
- //If Sidebar is open but Taskbar is closed, close Sidebar to reset
- yield this._sidebar.hide(this._sidebarPanel);
- }
- if (this._sidebar.isVisible() === false) {
- this._sidebarPanel = yield this._sidebar.show();
- }
- if (this._taskbar.isVisible() === false) {
- this._taskbarPanel = yield this._taskbar.show();
- }
- }
- else {
- //TODO: BUG when closing both panels, this should be reported as an Issue to VSCODE because an error is thrown in the core
- //This will crash the Extension debugging Host forever and will force you to reinstall VSCODE from scratch. Seriously.
- //Read the docs.
- //await this._sidebar.hide(this._sidebarPanel);
- //await this._taskbar.hide(this._taskbarPanel);
- }
- });
- }
-}
-//# sourceMappingURL=extension.js.map
\ No newline at end of file
diff --git a/out/extension.js.map b/out/extension.js.map
deleted file mode 100644
index 33cd35f..0000000
--- a/out/extension.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,4DAAqD;AACrD,uCAAgC;AAChC,uCAAgC;AAGhC;;;GAGG;AACH,kBAAyB,OAAgC;IACrD,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;IACpC,IAAI,mBAAmB,GAAG,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAG3D,IAAI,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,YAAY,EAAE,GAAG,EAAE;QAChE,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAChD,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC;AAXD,4BAWC;AAED;;GAEG;AACH;IACI,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,CAAC;AAC/D,CAAC;AA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,aAAa,CAAC,CAAC;iBAChD;gBAED,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,EAAE;oBACrC,IAAI,CAAC,aAAa,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;iBACnD;gBACD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,EAAE;oBACrC,IAAI,CAAC,aAAa,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;iBACnD;aACJ;iBAAM;gBACH,0HAA0H;gBAC1H,sHAAsH;gBACtH,gBAAgB;gBAEhB,+CAA+C;gBAC/C,gDAAgD;aACnD;QACL,CAAC;KAAA;CACJ"}
\ No newline at end of file
diff --git a/out/gitCommands.js b/out/gitCommands.js
deleted file mode 100644
index d6da8a2..0000000
--- a/out/gitCommands.js
+++ /dev/null
@@ -1,132 +0,0 @@
-"use strict";
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * @author Jens Voegler
- * @author Lucas Vogel
- * This code was created by Jens Voegler and ported to VSCode by Lucas Vogel.
- */
-const vscode = require("vscode");
-const helper_1 = require("./helper/helper");
-const languages_1 = require("./languages");
-const settingsHelper_1 = require("./helper/settingsHelper");
-const path = require("path");
-const exec = require('child_process').exec;
-class GitCommands {
- constructor() {
- this._helper = new helper_1.default;
- this._language = new languages_1.default;
- this._settings = new settingsHelper_1.default;
- }
- /**
- * Clones a Repo
- * @param user ZIH-Username as a String
- * @param repoName Name of the repo
- */
- clone(user, repoName) {
- return __awaiter(this, void 0, void 0, function* () {
- var gitLocalPath = yield this._settings.get("gitLocalPath");
- var gitServerPath = yield this._settings.get("gitServerPath");
- if (gitServerPath.endsWith("/")) {
- gitServerPath = gitServerPath.substring(0, gitServerPath.length - 1);
- this._settings.update("gitServerPath", gitServerPath); //If Path in Settings ends with a /
- }
- if (gitServerPath === "") {
- vscode.window.showErrorMessage(this._language.get("missingGitServerPath"));
- return;
- }
- var gitCmd = `git clone ssh://${user}@${gitServerPath}/${repoName}`;
- console.log("gitCmd " + gitCmd);
- if (!(yield this._helper.folderExists(gitLocalPath))) {
- this._helper.mkDir(gitLocalPath);
- }
- exec(gitCmd, { cwd: gitLocalPath }, (error, stdout, stderr) => {
- if (error) {
- console.warn(`exec error: ${error}`);
- vscode.window.showErrorMessage(this._language.get("gitCloneError"));
- }
- else {
- vscode.window.showInformationMessage(this._language.get("gitCloneSucess"));
- var newFolderName = path.join(gitLocalPath, repoName);
- this._helper.addWorkspaceFolder(newFolderName);
- }
- });
- });
- }
- /**
- * Executes `git pull`.
- */
- pull(path) {
- return __awaiter(this, void 0, void 0, function* () {
- exec('git pull', { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- return;
- }
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
- });
- });
- }
- /**
- * Executes `git add -A`.
- */
- addAll(path) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise(function (resolve, reject) {
- exec('git add -A', { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error("path " + path);
- console.error(`exec error: ${error}`);
- reject(error);
- }
- resolve({ out: stdout, err: stderr });
- });
- });
- });
- }
- /**
- * Executes `git commit -am "message"`.
- * @param {string} message The commit message.
- * @param {string} path The path of the local git repository.
- */
- commit(message, path) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise(function (resolve, reject) {
- exec(`git commit -am "${message}"`, { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- vscode.window.showErrorMessage(this._language.get("commitChangesErrorDetail"));
- console.log(error);
- return reject(error);
- }
- resolve({ out: stdout, err: stderr });
- });
- });
- });
- }
- /**
- * Executes `git push`.
- */
- push(path) {
- return __awaiter(this, void 0, void 0, function* () {
- exec('git push origin', { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- return;
- }
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
- });
- });
- }
-}
-exports.default = GitCommands;
-//# sourceMappingURL=gitCommands.js.map
\ No newline at end of file
diff --git a/out/gitCommands.js.map b/out/gitCommands.js.map
deleted file mode 100644
index 34082c2..0000000
--- a/out/gitCommands.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"gitCommands.js","sourceRoot":"","sources":["../src/gitCommands.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;GAIG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AACnC,4DAAqD;AACrD,6BAA6B;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC;AAE3C;IAKC;QACC,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAc,CAAC;IACrC,CAAC;IAED;;;;OAIG;IACU,KAAK,CAAC,IAAI,EAAE,QAAQ;;YAChC,IAAI,YAAY,GAAQ,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YACjE,IAAI,aAAa,GAAQ,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YACnE,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAChC,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,aAAa,CAAC,MAAM,GAA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AK,EAAE,CAAC,CAAC;wBACtC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,CAAC;wBAC/E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;wBACnB,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;qBACrB;oBACD,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;gBACvC,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACJ,CAAC;KAAA;IAED;;MAEE;IACW,IAAI,CAAC,IAAI;;YACrB,IAAI,CAAC,iBAAiB,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;gBAChE,IAAI,KAAK,EAAE;oBACV,OAAO,CAAC,KAAK,CAAC,eAAe,KAAK,EAAE,CAAC,CAAC;oBACtC,OAAO;iBACP;gBACD,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;gBACjC,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;QACJ,CAAC;KAAA;CAED;AA5GD,8BA4GC"}
\ No newline at end of file
diff --git a/out/helper/helper.js b/out/helper/helper.js
deleted file mode 100644
index 03d1ccf..0000000
--- a/out/helper/helper.js
+++ /dev/null
@@ -1,705 +0,0 @@
-"use strict";
-/**
- * @author Lucas Vogel
- */
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const vscode = require("vscode");
-const path = require("path");
-const fs = require("fs");
-const languages_1 = require("../languages");
-const Papa = require("papaparse");
-class Helper {
- constructor() {
- this._language = new languages_1.default;
- }
- /**
- * Sets the Editor layout to the given specifications
- * @param layout Object of the Editor Layout
- */
- setEditorLayout(layout) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- yield vscode.commands.executeCommand('vscode.setEditorLayout', layout);
- resolve(true);
- }));
- });
- }
- /**
- * Puts the focus to the given editor
- * @param editor optional. Editor to focus.
- */
- focusDocument(editor) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- if (editor === undefined) {
- var editor = yield this.getCurrentTextEditor();
- }
- yield vscode.window.showTextDocument(editor.document, editor.viewColumn, false);
- resolve(true);
- }));
- });
- }
- /**
- * Returns the path to the current document
- */
- getCurrentDocumentFolderPath() {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- const textEditors = yield vscode.window.visibleTextEditors;
- if (textEditors.length < 1) {
- vscode.window.showErrorMessage(this._language.get('noOpenEditors'));
- resolve(null);
- }
- if (textEditors.length > 1) {
- vscode.window.showErrorMessage(this._language.get('tooManyOpenEditors'));
- resolve(null);
- }
- var currentTextEditor = textEditors[0];
- var currentDocumentFileName = currentTextEditor.document.fileName;
- var currentPath = currentDocumentFileName.substr(0, currentDocumentFileName.lastIndexOf(path.sep));
- resolve(currentPath.toString());
- }));
- });
- }
- /**
- * Returns the last active TextEditor and returns it. In case of an error it will promt an Error to the user.
- * @returns current Text Editor or null if it cannot be determined
- */
- getCurrentTextEditor() {
- return __awaiter(this, void 0, void 0, function* () {
- const textEditors = yield vscode.window.visibleTextEditors;
- if (textEditors !== undefined) {
- if (textEditors.length < 1) {
- vscode.window.showErrorMessage(this._language.get('noOpenEditors'));
- return null;
- }
- if (textEditors.length > 1) {
- vscode.window.showErrorMessage(this._language.get('tooManyOpenEditors'));
- return null;
- }
- var currentTextEditor = textEditors[0];
- if (currentTextEditor.document.languageId !== "markdown") {
- vscode.window.showErrorMessage(this._language.get('ActionErrorNotMarkdown'));
- return null;
- }
- return currentTextEditor;
- }
- });
- }
- /**
- * Returns the primary Selection of the given Text Editor
- * @param textEditor from type vscode.TextEditor, the TextEditor the selection is returned from
- */
- getPrimarySelection(textEditor) {
- return textEditor.selection;
- }
- getWordsSelection(textEditor) {
- var selection = this.getPrimarySelection(textEditor);
- var newSelection;
- if (selection.isEmpty) {
- var wordRange = textEditor.document.getWordRangeAtPosition(selection.active);
- if (wordRange !== undefined) { //if there is no actual selection, but a marked word
- newSelection = new vscode.Selection(wordRange.start, wordRange.end);
- }
- else { //if there is no actual selection and also no marked word
- newSelection = new vscode.Selection(selection.start, selection.end);
- }
- }
- else { //if there is a selection
- newSelection = new vscode.Selection(selection.start, selection.end);
- }
- return newSelection;
- }
- /**
- * Inserts a given string at the start of a selection
- * @param charactersToInsert string that will be inserted
- * @param currentTextEditor the current text editor
- * @param selection the current selection
- */
- insertStringAtStartOfSelection(charactersToInsert, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- const workSpaceEdit = new vscode.WorkspaceEdit();
- workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, charactersToInsert);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- });
- }
- /**
- * Insert a String if characters at the beginning of the line of the selection.
- * @param charactersToInsert a string of characters to insert at the beginning
- * @param currentTextEditor optional. The text editor to work with
- * @param selection optional. the selection to work with
- */
- insertStringAtStartOfLine(charactersToInsert, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- const workSpaceEdit = new vscode.WorkspaceEdit();
- if (selection.start.character !== 0) {
- var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0);
- selection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineStart);
- }
- workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, charactersToInsert);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- });
- }
- /**
- * Inserts a string at the start of a Line if the current Line is empty, or at a new line if it is not
- * @param charactersToInsert String of characters
- * @param currentTextEditor optional. The given text editor
- * @param selection optional. A custom selection
- */
- insertStringAtStartOfLineOrLinebreak(charactersToInsert, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- var lineLength = currentTextEditor.document.lineAt(selection.end.line).range.end.character;
- if (lineLength === 0) {
- var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0);
- selection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineStart);
- }
- else {
- var newStartPositionAtLineEnd = new vscode.Position(selection.end.line, lineLength);
- selection = new vscode.Selection(newStartPositionAtLineEnd, newStartPositionAtLineEnd);
- charactersToInsert = "\n" + charactersToInsert;
- }
- const workSpaceEdit = new vscode.WorkspaceEdit();
- workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, charactersToInsert);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- });
- }
- /**
- * Wraps Characters around the current selected Area.
- * @param currentTextEditor The TextEditor the Document is housed in
- * @param position Start and End of the Selection
- * @param startCharacters Characters that will be added at the beginning of the selection
- * @param endCharacters Characters that will be added at the end of the selection
- */
- wrapCharactersAroundSelection(currentTextEditor, selection, startCharacters, endCharacters) {
- return __awaiter(this, void 0, void 0, function* () {
- const workSpaceEdit = new vscode.WorkspaceEdit();
- workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, startCharacters);
- workSpaceEdit.insert(currentTextEditor.document.uri, selection.end, endCharacters);
- var newLinesExtra = (startCharacters.match(/\n/g) || []).length; //Checks how many new lines there are
- var startLine = selection.start.line + newLinesExtra;
- var startCharacter = selection.start.character + startCharacters.length;
- if (newLinesExtra !== 0) {
- startCharacter = 0;
- }
- yield vscode.workspace.applyEdit(workSpaceEdit);
- var newStartPosition = new vscode.Position(startLine, startCharacter);
- var newEndPosition = newStartPosition;
- if (selection.start.line !== selection.end.line) {
- newEndPosition = new vscode.Position(selection.end.line + newLinesExtra, selection.end.character);
- }
- else {
- var selectionLength = selection.end.character - selection.start.character;
- newEndPosition = new vscode.Position(selection.start.line + newLinesExtra, startCharacter + selectionLength);
- }
- var newSelection = new vscode.Selection(newStartPosition, newEndPosition);
- currentTextEditor.selection = newSelection;
- });
- }
- /**
- * Deletes given character lengths from the start and end of a selection
- * @param currentTextEditor the given Text Editor
- * @param selection the selection the edits will be made on
- * @param numberStartCharacters number of characters that will be sliced at the beginning
- * @param numberEndCharacters number of characters that will be sliced at the end
- */
- deleteCharactersInSelection(currentTextEditor, selection, numberStartCharacters, numberEndCharacters) {
- return __awaiter(this, void 0, void 0, function* () {
- var startPointStart = selection.start;
- var startPointEnd = selection.start.translate(0, numberStartCharacters);
- var start = new vscode.Range(startPointStart, startPointEnd);
- var endPointStart = selection.end.translate(0, -1 * numberEndCharacters);
- var endPointEnd = selection.end;
- var end = new vscode.Range(endPointStart, endPointEnd);
- const workSpaceEdit = new vscode.WorkspaceEdit();
- workSpaceEdit.delete(currentTextEditor.document.uri, start);
- workSpaceEdit.delete(currentTextEditor.document.uri, end);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- });
- }
- /**
- * checks if the given selection has the given characters at the beginning and end
- * @param currentTextEditor the given Text Editor
- * @param selection the Selection the check will be made on
- * @param startCharacters the start Characters that will be checked
- * @param endCharacters the end Characters that will be checked
- */
- checkStringForMarkersAtBeginningAndEnd(currentTextEditor, selection, startCharacters, endCharacters) {
- return __awaiter(this, void 0, void 0, function* () {
- var selectedText = currentTextEditor.document.getText(selection);
- if (selectedText === undefined) {
- return false;
- }
- if ((startCharacters.length + endCharacters.length) > selectedText.length) {
- return false; //if the selected text is shorter than the Characters to check against
- }
- var textlength = selectedText.length;
- var startSubstring = selectedText.substr(0, startCharacters.length);
- var endSubstring = selectedText.substr((textlength - endCharacters.length), textlength);
- if (startCharacters === startSubstring && endCharacters === endSubstring) {
- return true;
- }
- });
- }
- /**
- * Toggles given Characters at the beginning of a line
- * @param characters characters that should be toggled
- * @param line optional. Line to work with
- * @param currentTextEditor optional. Editor to work with
- */
- toggleCharactersAtBeginningOfLine(characters, line, currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (line === undefined) {
- var selection = this.getWordsSelection(currentTextEditor);
- line = selection.start.line;
- }
- var lineText = currentTextEditor.document.lineAt(line).text;
- var startSubstring = lineText.substr(0, characters.length);
- if (startSubstring === characters) {
- const workSpaceEdit = new vscode.WorkspaceEdit();
- var startPosition = new vscode.Position(line, 0);
- var endPosition = new vscode.Position(line, characters.length);
- var characterSelection = new vscode.Selection(startPosition, endPosition);
- yield workSpaceEdit.delete(currentTextEditor.document.uri, characterSelection);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- }
- else {
- const workSpaceEdit = new vscode.WorkspaceEdit();
- workSpaceEdit.insert(currentTextEditor.document.uri, currentTextEditor.document.lineAt(line).range.start, characters);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- }
- });
- }
- /**
- * Toggles the existence of given Characters in a Selection, also checks around the selection for better matching
- * @param startCharacters Characters at the beginning of the selection that will be added or removed
- * @param endCharacters Characters at the end of the selection that will be added or removed
- * @param currentTextEditor optional. The given Text Editor
- * @param selection optional. The selection that will be edited and checked
- */
- toggleCharactersAtStartAndEnd(startCharacters, endCharacters, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- if (startCharacters.length === 0) {
- return false;
- }
- if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, selection, startCharacters, endCharacters)) === true) {
- //If they match immediately
- yield this.deleteCharactersInSelection(currentTextEditor, selection, startCharacters.length, endCharacters.length);
- return true;
- }
- //If they don't match
- var extendedSelection;
- if (selection.start.character >= startCharacters.length) { //Extend selection to the Left if it is possible
- extendedSelection = new vscode.Selection(selection.start.translate(0, -1 * startCharacters.length), selection.end);
- if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) {
- //Extended Selection, if the beginning was not selected
- yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length);
- return true;
- }
- }
- if (selection.start.character >= (startCharacters.length + endCharacters.length)) { //Extend selection to the Left (stadt + endcharacters) if it is possible
- //reason: if there is nothing selected, and the button gets pressed, the cursor will jump at the end after the characters
- extendedSelection = new vscode.Selection(selection.start.translate(0, (-1 * startCharacters.length + -1 * endCharacters.length)), selection.end);
- if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) {
- //Extended Selection, if the beginning was not selected
- yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length);
- return true;
- }
- }
- var lineLength = currentTextEditor.document.lineAt(selection.end.line).range.end.character;
- if (selection.end.character <= lineLength - endCharacters.length) { //Extend selection to the Right if it is possible
- extendedSelection = new vscode.Selection(selection.start, selection.end.translate(0, endCharacters.length));
- if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) {
- //Extended Selection, if the beginning was not selected
- yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length);
- return true;
- }
- }
- if (selection.start.character >= startCharacters.length && selection.end.character <= lineLength - endCharacters.length) { //Extend selection in both directions if it is possible
- extendedSelection = new vscode.Selection(selection.start.translate(0, -1 * startCharacters.length), selection.end.translate(0, endCharacters.length));
- if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) {
- //Extended Selection, if the beginning was not selected
- yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length);
- return true;
- }
- }
- if (selection.start.character >= startCharacters.length && selection.end.character <= lineLength - endCharacters.length) { //Extend selection to the full length of the line
- var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0);
- var newStartPositionAtLineEnd = new vscode.Position(selection.end.line, lineLength);
- extendedSelection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineEnd);
- if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) {
- //Extended Selection, if the beginning was not selected
- yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length);
- return true;
- }
- }
- //If they are different and the selection is not longer than the length of the startCharacters
- yield this.wrapCharactersAroundSelection(currentTextEditor, selection, startCharacters, endCharacters);
- return true;
- });
- }
- /**
- * Creates a custom File Resource URI that can be used in the Webview
- * @param name Name of the Icon WITH file extension. So for example "bold.png"
- * @param context Context of the Extension
- * @returns resource from type vscode.Uri
- */
- getWebviewResourceIconURI(name, context) {
- var ressource = this.getWebviewResourceURI(name, "icons", context);
- return ressource;
- }
- /**
- * Gets custom File Ressource URI for use in Webview.
- * @param name Name of the File with extension
- * @param folder Folder or Folder Structure the File is in
- * @param context Context of the Webview
- * @returns vscode URI for use in a WebView
- */
- getWebviewResourceURI(name, folder, context) {
- const onDiskPath = vscode.Uri.file(path.join(context.extensionPath, folder, name));
- // And get the special URI to use with the webview
- const ressource = onDiskPath.with({ scheme: 'vscode-resource' });
- return ressource;
- }
- /** Generates a semi random UUID.
- * @returns a UUID.
- */
- generateUuid() {
- return 'xxxx-xxxx-xxx-yxxx-xxxxx'.replace(/[xy]/g, function (c) {
- var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
- return v.toString(16);
- });
- }
- /**
- * Returns the content of a given file
- * @param fileName the complete path to the file
- * @param encoding optional. If not set the default is utf-8
- * @returns string of the content
- */
- getContentOfFile(fileName, encoding) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- if (encoding === undefined) {
- encoding = 'utf8';
- }
- if (fileName === "") {
- vscode.window.showErrorMessage(this._language.get("readingFileError"));
- reject();
- }
- fs.readFile(fileName, encoding, function (err, data) {
- if (err) {
- vscode.window.showErrorMessage(this._language.get("readingFileError"));
- reject(err);
- }
- resolve(data);
- });
- }));
- });
- }
- /**
- * Checks if a selection starts with a given string
- * @param testText text to check if the selection begins with
- * @param currentTextEditor optional. The given text editor
- * @param selection optional. A custom selection
- */
- checkIfSelectionStartsWith(testText, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- if (testText === undefined || testText === "") {
- return false;
- }
- var selectedText = currentTextEditor.document.getText(selection);
- if (selectedText.startsWith(testText)) {
- return (true);
- }
- else {
- return (false);
- }
- });
- }
- /**
- * Checks if a selection ends with a given string
- * @param testText text to check if the selection begins with
- * @param currentTextEditor optional. The given text editor
- * @param selection optional. A custom selection
- */
- checkIfSelectionEndsWith(testText, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- if (testText === undefined || testText === "") {
- return false;
- }
- var selectedText = currentTextEditor.document.getText(selection);
- if (selectedText.endsWith(testText)) {
- return true;
- }
- selectedText = selectedText.replace(/\ +$/, ""); //removes trailing spaces
- if (selectedText.endsWith(testText)) {
- return true;
- }
- return false;
- });
- }
- /**
- * Iterates upwards from the given selection until it found a line that begins with the given test string, or the beginning of the file
- * @param testString text to check if the selection begins with
- * @param antiString string, if this is found instead of the test string the search will stop
- * @param currentTextEditor optional. The given text editor
- * @param selection optional. A custom selection
- */
- iterateUpwardsToCheckForString(testString, antiString, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- var selectionStartLine = selection.start.line;
- var selectionStartsWith = yield this.checkIfSelectionStartsWith(testString, currentTextEditor, selection);
- var selectionStartsWithAntiString = yield this.checkIfSelectionStartsWith(antiString, currentTextEditor, newSelection); //Check if the current line starts with the antistring
- if (selectionStartsWithAntiString === true) {
- return false;
- }
- var newEndPositionStart = new vscode.Position(selection.start.line, 0);
- var newEndPositionEnd = new vscode.Position(selection.start.line, currentTextEditor.document.lineAt(selection.start.line).range.end.character);
- var newEndSelectionAtFirstLine = new vscode.Selection(newEndPositionStart, newEndPositionEnd);
- selectionStartsWithAntiString = yield this.checkIfSelectionEndsWith(antiString, currentTextEditor, newEndSelectionAtFirstLine); //Check if the current line ENDS with the antistring
- if (selectionStartsWithAntiString === true) {
- return false;
- }
- if (selectionStartsWith === true) {
- return selection;
- }
- for (var i = selectionStartLine; i >= 0; i--) {
- var newStartPosition = new vscode.Position(i, 0);
- var newSelection = new vscode.Selection(newStartPosition, selection.end);
- selectionStartLine = selection.start.line;
- selectionStartsWith = yield this.checkIfSelectionStartsWith(testString, currentTextEditor, newSelection);
- selectionStartsWithAntiString = yield this.checkIfSelectionStartsWith(antiString, currentTextEditor, newSelection); //Checks if this line starts with the antistring
- if (selectionStartsWithAntiString === true) {
- return false;
- }
- newEndPositionStart = new vscode.Position(newSelection.start.line, 0);
- newEndPositionEnd = new vscode.Position(newSelection.start.line, currentTextEditor.document.lineAt(newSelection.start.line).range.end.character);
- newEndSelectionAtFirstLine = new vscode.Selection(newEndPositionStart, newEndPositionEnd);
- selectionStartsWithAntiString = yield this.checkIfSelectionEndsWith(antiString, currentTextEditor, newEndSelectionAtFirstLine); //Check if this line ends with the antistring
- if (selectionStartsWithAntiString === true) {
- return false;
- }
- if (selectionStartsWith === true) {
- return newSelection;
- }
- }
- return false;
- });
- }
- /**
- * Iterates downwards from the given selection until it found a line that begins with the given test string, or the end of the file
- * @param testString text to check if the selection ends with
- * @param currentTextEditor optional. The given text editor
- * @param selection optional. A custom selection
- * @returns false if nothing is found, otherwise a new selection ending with the line
- */
- iterateDownwardsToCheckForString(testString, currentTextEditor, selection) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- var selectionStartLine = selection.end.line;
- var selectionStartsWith = yield this.checkIfSelectionEndsWith(testString, currentTextEditor, selection);
- if (selectionStartsWith === true) {
- return selection;
- }
- var documentEndLine = currentTextEditor.document.lineCount;
- for (var i = selectionStartLine; i < documentEndLine; i++) {
- var lineLength = currentTextEditor.document.lineAt(i).range.end.character;
- var newEndPosition = new vscode.Position(i, lineLength);
- var newSelection = new vscode.Selection(selection.start, newEndPosition);
- selectionStartLine = selection.start.line;
- selectionStartsWith = yield this.checkIfSelectionEndsWith(testString, currentTextEditor, newSelection);
- if (selectionStartsWith === true) {
- return newSelection;
- }
- }
- return false;
- });
- }
- /**
- * Makes a directory with a promise
- * @param path path that will be created
- * @returns promise that resolves into the path
- */
- mkDir(path) {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- fs.mkdir(path, (err) => {
- if (err) {
- vscode.window.showErrorMessage(this._language.get('createFolderError'));
- console.log(err);
- }
- resolve(path);
- });
- }));
- }
- /**
- * Checks if a path to a folder exists
- * @param path string absolute path to the folder
- * @returns promise that resolves to true if path exist, otherwise false.
- */
- folderExists(path) {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- if (fs.existsSync(path)) {
- resolve(true);
- }
- else {
- resolve(false);
- }
- }));
- }
- /**
- * Checks if file Exists
- * @param path path to file
- * @returns true if file exists, otherwise false
- */
- fileExists(path) {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- if (fs.existsSync(path)) {
- resolve(true);
- }
- else {
- resolve(false);
- }
- }));
- }
- /**
- * Parses CSV to JSON
- * @param csvData csv data as String
- * @returns JSON if possible, otherwise false
- */
- parseCSVtoJSON(csvData) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- try {
- var result = Papa.parse(csvData);
- resolve(result);
- }
- catch (e) {
- console.log(e);
- resolve(false);
- }
- }));
- });
- }
- /**
- * Replaces a Selection with a different Text
- * @param replacetext text that replaces the selection
- * @param selection otional. The selection used
- * @param currentTextEditor optional. The editor used
- */
- replaceSelection(replacetext, selection, currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this.getWordsSelection(currentTextEditor);
- }
- const workSpaceEdit = new vscode.WorkspaceEdit();
- workSpaceEdit.replace(currentTextEditor.document.uri, selection, replacetext);
- yield vscode.workspace.applyEdit(workSpaceEdit);
- });
- }
- /**
- * gets the content of a line
- * @param line number of the line
- * @param currentTextEditor optional. The editor the Document is in
- * @returns string of content or null if not possible
- */
- getLineContent(line, currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this.getCurrentTextEditor();
- }
- if (line < 0) {
- return null;
- }
- var lengthOfDocument = currentTextEditor.document.lineCount;
- if (line >= lengthOfDocument) {
- return null;
- }
- var content = yield currentTextEditor.document.lineAt(line).text;
- return content;
- });
- }
- /**
- * returns the directory of a path to a given file
- * @param filepath the full path to the file
- * @returns Folder/ Directory or error
- */
- getFolderFromFilePath(filepath) {
- var filepath;
- return __awaiter(this, void 0, void 0, function* () {
- filepath = yield path.dirname(filepath);
- return (filepath);
- });
- }
- /**
- * adds a Folder to the open Worspaces
- * @param path string to the Folder
- */
- addWorkspaceFolder(path) {
- return __awaiter(this, void 0, void 0, function* () {
- var uri = vscode.Uri.file(path);
- yield vscode.workspace.updateWorkspaceFolders(vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders.length : 0, null, { uri: uri });
- });
- }
-}
-exports.default = Helper;
-//# sourceMappingURL=helper.js.map
\ No newline at end of file
diff --git a/out/helper/helper.js.map b/out/helper/helper.js.map
deleted file mode 100644
index a89da1f..0000000
--- a/out/helper/helper.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/helper/helper.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;AAEH,iCAAiC;AACjC,6BAA6B;AAC7B,yBAAyB;AACzB,4CAAoC;AACpC,kCAAkC;AAElC;IAEI;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;IAGlC,CAAC;IACD;;;OAGG;IACU,eAAe,CAAC,MAAc;;YACvC,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzC,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;gBACvE,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAA,CAAC,CAAC;QAEP,CAAC;KAAA;IAED;;;OAGG;IACU,aAAa,CAAC,MAA0B;;YACjD,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzC,IAAI,MAAM,KAAK,SAAS,EAAE;oBACtB,IAAI,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I,CAAC;aACf;YACD,IAAI,OAAO,GAAW,MAAM,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;YACzE,OAAO,OAAO,CAAC;QACnB,CAAC;KAAA;IAED;;;;OAIG;IACU,qBAAqB,CAAC,QAAgB;;;YAC3C,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;YAC3C,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtB,CAAC;KAAA;IAED;;;OAGG;IACU,kBAAkB,CAAC,IAAY;;YACxC,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QACxJ,CAAC;KAAA;CACJ;AA5sBD,yBA4sBC"}
\ No newline at end of file
diff --git a/out/helper/tableHelper.js b/out/helper/tableHelper.js
index 9553e03..c0f98da 100644
--- a/out/helper/tableHelper.js
+++ b/out/helper/tableHelper.js
@@ -479,8 +479,15 @@ class TableHelper {
currentTextEditor = yield this._helper.getCurrentTextEditor();
}
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- var tableStartRegex = //;
+ var tableStartRegex = //;
var startLineText = currentTextEditor.document.lineAt(selection.start.line).text;
+ var pathSep = [["\\", "\/"], ["\/", "\\"]]; // [[winSep, unixSep],[unixSep, winSep]]
+ for (let i = 0; i < pathSep.length; ++i) {
+ if (startLineText.includes(pathSep[i][0]) && path.sep === pathSep[i][1]) {
+ startLineText = startLineText.replace(pathSep[i][0], pathSep[i][1]);
+ break;
+ }
+ }
var parts = startLineText.match(tableStartRegex);
if (parts.length !== 4) { //If The number of matched string parts from the first line is too long or too short
resolve(false);
diff --git a/out/helper/tableHelper.js.map b/out/helper/tableHelper.js.map
index d2cdcff..c3859b2 100644
--- a/out/helper/tableHelper.js.map
+++ b/out/helper/tableHelper.js.map
@@ -1 +1 @@
-{"version":3,"file":"tableHelper.js","sourceRoot":"","sources":["../../src/helper/tableHelper.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;AAEH,iCAAiC;AACjC,6BAA6B;AAC7B,yBAAyB;AACzB,4CAAoC;AACpC,qCAA8B;AAC9B,kCAAkC;AAClC,qDAA8C;AAE9C;;GAEG;AACH;IAMI;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAc,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,yCAAyC;QACrF,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,CAAC,uCAAuC;IAC9E,CAAC;IAGD;;;OAGG;IACU,kBAAkB;;YAC3B,IAAI,UAAU,GAAQ,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,YAAY,GAAW,UAAU,CAAC;YACtC,IAAI,YAAY,KAAK,EAAE,EAAE;gBACrB,YAAY,GAAG,UAAU,CAAC;aAC7B;YACD,OAAO,YAAY,CAAC;QACxB,CAAC;KAAA;IAED;;OAEG;IACU,4BAA4B;;YACrC,IAAI,UAAU,GAAQ,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;YAC3E,IAAI,YAAY,GAAW,UAAU,CAAC;YACtC,IAAI,YAAY,KAAK,EAAE,EAAE;gBACrB,YAAY,GAAG,iBAAiB,CAAC;aACpC;YACD,OAAO,YAAY,CAAC;QACxB,CAAC;KAAA;IAED;;;;;;;;OAQG;I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H;oBACtK,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;oBACtD,IAAI,IAAI,KAAK,KAAK,EAAE;wBAChB,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,uCAAuC;wBACvE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,YAAY,GAAG,EAAE,CAAC;oBACtB,IAAI,gBAAgB,GAAG,EAAE,CAAC;oBAC1B,gBAAgB,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;oBAC5C,gBAAgB,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;oBAC1C,gBAAgB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC;oBAClC,OAAO,CAAC,YAAY,CAAC,CAAC;iBACzB;YACL,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAjgBD,8BAigBC"}
\ No newline at end of file
+{"version":3,"file":"tableHelper.js","sourceRoot":"","sources":["../../src/helper/tableHelper.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;AAEH,iCAAiC;AACjC,6BAA6B;AAC7B,yBAAyB;AACzB,4CAAoC;AACpC,qCAA8B;AAC9B,kCAAkC;AAClC,qDAA8C;AAE9C;;GAEG;AACH;IAMI;QACI,IAAI,CAAC,SAAS,GA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AI,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;oBACnE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,6HAA6H;oBACtK,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;oBACtD,IAAI,IAAI,KAAK,KAAK,EAAE;wBAChB,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,uCAAuC;wBACvE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,YAAY,GAAG,EAAE,CAAC;oBACtB,IAAI,gBAAgB,GAAG,EAAE,CAAC;oBAC1B,gBAAgB,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;oBAC5C,gBAAgB,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;oBAC1C,gBAAgB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC;oBAClC,OAAO,CAAC,YAAY,CAAC,CAAC;iBACzB;YACL,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAxgBD,8BAwgBC"}
\ No newline at end of file
diff --git a/out/languages/de.js b/out/languages/de.js
deleted file mode 100644
index 92d42f5..0000000
--- a/out/languages/de.js
+++ /dev/null
@@ -1,214 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-class En {
- constructor() {
- this.get = (varname) => {
- var result = this.d[varname];
- if (result === undefined) {
- return varname;
- }
- return result;
- };
- this.d = [];
- // Default folder name for this language. Don't add Spaces at start and end
- this.d['picuteFolderName'] = 'Bilder';
- this.d['yes'] = 'Ja';
- this.d['no'] = 'Nein';
- this.d['ok'] = 'Ok';
- this.d['result'] = 'Resultat';
- this.d['en'] = 'Englisch';
- this.d['de'] = 'Deutsch';
- this.d['fr'] = 'Französisch';
- this.d['noOpenEditors'] = 'Keine offenen Editoren.';
- this.d['tooManyOpenEditors'] = 'Zu viele offenen Editoren. Bitte öffnen Sie nur einen Editor ohne Split View.';
- this.d['ActionErrorNotMarkdown'] = 'Die aktuelle Datei ist keine Markdown-Datei und die aktuelle Aktion kann nicht ausgeführt werden. Bitte eine Markdown-Datei öffnen.';
- this.d['error'] = 'Ein Fehler ist aufgetreten.';
- this.d['checkFile'] = 'Kontrolliere Datei ';
- // //main-navigation
- this.d['projectTitle'] = 'Projekt';
- this.d['cloneExistingRepo'] = "Ein existierendes Repo klonen";
- this.d['newProject'] = 'Neues Projet erstellen';
- this.d['selectFolder'] = 'Ordner auswählen: (aus den offenen Worspace-Ordnern)';
- this.d['repoName'] = "Name des Git-Repos";
- this.d['clone'] = "Klonen";
- this.d['editProject'] = 'Projektdaten bearbeiten';
- this.d['documentTitle'] = 'Dokument';
- this.d['saveChanges'] = 'Änderungen speichern';
- this.d['newFile'] = 'Neue Datei erstellen';
- this.d['undo'] = 'Rückgängig | ctrl+z';
- this.d['redo'] = 'Wiederherstellen | crtl+shift+z';
- this.d['preview'] = 'HTML-Vorschau anzeigen';
- this.d['generateFile'] = 'HTML generieren';
- this.d['convertEntireProject'] = 'Generiere HTML für alle Projektdokumente';
- this.d['generate'] = 'Generieren';
- this.d['conversionProfile'] = 'Konvertierungprofil';
- this.d['blind'] = 'Blind';
- this.d['visuallyImpaired'] = 'Sehbehindert';
- this.d['publishTitle'] = 'Veröffentlichen';
- this.d['checkProject'] = 'Kontrolliere das gesamte Projekt';
- this.d['commitChanges'] = 'Änderungen hochladen';
- this.d['notInsideLecture'] = "Dieses Dokument ist nicht Teil eines Projektes.";
- // //insert textboxes
- this.d['insertTextbox'] = "Annotation/Textbox einfügen ";
- this.d['insertTextboxContent'] = "Inhalt der Anmerkung oder Titel der Textbox/Textrahmen";
- this.d['textFrameCheckbox'] = "Textrahmen";
- this.d['textBoxCheckbox'] = "Textbox";
- this.d['annotation'] = "Anmerkung des Bearbeiters";
- this.d['color'] = "Farbe";
- this.d['colorRed'] = "Rot";
- this.d['colorBlue'] = "Blau";
- this.d['colorBrown'] = "Braun";
- this.d['colorGrey'] = "Grau";
- this.d['colorBlack'] = "Schwarz";
- this.d['colorGreen'] = "Grün";
- this.d['colorYellow'] = "Gelb";
- this.d['colorOrange'] = "Orange";
- this.d['colorViolet'] = "Violet";
- this.d['selectType'] = "Typ auswählen:";
- this.d['titleOfTextbox'] = "Titel der Textbox/Textrahmen";
- this.d['contentOfTextbox'] = "Inhalt der Textbox/Textrahmen";
- this.d['annotationNoTitleError'] = "Es ist kein Titel oder Farbe für die Anmerkung angeegben worden. Diese Attribute werden ignorriert.";
- // //footer-panel
- this.d['emphasis'] = 'Betonung';
- this.d['edit'] = "Bearbeiten";
- this.d['bold'] = 'Fett';
- this.d['italic'] = 'Kursiv';
- this.d['strikethrough'] = 'Durchgestrichen';
- this.d['headline'] = 'Überschrift';
- this.d['headline1'] = 'Überschrift Ebene 1';
- this.d['headline2'] = 'Überschrift Ebene 2';
- this.d['headline3'] = 'Überschrift Ebene 3';
- this.d['headline4'] = 'Überschrift Ebene 4';
- this.d['headline5'] = 'Überschrift Ebene 5';
- this.d['headline6'] = 'Überschrift Ebene 6';
- this.d['list'] = 'Liste';
- this.d['orderedList'] = 'Erzeuge nummerierte Liste';
- this.d['unorderedList'] = 'Erzeuge einfache Liste';
- this.d['table'] = 'Tabelle';
- this.d['insertTable'] = 'Einfügen einer Tabelle';
- this.d['importTableCsv'] = 'Importiere Tabelle aus einer CSV-Datei';
- this.d['editTableLayout'] = "Folgende Tabelle bearbeiten";
- this.d['editTable'] = "Tabelle bearbeiten";
- this.d['noTableFound'] = "Keine Tabelle gefunden";
- this.d['errorTableFileNonExistant'] = "Datei der Tabelle existiert nicht";
- this.d['parsingError'] = "Fehler beim Parsen der Tabelle.";
- this.d['tableInsertionPositionConflictWarning'] = "Warnung: Dieser Inhalt kann nicht innerhalb einer Tabelle platziert werden. Stattdessen wurde es nach der aktuellen Tabelle eingefügt.";
- this.d['insert'] = 'Einfügen';
- this.d['formula'] = 'Formel einfügen';
- this.d['formulaInline'] = 'Einfügen einer Inline-Formel';
- this.d['insertLink'] = 'Link einfügen';
- this.d['insertGraphic'] = 'Bild einfügen';
- this.d['insertFootnote'] = 'Fußnote einfügen';
- this.d['authorAnnotation'] = 'Anmerkung einfügen';
- this.d['formatting'] = 'Formatierungen';
- this.d['blockquote'] = 'Als Zitat formatieren';
- this.d['code'] = 'Formatiere als Quellcode';
- this.d['separator'] = 'Separator';
- this.d['horizontalRule'] = 'Füge horizontale Linie ein';
- this.d['newPage'] = 'Neue Seite einfügen';
- this.d['page'] = 'Seite';
- this.d['slide'] = 'Folie';
- // //git
- this.d['gitUser'] = 'Nutzername (ZIH-Login)';
- this.d['gitCloneSucess'] = "Repo wurde erfolgreich geklont!";
- this.d['gitCloneError'] = "Während des Klonen ist ein Fehler aufgetreten. Überprüfen Sie, ob sie ihren privaten Schlüssel geladen haben.";
- // //new-project
- this.d['noFolder'] = 'Kein Ordner ausgewählt';
- this.d['preface'] = 'Vorwort einfügen';
- this.d['chapters'] = 'Kapitel';
- this.d['appendixChapters'] = 'Kapitel im Anhang';
- this.d['author'] = 'Author';
- this.d['title'] = 'Titel';
- this.d['institution'] = 'Institution';
- this.d['projectLanguage'] = 'Sprache';
- this.d['tableOfContents'] = 'Inhaltsverzeichnis hinzufügen zum Dokument';
- this.d['tocDepthExplanation'] = 'Tiefe des Inhaltsverzeichnisses, nur änderbar wenn es ein Inhaltsverzeichnis gibt';
- this.d['materialSource'] = 'Materialquelle';
- this.d['missingGitServerPath'] = "Git Server Pfad fehlt, dieser muss erst in den Einstellungen festgelegt werden.";
- this.d['somethingWentWrongDuringCreatingNewProject'] = 'Ein unerwarteter Matuc-Fehler ist aufgetreten.';
- this.d['createdProjectSuccessfully'] = "Projekterstellung erfolgreich.";
- // //edit metadata
- this.d['sourceAuthor'] = 'Quell-Author';
- this.d['semYear'] = 'Semester der Bearbeitung';
- this.d['workingGroup'] = 'Arbeitsgruppe';
- this.d['updateEditedData'] = 'Update';
- this.d['toc_Depth'] = 'Tiefe des Inhaltsverziechnisses';
- this.d['updateSuccessfull'] = 'Das Update war erfolgreich.';
- // //commit-changes-dialog
- this.d['commitMessage'] = 'Beschreiben Sie mit wenigen Worten was Sie geändert, ergänzt oder hinzugefügt haben...';
- this.d['commit'] = 'Commit';
- this.d['commitChangesErrorDetail'] = 'Vielleicht ist die Datei im falschen Ordner gespeichert?\n';
- // //matuc
- this.d['matucNotInstalled'] = "Matuc ist nicht installiert. Sie müssen Matuc in der neuesten Version installieren um dieses Feature nutzen zu können.";
- this.d['noConfiguration'] = "Konfigurationsdatei, .lecture_meta_data.dcxml, fehlt im Projekt";
- this.d['unExpectedMatucError'] = 'Ein unerwarteter Matuc-Fehler trat auf';
- this.d['documentHasBeenSaved'] = 'Das aktuelle Dokument wurde gespeichert, weil es für die aktuelle Aktion benötigt wurde.';
- // //editor functions
- this.d["headlineNumberTooSmall"] = "Keine Überschrift möglich, da die gegebene Überschriftengröße außerhalb des möglichen Bereiches liegt. Die größte Überschriftengröße ist H1.";
- this.d["headlineNumberTooBig"] = "Keine Überschrift möglich, da die gegebene Überschriftengröße außerhalb des möglichen Bereiches liegt. Die kleinste Überschriftengröße ist H6.";
- this.d["headlineInsertedWithGrade"] = "Überschrift wurde eingefügt mit Größe : H";
- this.d['importTableFromCsvError'] = 'Fehler beim Importieren der Tabelle.';
- this.d['writingCSVTableFileError'] = 'Ein Fehler ist aufgetreten beim exportieren und speichern in eine CSV-Tabelle.';
- this.d['originalTableNotFound'] = "Die Originaltablelle, die bearbeitet wurde konnte nicht gefunden werden. Stattdessen wurde die Tabelle in der aktuellen Zeile eingefügt.";
- this.d['hasBeenWritten'] = 'wurde geschrieben';
- this.d['filehasBeenWritten'] = "Datei wurde gespeichert: ";
- //insert link dialog
- this.d['linkText'] = 'Link Text';
- this.d['linkTitle'] = 'Link Titel (optional)';
- this.d['link'] = 'URL';
- this.d['insertLinkSubmit'] = 'Einfügen';
- // //insert table dialog
- this.d['tableHeadCheckbox'] = 'Tabellenkopfzeile einfügen';
- this.d['tableType'] = 'Tabellentyp';
- this.d['simpleTable'] = "Simple Tabelle";
- this.d['pipeTable'] = "Pipe Tabelle";
- this.d['gridTable'] = "Raster Tabelle";
- this.d['rows'] = 'Reihen';
- this.d['row'] = 'Reihe';
- this.d['columns'] = 'Spalten';
- this.d['column'] = 'Spalte';
- this.d['thereAreNoTableInFolder'] = 'Es wurden keine Tabellen in dem Ordner gefunden.';
- this.d['selectTable'] = '... oder wähle hier eine aus';
- this.d['importTableError'] = "Fehler während des Tabellenimports";
- this.d['selectImageFile'] = 'Bild hier auswähen:';
- this.d['altText'] = 'Alternativtext';
- this.d['outsourceCheckbox'] = 'Beschreibung auslagern';
- this.d['thereAreNoPicturesInFolder'] = "Keine Bilder in dem Ordner gefunden: ";
- this.d['noPictureFolderFound'] = "Kein Bilderordner gefunden, bitte Bilder zu folgendem Ordner hinzufügen: ";
- this.d['or'] = 'oder';
- this.d['graphicsUri'] = 'Grafiklink hier einfügen:';
- this.d['graphicTitle'] = 'Titel für Bild';
- this.d['somethingWentWrongDuringInsertOfGraphic'] = 'Ein unerwarteter Fehler ist aufgetreten beim Einfügen des Bildes';
- this.d['imagesMdHasBeenWritten'] = 'wurde geschrieben';
- this.d['selectPictureFromHere'] = 'Bitte Auswählen:';
- // //insert footnote dialog
- this.d['footLabel'] = 'Label für die Fußnote';
- this.d['footText'] = 'Text in der Fußnote';
- this.d['footLabelError'] = 'Ungültiges Label';
- this.d['footLabelErrorDetail'] = 'Label wurde bereits genutzt. Bitte ein anderes Label verweden.';
- // //import csv dialog
- this.d['uriTable'] = 'Tabellenlink hier einfügen';
- // //mistkerl
- this.d['mistkerlDidNotFindAnyErrorAndSavedFile'] = 'Gespeichert.';
- this.d['mistkerlDidNotFindAnyError'] = 'Es wurden keine Fehler gefunden.';
- this.d['abort'] = "Abbrechen";
- this.d['pagenumbering'] = 'Seitennummerierung';
- this.d['doYouWantToAutocorrect'] = 'Wenn die Seitennummerierung automatisch korrigiert werden soll, muss folgende Checkbox ausgewählt werden. Wenn nicht müssen die Seitennummern manuell korrigiert werden.';
- this.d['autocorrectPagenumberingCheckbox'] = 'Seitennummerierung automatisch korrigieren';
- this.d['checkLine'] = 'Zeiel überprüfen: ';
- // Reading Files and Folders
- this.d['readingFileError'] = 'Ein unerwarteter Fehler ist aufgetreten beim Lesen der Datei.';
- this.d['importedFrom'] = 'importiert von';
- this.d['createFolderError'] = "Es ist ein Fehler beim erstellen des Ordners augetreten.";
- this.d['linuxNotSupportedYet'] = "Linux wird leider noch nicht unterstützt.";
- this.d['noFileSelected'] = "Keine Datei ausgewählt.";
- this.d['gitIsNotEnabled'] = "Git ist nicht aktiviert. Zu den Einstellungen -> Erweiterungen -> AGSBS und Git aktivieren um diese Funktion zu nutzen.";
- this.d['sidebarWelcome'] = "Wilkommen bei AGSBS!";
- this.d['MatucIsInstalledWarning'] = "Matuc ist NICHT installiert! Manche Funktionen werden nicht verfügbar sein.";
- this.d['osDocumentsFolderName'] = "Dokumente"; //The folder name of the documents folder in the userspace
- this.d['preview'] = "Vorschau";
- this.d['previewNotAvailableCheckWorspaceFolder'] = "Die Vorschau ist aktuell nicht verfügbar. Bitte überprüfen Sie, ob der Ordner, in dem sich die aktuelle Datei befindet, als Workspace-Ordner geöffnet ist (auf der linken Seite des Editors).";
- }
-}
-exports.default = En;
-//# sourceMappingURL=de.js.map
\ No newline at end of file
diff --git a/out/languages/de.js.map b/out/languages/de.js.map
deleted file mode 100644
index 2672e5f..0000000
--- a/out/languages/de.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"de.js","sourceRoot":"","sources":["../../src/languages/de.ts"],"names":[],"mappings":";;AAEA;IAIC;QA6NO,QAAG,GAAG,CAAC,OAAO,EAAE,EAAE;YACxB,IAAI,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,MAAM,KAAK,SAAS,EAAE;gBACzB,OAAO,OAAO,CAAC;aACf;YACD,OAAO,MAAM,CAAC;QACf,CAAC,CAAA;QAlOA,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;QAEZ,2EAA2E;QAC3E,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,QAAQ,CAAC;QACtC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;QAC1B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;QACzB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC;QAC7B,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,yBAAyB,CAAC;QACpD,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,GAAG,+EAA+E,CAAC;QAC/G,IAAI,CAAC,CAAC,CAAC,wBAAwB,CAAC,GAAG,qIAAqI,CAAC;QACzK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,6BAA6B,CAAC;Q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out/languages/en.js
deleted file mode 100644
index 6aac089..0000000
--- a/out/languages/en.js
+++ /dev/null
@@ -1,303 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-class En {
- constructor() {
- this.get = (varname) => {
- var result = this.d[varname];
- if (result === undefined) {
- return varname;
- }
- return result;
- };
- this.d = [];
- // Default folder name for this language. Don't add Spaces at start and end
- this.d['picuteFolderName'] = 'pictures';
- this.d['yes'] = 'Yes';
- this.d['no'] = 'No';
- this.d['ok'] = 'Ok';
- this.d['result'] = 'Result';
- this.d['en'] = 'English';
- this.d['de'] = 'German';
- this.d['fr'] = 'French';
- this.d['noOpenEditors'] = 'No open Editors.';
- this.d['tooManyOpenEditors'] = 'Too many open editors. Please just open one file and without a split view.';
- this.d['ActionErrorNotMarkdown'] = 'The current File is not a Markdown file and the current Action cannot be executed. Please open a Markdown File.';
- this.d['error'] = 'A error occurs';
- this.d['checkFile'] = 'Check file ';
- // //main-navigation
- this.d['projectTitle'] = 'Project';
- this.d['cloneExistingRepo'] = "Clone an existing repo";
- this.d['newProject'] = 'Create new project';
- this.d['selectFolder'] = 'Select Folder: (from the open workspace folders)';
- this.d['repoName'] = "Git repo name";
- this.d['clone'] = "Clone";
- this.d['editProject'] = 'Edit project data';
- this.d['documentTitle'] = 'Document';
- this.d['saveChanges'] = 'Save changes';
- this.d['newFile'] = 'create new file';
- this.d['undo'] = 'Undo | ctrl+z';
- this.d['redo'] = 'Redo | crtl+shift+z';
- this.d['preview'] = 'Show html preview';
- this.d['generateFile'] = 'Generate HTML';
- this.d['convertEntireProject'] = 'Generate HTML for all project files';
- this.d['generate'] = 'Generate';
- this.d['conversionProfile'] = 'conversion profile';
- this.d['blind'] = 'blind';
- this.d['visuallyImpaired'] = 'visually impaired';
- this.d['publishTitle'] = 'Publish';
- this.d['checkProject'] = 'Check entire project';
- this.d['commitChanges'] = 'Upload changes';
- this.d['notInsideLecture'] = "This Document is not inside a lecture.";
- // //insert textboxes
- this.d['insertTextbox'] = "Add annotation/text box ";
- this.d['insertTextboxContent'] = "Content of annotation or title of textbox/textframe";
- this.d['textFrameCheckbox'] = "text frame";
- this.d['textBoxCheckbox'] = "text box";
- this.d['annotation'] = "Annotation of the transcriber";
- this.d['color'] = "Color";
- this.d['colorRed'] = "Red";
- this.d['colorBlue'] = "Blue";
- this.d['colorBrown'] = "Brown";
- this.d['colorGrey'] = "Grey";
- this.d['colorBlack'] = "Black";
- this.d['colorGreen'] = "Green";
- this.d['colorYellow'] = "Yellow";
- this.d['colorOrange'] = "Orange";
- this.d['colorViolet'] = "Violett";
- this.d['selectType'] = "Select type:";
- this.d['titleOfTextbox'] = "Title of the textbox/textframe";
- this.d['contentOfTextbox'] = "Content of the textbox/textframe or annotation";
- // this.d['allColors'] = "colorRed, colorBlack, colorGreen, colorYellow, colorOrange, colorBlue, colorBrown, colorGrey, colorViolet";
- this.d['annotationNoTitleError'] = "there is no title or color for an annotation. These attributes will be ignored.";
- // //footer-panel
- this.d['emphasis'] = 'Emphasis';
- this.d['edit'] = "Edit";
- this.d['bold'] = 'Bold';
- this.d['italic'] = 'Italic';
- this.d['strikethrough'] = 'Strikethrough';
- this.d['headline'] = 'Headline';
- this.d['headline1'] = 'First level headline';
- this.d['headline2'] = 'Second level headline';
- this.d['headline3'] = 'Third level headline';
- this.d['headline4'] = 'Fourth level headline';
- this.d['headline5'] = 'Fifth level headline';
- this.d['headline6'] = 'Sixth level headline';
- this.d['list'] = 'List';
- this.d['orderedList'] = 'Create ordered list';
- this.d['unorderedList'] = 'Create unordered list';
- this.d['table'] = 'Table';
- this.d['insertTable'] = 'Insert table';
- this.d['importTableCsv'] = 'Import table from csv';
- this.d['editTableLayout'] = "Edit the Table below";
- this.d['editTable'] = "Edit Table";
- this.d['noTableFound'] = "No table found";
- this.d['errorTableFileNonExistant'] = "File of the table does not exist";
- this.d['parsingError'] = "Error parsing Table";
- this.d['tableInsertionPositionConflictWarning'] = "Warning: This content cannot be placed inside a table. Instead, it was appended after this table.";
- this.d['insert'] = 'Insert';
- this.d['formula'] = 'Insert formula';
- this.d['formulaInline'] = 'Insert inline formula';
- this.d['insertLink'] = 'Insert link';
- this.d['insertGraphic'] = 'Insert graphic';
- this.d['insertFootnote'] = 'Insert footnote';
- this.d['authorAnnotation'] = 'Insert annotation';
- this.d['formatting'] = 'Formatting';
- this.d['blockquote'] = 'Create blockquote';
- this.d['code'] = 'Format as code';
- this.d['separator'] = 'Separator';
- this.d['horizontalRule'] = 'Add horizontal rule';
- this.d['newPage'] = 'Add new page';
- this.d['page'] = 'Page';
- this.d['slide'] = 'Slide';
- // //git
- this.d['gitUser'] = 'Username (ZIH-Login)';
- this.d['gitCloneSucess'] = "Repo was cloned successfully!";
- this.d['gitCloneError'] = "An error occurs during the cloning. Check whether you load your private key.";
- // //new-project
- this.d['noFolder'] = 'No folder set';
- this.d['preface'] = 'Add a preface to the document.';
- this.d['chapters'] = 'Chapters';
- this.d['appendixChapters'] = 'Appendix chapters';
- this.d['author'] = 'Author';
- this.d['title'] = 'Title';
- this.d['institution'] = 'Institution';
- this.d['projectLanguage'] = 'Language';
- this.d['tableOfContents'] = 'Add a table of contents to the document.';
- this.d['tocDepthExplanation'] = 'Depth of table of contents, only changeable if table of contents is set';
- this.d['materialSource'] = 'Material source';
- this.d['missingGitServerPath'] = "Git server path is missing, you have to add one in the settings first.";
- this.d['somethingWentWrongDuringCreatingNewProject'] = 'An unexpected matuc error occured';
- this.d['createdProjectSuccessfully'] = "Creation of project successfull.";
- // //edit metadata
- this.d['sourceAuthor'] = 'Source author';
- this.d['semYear'] = 'Semester of edit';
- this.d['workingGroup'] = 'Working group';
- this.d['updateEditedData'] = 'Update';
- this.d['toc_Depth'] = 'Depth of table of content';
- this.d['updateSuccessfull'] = 'The update was successfull.';
- // //commit-changes-dialog
- this.d['commitMessage'] = 'Leave a few words about the changes you made...';
- this.d['commit'] = 'Commit';
- this.d['commitChangesErrorDetail'] = 'Maybe the file is stored in a wrong directory?\n';
- // //matuc
- this.d['matucNotInstalled'] = "Matuc is not installed. You have to install the latest Matuc version to use this feature.";
- this.d['noConfiguration'] = "No configuration, .lecture_meta_data.dcxml, in a directory exists in this project";
- this.d['unExpectedMatucError'] = 'An unexpected matuc error occured';
- this.d['documentHasBeenSaved'] = 'The current document has been saved, as it was neccessary for the execution of this action.';
- // //editor functions
- this.d["headlineNumberTooSmall"] = "Headline cannot be changed or created because the given headline size is out of range. The maximum headline size is H1.";
- this.d["headlineNumberTooBig"] = "Headline cannot be changed or created because the given headline size is out of range. The minimum headline size is H6.";
- this.d["headlineInsertedWithGrade"] = "Headline was inserted with grade: H";
- this.d['importTableFromCsvError'] = 'Failed to import table';
- this.d['writingCSVTableFileError'] = 'A Error occured during the export and saving of the table to a CSV-File.';
- this.d['originalTableNotFound'] = "Original Table that has been edited could not be found. Instead, the table was inserted at the start of the current line.";
- this.d['hasBeenWritten'] = 'has been written';
- this.d['filehasBeenWritten'] = "file has been written: ";
- //insert link dialog
- this.d['linkText'] = 'Link text';
- this.d['linkTitle'] = 'Link title (optional)';
- this.d['link'] = 'URL';
- this.d['insertLinkSubmit'] = 'Insert';
- // //insert table dialog
- this.d['tableHeadCheckbox'] = 'Add a head to the table';
- this.d['tableType'] = 'Table Type';
- this.d['simpleTable'] = "Simple Table";
- this.d['pipeTable'] = "Pipe Table";
- this.d['gridTable'] = "Grid Table";
- this.d['rows'] = 'Rows';
- this.d['row'] = 'Row';
- this.d['columns'] = 'Columns';
- this.d['column'] = 'Column';
- this.d['thereAreNoTableInFolder'] = 'No tables found in folder.';
- this.d['selectTable'] = '...or select it from here';
- this.d['importTableError'] = "Error during table import";
- this.d['selectImageFile'] = 'Select the Image here';
- this.d['altText'] = 'Alt text';
- this.d['outsourceCheckbox'] = 'outsource Description';
- this.d['thereAreNoPicturesInFolder'] = "No pictures found in folder: ";
- this.d['noPictureFolderFound'] = "No folder for pictures found, please add pictures to folder: ";
- this.d['or'] = 'or';
- this.d['graphicsUri'] = 'paste graphic\'s link here';
- this.d['graphicTitle'] = 'Title for graphic';
- this.d['somethingWentWrongDuringInsertOfGraphic'] = 'An unexpected matuc error occured';
- this.d['imagesMdHasBeenWritten'] = 'has been written';
- this.d['selectPictureFromHere'] = 'select from here:';
- // //insert footnote dialog
- this.d['footLabel'] = 'Label for footnote';
- this.d['footText'] = 'Text in footnote';
- this.d['footLabelError'] = 'Invalid label';
- this.d['footLabelErrorDetail'] = 'Label is already used. Please enter another label.';
- // //import csv dialog
- this.d['uriTable'] = 'Insert table link here';
- // //mistkerl
- this.d['mistkerlDidNotFindAnyErrorAndSavedFile'] = 'Saved.';
- this.d['mistkerlDidNotFindAnyError'] = 'No errors have been detected.';
- this.d['abort'] = "Cancel";
- this.d['pagenumbering'] = 'Pagenumbering';
- this.d['doYouWantToAutocorrect'] = 'If you want to automatically correct the Pagenumbering check the following box. Otherwise you have to do it manually.';
- this.d['autocorrectPagenumberingCheckbox'] = 'Autocorrect Pagenumbering';
- this.d['checkLine'] = 'Check line: ';
- // Reading Files and Folders
- this.d['readingFileError'] = 'An unexpected error occured reading the file.';
- this.d['importedFrom'] = 'imported from';
- this.d['createFolderError'] = "Error creating folder.";
- this.d['linuxNotSupportedYet'] = "Linux is not supported yet.";
- this.d['noFileSelected'] = "No File Selected.";
- this.d['gitIsNotEnabled'] = "Git is not enabled. Go to Settings -> Extensions -> AGSBS and enable Git to use this function.";
- this.d['sidebarWelcome'] = "Welcome to AGSBS!";
- this.d['MatucIsInstalledWarning'] = "Matuc is NOT installed! Some features might not work.";
- this.d['osDocumentsFolderName'] = "Documents"; //The folder name of the documents folder in the userspace
- this.d['preview'] = "Preview";
- this.d['previewNotAvailableCheckWorspaceFolder'] = "The Preview is currently not available. Please check if the folder (the current file is in) is open as a workspace folder on the left.";
- //unused:
- // this.d['SelectedWrongFileErrorDetail'] = 'Please select a .md or .html file.';
- // this.d['changesFromEditProjectDialogSaved'] = 'Your changes has been saved.';
- // this.d['wrongMatucVersion'] = "You have to install the latest Matuc version. Latest version is ${version}.";
- // this.d['begin'] = "Begin";
- // this.d['end'] = "End";
- // this.d['errorMessage'] = 'Error message is:';
- // this.d['addContentHere'] = "Add AND FORMAT CONTENT HERE";
- // //temporary warnings
- // this.d['noGitSupportJet'] = 'Git is not supported';
- // this.d['noGitSupportJetDetail'] = 'We are working on it, please try again later';
- // this.d['languageTitle'] = 'Language';
- // this.d['english'] = 'Englisch';
- // this.d['german'] = 'German';
- // //dialog
- // this.d['close'] = 'close';
- // this.d['submit'] = 'Submit';
- // this.d['textboxContentPlaceholder'] = "Only required for annotation of the transcriber";
- //this.d['textBox'] = "text frame";
- // this.d['textFrame'] = "text box";
- // this.d['gitPassword'] = 'Password';
- // this.d['useGit'] = 'Use a given git repository';
- // this.d['directory'] = 'Directory';
- // this.d['source'] = 'Source';
- //this.d['tocDepth'] = 'Depth';
- // this.d['create'] = 'Create';
- // this.d['newProjectDialogMissingGitValue'] = 'Missing git value';
- // this.d['newProjectDialogMissingGitValueSource'] = 'Please enter your git path or dismiss adding a git repository.';
- // this.d['newProjectDialogMissingGitValueUsername'] = 'Please enter your git username or dismiss adding a git repository.';
- // this.d['newProjectDialogMissingGitValuePassword'] = 'Please enter your git password or dismiss adding a git repository.';
- // this.d['newProjectDialogNoPath'] = 'No path is set';
- // this.d['newProjectDialogNoPathDetail'] = 'Please choose a path where you want to save your new project.';
- // this.d['newProjectDialogNoChapters'] = 'No Chapters Set';
- // this.d['newProjectDialogNoChaptersDetail'] = 'There is no way to create a project with 0 chapters.';
- // this.d['newProjectDialogMissingMetadataValue'] = 'Missing Metadata';
- // this.d['newProjectDialogMissingMetadataValueTitle'] = 'Please enter the name of your project.';
- // this.d['newProjectDialogMissingMetadataValueAuthor'] = 'Please enter your name, your nickname or the name of someone else.';
- // this.d['newProjectDialogMissingMetadataValueInstitution'] = 'Please enter the name of your Institution (i.e. university, company, mom).';
- // this.d['edit'] = 'Save';
- // this.d['alternatePrefix'] = 'Use "A" as prefix to appendix chapter numbering and turn the extra heading "appendix" (or translated equivalent) off';
- // this.d['outputFormat'] = 'Output format';
- // this.d['appendixPrefix'] = 'Appendix Prefix';
- // this.d['SelectedWrongFileError'] = 'File does not belong to your project';
- // this.d['somethingWentWrongDuringSavingProjectMetadata'] = 'An unexpected matuc error occured';
- // this.d['commitChangesSuccess'] = 'Your changes have been committed successfully.';
- // this.d['commitChangesError'] = 'Your changes could not have been committed.';
- // this.d['userWantsToCommitChanges'] = 'Do you want to commit your changes now?';
- // //view functions
- // this.d['noMdWarningPreview'] = 'No markdown file';
- // this.d['noMdDetailPreview'] = 'Please open a markdown file (*.md) to preview.';
- // this.d['head'] = 'Head';
- // this.d['field'] = 'Field';
- // this.d['toFastError'] = 'You are too fast, Dude';
- // this.d['toFastErrorDetails'] = 'Please, do not treat the table this hard.';
- // this.d['selectTableType'] = 'Table type';
- // this.d['ErrorNoTable'] = 'No tables found!';
- // this.d['noMdWarningGenerate'] = 'No markdown file';
- // this.d['noMdDetailGenerate'] = 'Please select a markdown file (*.md) to generate a html file.';
- // this.d['headlineError'] = 'No headline possible';
- // this.d['headlineErrorDetail'] = 'Only a fully selected line can be declared as headline.';
- // this.d['blockquoteError'] = 'No blockquote possible';
- // this.d['blockquoteErrorDetail'] = 'Only a fully selected line can be declared as blockquote.';
- // this.d['addHorizontalRuleError'] = 'No horizontal rule possible';
- // this.d['addHorizontalRuleErrorDetail'] = 'Text can not be set as horizontal rule.';
- // this.d['addListError'] = 'No list possible';
- // this.d['addListErrorDetail'] = 'Only fully selected lines can be set as list items.';
- // this.d['importTableFromCsvErrorDetail'] = 'Can not replace text by table from CSV.';
- // this.d['AddPageNumberError'] = 'Error during the generation of the page number. Matuc-Message is';
- //this.d['multilineTable'] = "Multiline Table";
- // this.d['addTableToFolder'] = 'Save csv tables in folder ';
- // this.d['importTableErrorText'] = "Check the csv table";
- // //insert graphic dialog
- // this.d['selectMdFile'] = 'Open .md file';
- // this.d['selectPicture'] = 'Found picture';
- // this.d['graphicFile'] = 'Pick a file';
- // this.d['thereAreNoCsvFileInFolder'] = "No csv-file found in folder or the file names contain spaces.";
- // this.d['addPictureToFolder'] = "Save pictures in folder ";
- // this.d['addCsvFileToFolder'] = "Save csvlfile in folder ";
- // this.d['ErrorNoPicture'] = "Not pictures found!";
- // this.d['ErrorNoCsvFile'] = "Not csv files found!";
- // this.d['import'] = 'Import';
- // this.d['mistkerlFoundGlobalError'] = 'A global error in your markdown occured.';
- // this.d['mistkerlFoundErrorInFile'] = 'There are errors in ';
- // this.d['line'] = 'Line ';
- // //dialog warningPagenumbering
- // this.d['warningPagenumbering'] = "Warning";
- // this.d['correct'] = "Correct";
- // this.d['textAutoCorrection'] = "Press Correct if the page number\n should be corrected automatically.\n Press Abort for a manually correction!";
- }
-}
-exports.default = En;
-//# sourceMappingURL=en.js.map
\ No newline at end of file
diff --git a/out/languages/en.js.map b/out/languages/en.js.map
deleted file mode 100644
index a3f76a7..0000000
--- a/out/languages/en.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/languages/en.ts"],"names":[],"mappings":";;AAEA;IAIC;QAoUO,QAAG,GAAG,CAAC,OAAO,EAAE,EAAE;YACxB,IAAI,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,MAAM,KAAK,SAAS,EAAE;gBACzB,OAAO,OAAO,CAAC;aACf;YACD,OAAO,MAAM,CAAC;QACf,CAAC,CAAA;QAzUA,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;QAEZ,2EAA2E;QAC3E,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC;QACxC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC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;QACrD,8FAA8F;QAC9F,yDAAyD;QACzD,kGAAkG;QAClG,qEAAqE;QACrE,uFAAuF;QACvF,gDAAgD;QAChD,yFAAyF;QACzF,wFAAwF;QACxF,sGAAsG;QAEtG,gDAAgD;QAChD,8DAA8D;QAC9D,2DAA2D;QAC3D,0BAA0B;QAC1B,6CAA6C;QAC7C,8CAA8C;QAC9C,0CAA0C;QAC1C,0GAA0G;QAC1G,8DAA8D;QAC9D,8DAA8D;QAC9D,qDAAqD;QACrD,sDAAsD;QACtD,gCAAgC;QAEhC,oFAAoF;QACpF,gEAAgE;QAChE,6BAA6B;QAE7B,gCAAgC;QAChC,+CAA+C;QAC/C,kCAAkC;QAElC,sLAAsL;IAEvL,CAAC;CAUD;AAhVD,qBAgVC"}
\ No newline at end of file
diff --git a/out/matucCommands.js b/out/matucCommands.js
deleted file mode 100644
index 86a6d38..0000000
--- a/out/matucCommands.js
+++ /dev/null
@@ -1,506 +0,0 @@
-"use strict";
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * @author Jens Voegler
- * @author Lucas Vogel
- * This Code was written under the supervision of Jens Voegler and ported to VSCode from Lucas Vogel with minimal changes.
- */
-const vscode = require("vscode");
-const languages_1 = require("./languages");
-const helper_1 = require("./helper/helper");
-const osLocale = require('os-locale');
-const path = require('path');
-const exec = require('child_process').exec;
-/**
- * This Class contains all Functions regarding matuc
- */
-class MatucCommands {
- constructor() {
- this._language = new languages_1.default;
- this._helper = new helper_1.default;
- }
- /**
- * Check if Matuc is installed on the device.
- * @returns true if installed, otherwise false.
- */
- matucIsInstalled() {
- return __awaiter(this, void 0, void 0, function* () {
- var result = yield this.getMatucVersion();
- if (result !== false) {
- return true;
- }
- else {
- return false;
- }
- });
- }
- /**
- * Get the installed Version of Matuc.
- * @returns version of Matuc if installed, otherwise false.
- */
- getMatucVersion() {
- return __awaiter(this, void 0, void 0, function* () {
- var cmd = "";
- cmd += `matuc_js version`;
- return new Promise(function (resolve, reject) {
- try {
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- resolve(false);
- }
- if (stdout.includes("result") && stdout.includes("version")) {
- var fragment;
- try {
- fragment = JSON.parse(stdout);
- }
- catch (e) {
- resolve(false);
- }
- let result = fragment["result"]["version"];
- if (result !== undefined && result !== null) {
- resolve(result);
- }
- }
- else {
- resolve(false);
- }
- });
- }
- catch (e) {
- resolve(false);
- }
- });
- });
- }
- /**
- * Generats an image description using matuc.
- * @param desc Description of the image
- * @param outsourced Boolean, if the description is outsourced or nor
- * @param currentPath the current working directory, is used to determine the current working directory (cwd)
- * @param title title of the image, is used in the outsourced matuc picture description file
- * @param relPathToImg path to the image in a relative form
- */
- imageDescription(desc, outsourced, currentPath, title, relPathToImg) {
- var cmd = "";
- if (desc.includes("\n")) {
- outsourced = true;
- desc = desc.replace(/\n/g, '\\n'); //TODO: Check if neccessary
- }
- cmd += `matuc_js imgdsc -d \"${desc}\" `;
- cmd = outsourced ? cmd + '-o ' : cmd;
- cmd = title ? cmd + '-t "' + title + '" ' : cmd;
- cmd += `${relPathToImg}`;
- console.log(cmd);
- return new Promise(function (resolve, reject) {
- exec(cmd, { cwd: currentPath }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- let fragment = JSON.parse(stdout);
- reject(fragment.error + "\n" + fragment.usage);
- }
- let fragment = JSON.parse(stdout);
- resolve(fragment.result);
- });
- });
- }
- /**
- * Get what pagenumber has to be inserted at a specific point in a fole
- * @param selection optional. the selection, only the start-line of the selection will be handled
- * @param currentTextEditor optional. The TextEditor to work with.
- */
- addPageNumber(selection, currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this._helper.getCurrentTextEditor();
- }
- if (selection === undefined) {
- selection = this._helper.getWordsSelection(currentTextEditor);
- }
- var line = selection.start.line;
- var thisPath = currentTextEditor.document.uri.path;
- var cmd = `matuc_js addpnum -f ${thisPath} ${line}`;
- return new Promise(function (resolve, reject) {
- try {
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- try {
- let fragment = JSON.parse(stdout);
- reject(fragment.error + "\n" + fragment.usage);
- }
- catch (e) {
- resolve(false);
- }
- }
- try {
- let fragment = JSON.parse(stdout);
- resolve(fragment.result.pagenumber);
- }
- catch (e) {
- resolve(false);
- }
- });
- }
- catch (e) {
- resolve(false);
- }
- });
- });
- }
- /**
- * Initializes a Metadata-File
- * @param path path to the document where the Metadata applies
- */
- initMetaData(path) {
- return __awaiter(this, void 0, void 0, function* () {
- // see matuc-commands.js line 183
- return new Promise(function (resolve, reject) {
- exec('matuc conf init', { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- return reject(error);
- }
- resolve({ out: stdout, err: stderr });
- });
- });
- });
- }
- /**
- * Updates the Metadata
- * @param alternatePrefix if the Checkbox "Appendix Prefix" is checked. the type is not clear but most propably a boolean.
- * @param outputFormat aparently not used and not documented in the original matuc code of Atom.
- * @param editor Author of the Project
- * @param institution Institution where this is written
- * @param title Title of the Project
- * @param language Language the Project is written in
- * @param source Material source that is used
- * @param sourceAuthor Source Author that is used
- * @param semYear Semester this the project is written
- * @param tocDepth depth of the table of content
- * @param workingGroup Working Group of the Author
- * @param path Path to the Folder
- */
- updateMetaData(alternatePrefix, outputFormat, editor, institution, title, language, source, sourceAuthor, semYear, tocDepth, workingGroup, path) {
- return __awaiter(this, void 0, void 0, function* () {
- // multiple parameters are needed
- var cmd;
- cmd = 'matuc_js conf update ';
- cmd = alternatePrefix ? cmd + '-a ' : cmd;
- cmd = editor ? cmd + '-e "' + editor + '" ' : cmd;
- cmd = institution ? cmd + '-i "' + institution + '" ' : cmd;
- cmd = title ? cmd + '-l "' + title + '" ' : cmd;
- cmd = language ? cmd + '-L "' + language + '" ' : cmd;
- cmd = source ? cmd + '-s "' + source + '" ' : cmd;
- cmd = sourceAuthor ? cmd + '-A "' + sourceAuthor + '" ' : cmd;
- cmd = semYear ? cmd + '-S "' + semYear + '" ' : cmd;
- cmd = tocDepth ? cmd + '--toc-depth ' + tocDepth + ' ' : cmd;
- cmd = workingGroup ? cmd + '-w "' + workingGroup + '" ' : cmd;
- console.log("cmd update " + cmd);
- return new Promise(function (resolve, reject) {
- exec(cmd, { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- return reject(error);
- }
- resolve({ out: stdout, err: stderr });
- });
- });
- });
- }
- /**
- * Checks all markdown files in the project folder invoking mistkerl and saves the currend opened file, executes `matuc_js mk`
- */
- checkEntireProject(path, currentTextEditor) {
- var path;
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this._helper.getCurrentTextEditor();
- }
- var filepath = currentTextEditor.document.uri.fsPath;
- var folderpath = yield this._helper.getFolderFromFilePath(filepath);
- var folderpathAbove = folderpath.substr(0, folderpath.lastIndexOf("/")); //Go one Folder above to the root oh the project
- path = folderpathAbove;
- var cmd = `matuc_js mk \"${path}\"`;
- currentTextEditor.document.save();
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- console.log(cmd);
- console.error(`exec error: ${error}`);
- return;
- }
- var mistkerl = JSON.parse(stdout);
- if (typeof mistkerl.result === 'string') {
- vscode.window.showInformationMessage(this._language.get("mistkerlDidNotFindAnyError"));
- }
- else {
- vscode.window.showErrorMessage(mistkerl.result);
- }
- });
- });
- }
- /**
- * Checks if a File is within the lecture
- * @param pathToFile absolute path to the file
- */
- checkIfFileIsWithinLecture(pathToFile) {
- return __awaiter(this, void 0, void 0, function* () {
- var cmd;
- cmd = `matuc_js iswithinlecture \"${pathToFile}\"`;
- console.log("cmd checkIfFileIsWithinLecture : " + cmd);
- var isWithinLecture;
- return new Promise(function (resolve, reject) {
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError"));
- reject(error);
- }
- isWithinLecture = JSON.parse(stdout).result['is within a lecture'];
- resolve(isWithinLecture);
- });
- });
- });
- }
- /**
- * Loads and show config, .lecture_meta_data.dcxml, of project.
- * @param path
- */
- showConfig(path) {
- return __awaiter(this, void 0, void 0, function* () {
- var cmd;
- if (process.platform === 'win32') {
- cmd = `matuc_js conf show`;
- }
- if (process.platform === 'darwin') {
- cmd = 'matuc_js conf show ';
- }
- if (process.platform === 'linux') {
- vscode.window.showErrorMessage(this._language.get("linuxNotSupportedYet"));
- return false;
- }
- return new Promise(function (resolve, reject) {
- console.log("Execute");
- exec(cmd, { cwd: path }, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError"));
- resolve(false);
- }
- var currentConfig = JSON.parse(stdout);
- resolve(currentConfig.result['Current settings']);
- });
- });
- });
- }
- /**
- * Creates a new matuc project, executes `matuc_js new`
- * @param {int} countOfAppendixChapters The count of chapters in appendix
- * @param {int} countOfChapters The count of chapters
- * @param {boolean} preface Whether a preface shall be added
- * @param {string} language Sets the language for the matuc project
- * @param {string} path Sets the path where the project shall be stored
- */
- newProject(countOfAppendixChapters, countOfChapters, preface, language, path) {
- return __awaiter(this, void 0, void 0, function* () {
- var cmd = 'matuc new ';
- cmd = countOfAppendixChapters ? cmd + '-a ' + countOfAppendixChapters + ' ' : cmd;
- cmd = countOfChapters !== null ? cmd + '-c ' + countOfChapters + ' ' : cmd;
- cmd = preface === true ? cmd + '-p ' : cmd;
- cmd = language !== null ? cmd + '-l ' + language + ' ' : cmd;
- cmd = path !== null ? cmd + "\"" + path + "\"" : cmd + '.';
- console.log("command is " + cmd);
- return new Promise(function (resolve, reject) {
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- return reject(error);
- }
- resolve({ out: stdout, err: stderr });
- });
- });
- });
- }
- /**
- * Generates and returns a os locale
- * @returns the OS-Locale string
- */
- getOsLocale() {
- var env = Object.create(process.env);
- var lang = "de_De";
- osLocale().then(locale => {
- lang = locale;
- });
- env.LANG = `${lang}.UTF-8`; // form should be "de_DE.UTF-8";
- return env;
- }
- /**
- * Converts a File
- * @param profile the given profile, "visually" for the visually impaied or "blind" for the blind
- * @param currentTextEditor optional. The current Text editor to work with.
- */
- convertFile(profile, currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this._helper.getCurrentTextEditor();
- }
- var path = currentTextEditor.document.uri.fsPath;
- if (yield currentTextEditor.document.isDirty) {
- yield currentTextEditor.document.save();
- }
- var cmd = `matuc_js conv "${path}"`;
- if (profile === 'visually') {
- cmd += ` -p vid`;
- }
- console.log("matuc conv command " + cmd);
- exec(cmd, { env: this.getOsLocale() }, (error, stdout, stderr) => {
- if (error) {
- let fragment = JSON.parse(stdout);
- let message = "";
- if (fragment.error.hasOwnProperty('line')) {
- message += "\n\n\n" + this._language.get("checkLine") + fragment.error.line;
- }
- if (fragment.error.hasOwnProperty('path')) {
- message += "\n\n" + this._language.get("checkFile") + " " + fragment.error.path;
- }
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError") + message);
- console.error(`exec error: ${error}`);
- return;
- }
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
- //load generate HTML-file
- this.loadGeneratedHtml(path);
- });
- });
- }
- // add quotes to path if necessary and loads generate Html afterthat
- loadGeneratedHtml(path) {
- let cmd = '';
- if (process.platform === 'win32') {
- cmd = `\"${path.replace("md", "html")}\"`;
- }
- else if (process.platform === 'darwin') {
- cmd = `open ./\"${path.replace("md", "html")}\"`;
- }
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- console.error(`load generate html`);
- console.error(`exec error: ${error}`);
- return;
- }
- });
- }
- /**
- * Checks and saves changes in the current opened file invoking mistkerl, executes `matuc_js mk`
- @param currentTextEditor optional. The Text Editor to work with.
- */
- checkAndSaveChanges(currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this._helper.getCurrentTextEditor();
- }
- var path = currentTextEditor.document.uri.fsPath;
- if (yield currentTextEditor.document.isDirty) {
- yield currentTextEditor.document.save();
- }
- var cmd = `matuc_js mk \"${path}\" `;
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- console.error(`exec error: ${error}`);
- return;
- }
- var mistkerl = JSON.parse(stdout);
- if (typeof mistkerl.result === 'string') {
- vscode.window.showInformationMessage(this._language.get("mistkerlDidNotFindAnyErrorAndSavedFile"));
- }
- else {
- vscode.window.showErrorMessage(mistkerl.result);
- }
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
- });
- });
- }
- /**
- * Converts a whole project.
- * @param profile the given profile, "visually" for the visually impaied or "blind" for the blind
- * @param currentTextEditor optional. The current Text editor to work with.
- */
- convertEntireProject(profile, currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this._helper.getCurrentTextEditor();
- }
- currentTextEditor.document.save();
- var path = currentTextEditor.document.uri.fsPath;
- var cmd;
- if (process.platform === 'win32') {
- cmd = 'matuc_js master';
- cmd += ` \"${path}\\..\"`;
- }
- else {
- // OS X and Linux
- cmd = `matuc_js master ${path}/..`;
- }
- if (profile === 'visually') {
- cmd += ` -p vid`;
- }
- console.log(cmd);
- exec(cmd, { env: this.getOsLocale(), cwd: path }, (error, stdout, stderr) => {
- if (error) {
- let fragment = JSON.parse(stdout);
- let message = "";
- if (fragment.error.message.startsWith("No configuration")) {
- message = this._language.get("noConfiguration");
- }
- else {
- message = fragment.error.message;
- if (fragment.error.hasOwnProperty('path')) {
- message += "\n\n\n" + this._language.get("checkFile") + " " + fragment.error.path;
- }
- }
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError") + message);
- console.error(`exec error: ${error}`);
- return;
- }
- else {
- this.loadGeneratedHtml(path);
- }
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
- });
- //open file
- });
- }
- /**
- * Fixes the page numbering of a given file
- * @param currentTextEditor optional. Current Text Editor to work with.
- */
- fixpnumInPlace(currentTextEditor) {
- return __awaiter(this, void 0, void 0, function* () {
- if (currentTextEditor === undefined) {
- currentTextEditor = yield this._helper.getCurrentTextEditor();
- }
- currentTextEditor.document.save();
- var path = currentTextEditor.document.uri.fsPath;
- var cmd = `matuc_js fixpnums -i -f \"${path}\"`;
- return new Promise(function (resolve, reject) {
- exec(cmd, (error, stdout, stderr) => {
- if (error) {
- return reject(error);
- }
- resolve({ out: "fixpnums inplace", err: stderr });
- });
- });
- });
- }
-}
-exports.default = MatucCommands;
-//# sourceMappingURL=matucCommands.js.map
\ No newline at end of file
diff --git a/out/matucCommands.js.map b/out/matucCommands.js.map
deleted file mode 100644
index 27fdc5c..0000000
--- a/out/matucCommands.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"matucCommands.js","sourceRoot":"","sources":["../src/matucCommands.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;GAIG;AACH,iCAAiC;AACjC,2CAAmC;AACnC,4CAAqC;AACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACtC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC;AAE3C;;GAEG;AACH;IAIC;QACC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAM,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACU,gBAAgB;;YAC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AM,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;aAC9D;YACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YAClC,IAAI,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;YACjD,IAAI,GAAG,GAAG,6BAA6B,IAAI,IAAI,CAAC;YAChD,OAAO,IAAI,OAAO,CAAC,UAAU,OAAO,EAAE,MAAM;gBAC3C,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;oBACnC,IAAI,KAAK,EAAE;wBACV,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;qBACrB;oBACD,OAAO,CAAC,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACJ,CAAC;KAAA;CACD;AAhdD,gCAgdC"}
\ No newline at end of file
diff --git a/out/projectToolsFunctions.js b/out/projectToolsFunctions.js
deleted file mode 100644
index fc4120a..0000000
--- a/out/projectToolsFunctions.js
+++ /dev/null
@@ -1,383 +0,0 @@
-"use strict";
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * @author Lucas Vogel
- */
-const vscode = require("vscode");
-const helper_1 = require("./helper/helper");
-const languages_1 = require("./languages");
-const matucCommands_1 = require("./matucCommands");
-const projectHelper_1 = require("./helper/projectHelper");
-const projectToolsFunctionsSnippets_1 = require("./snippets/projectToolsFunctionsSnippets");
-const settingsHelper_1 = require("./helper/settingsHelper");
-const gitCommands_1 = require("./gitCommands");
-/**
- * This Class contains all functions of the project tools bar in the Taskbar. Here all Buttons are registered.
- */
-class ProjectToolsFunctions {
- constructor(taskbarCallback, sidebarCallback, context) {
- /**
- * Registering all Buttons.
- */
- this.setup = () => __awaiter(this, void 0, void 0, function* () {
- var gitIsEnabled = yield this._settings.get("enableGitUseage");
- this._taskbarCallback.addProjectTool("new_project.svg", this._language.get("newProject"), this.createNewProject, this._language.get("projectTitle"), "agsbs.newProject");
- this._taskbarCallback.addProjectTool("edit.svg", this._language.get("editProject"), this.editProjectData, this._language.get("projectTitle"), "agsbs.edit");
- if (gitIsEnabled === true) {
- this._taskbarCallback.addProjectTool("clone.svg", this._language.get("cloneExistingRepo"), this.cloneRepo, this._language.get("projectTitle"), "agsbs.clone");
- }
- this._taskbarCallback.addProjectTool("save.svg", this._language.get("saveChanges"), this.saveChanges, this._language.get("documentTitle"));
- this._taskbarCallback.addProjectTool("new_file.svg", this._language.get("newFile"), this.createNewFile, this._language.get("documentTitle"), "agsbs.newFile");
- this._taskbarCallback.addProjectTool("undo.svg", this._language.get("undo"), this.undo, this._language.get("documentTitle"));
- this._taskbarCallback.addProjectTool("redo.svg", this._language.get("redo"), this.redo, this._language.get("documentTitle"));
- this._taskbarCallback.addProjectTool("preview.svg", this._language.get("preview"), this.showHTMLPreview, this._language.get("documentTitle"), "agsbs.preview");
- this._taskbarCallback.addProjectTool("generate.svg", this._language.get("generateFile"), this.generateHTML, this._language.get("documentTitle"), "agsbs.generateFile");
- this._taskbarCallback.addProjectTool("create_all.svg", this._language.get("convertEntireProject"), this.generateHTMLForAllProjects, this._language.get("documentTitle"), "agsbs.convertEntireProject");
- this._taskbarCallback.addProjectTool("check_all.svg", this._language.get("checkProject"), this.publish, this._language.get("publishTitle"), "agsbs.checkProject");
- if (gitIsEnabled === true) {
- this._taskbarCallback.addProjectTool("commit.svg", this._language.get("commitChanges"), this.commitChanges, this._language.get("publishTitle"), "agsbs.commitChanges");
- }
- });
- /**
- * Lets you create a new Project
- */
- this.createNewProject = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matuc.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var optionsHTML = yield this._projectHelper.getAllWorkspaceFoldersAsHTMLWithSpeciallyEscapedJSON();
- var form = '';
- form += this._snippets.get("newProjectHTMLPart1");
- form += optionsHTML;
- form += this._snippets.get("newProjectHTMLPart2");
- var script = this._snippets.get("newProjectSCRIPT");
- this._sidebarCallback.addToSidebar(form, this._language.get("newProject"), this.createNewProjectSidebarCallback, this._language.get("insert"), "", script);
- });
- /**
- * Callback for creating a new project
- */
- this.createNewProjectSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var path, chapterCount, appendixChapterCount, preface, projectLanguage, tableOfContents, title, editor, institution, sourceMaterial, sourceAuthor, depthOfTableOfContents;
- var pathDataObject = this._projectHelper.convertSpeciallyEscapedJSONToObject(params.folder.value);
- path = pathDataObject.uri;
- chapterCount = params.chapters.value;
- if (params.appendixChapters.value === '') {
- appendixChapterCount = 0;
- }
- else {
- appendixChapterCount = params.appendixChapters.value;
- }
- preface = params.preface.checked;
- projectLanguage = params.language.value;
- tableOfContents = params.tableOfContents.checked;
- if (tableOfContents) {
- depthOfTableOfContents = params.tocDepth.value;
- }
- else {
- depthOfTableOfContents = 0;
- }
- title = params.title.value;
- editor = params.author.value;
- institution = params.institution.value;
- sourceMaterial = params.materialSource.value;
- sourceAuthor = params.sourceAuthor.value;
- try {
- let alternatePrefix, outputFormat, semYear, workingGroup;
- yield this._matuc.newProject(appendixChapterCount, chapterCount, preface, projectLanguage, path);
- yield this._matuc.initMetaData(path);
- yield this._matuc.updateMetaData(alternatePrefix, outputFormat, editor, institution, title, projectLanguage, sourceMaterial, sourceAuthor, semYear, depthOfTableOfContents, workingGroup, path);
- }
- catch (e) {
- vscode.window.showErrorMessage(this._language.get("somethingWentWrongDuringCreatingNewProject"));
- console.log(e);
- return;
- }
- vscode.window.showInformationMessage(this._language.get("createdProjectSuccessfully"));
- });
- /**
- * Lets you edit the Metadata of the current project
- */
- this.editProjectData = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matuc.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var currentEditor = yield this._helper.getCurrentTextEditor();
- var folder = yield this._helper.getFolderFromFilePath(currentEditor.document.uri.fsPath);
- var config = yield this._matuc.showConfig(folder);
- if (config === false) {
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError"));
- return;
- }
- var form = this._projectHelper.getEditProjectHTMLForm(config, folder);
- this._sidebarCallback.addToSidebar(form, this._language.get("editProject"), this.editProjectDataSidebarCallback, this._language.get("updateEditedData"));
- });
- /**
- * Callback for editing the Metadata of the current project.
- */
- this.editProjectDataSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- const alternatePrefix = params.preface.checked;
- const editor = params.author.value;
- const institution = params.institution.value;
- const title = params.title.value;
- const projectLanguage = params.language.value;
- const source = params.materialSource.value;
- const sourceAuthor = params.sourceAuthor.value;
- const semYear = params.semYear.value;
- const tocDepth = params.tocDepth.value;
- const workingGroup = params.workingGroup.value;
- var thisPath = params.folder.value;
- thisPath = thisPath.replace("\\\\`", "'");
- try {
- yield this._matuc.updateMetaData(alternatePrefix, null, editor, institution, title, projectLanguage, source, sourceAuthor, semYear, tocDepth, workingGroup, thisPath);
- }
- catch (e) {
- console.log(e);
- vscode.window.showErrorMessage(this._language.get("unExpectedMatucError"));
- return;
- }
- vscode.window.showInformationMessage(this._language.get("updateSuccessfull"));
- });
- /**
- * Saves the changes made in the current file
- */
- this.saveChanges = () => __awaiter(this, void 0, void 0, function* () {
- var currentEditor = yield this._helper.getCurrentTextEditor();
- currentEditor.document.save();
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * creates a new file in the current Project
- */
- this.createNewFile = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.focusDocument(); //Puts focus back to the text editor
- yield vscode.commands.executeCommand('workbench.action.files.newUntitledFile');
- yield vscode.commands.executeCommand('workbench.action.files.save');
- });
- /**
- * Undoes the last step.
- */
- this.undo = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.focusDocument(); //Puts focus back to the text editor
- yield vscode.commands.executeCommand('undo');
- });
- /**
- * Redoes the last step
- */
- this.redo = () => __awaiter(this, void 0, void 0, function* () {
- yield this._helper.focusDocument(); //Puts focus back to the text editor
- yield vscode.commands.executeCommand('redo');
- });
- /**
- * shows a HTML Preview if available.
- */
- this.showHTMLPreview = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matuc.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- yield this._helper.focusDocument(); //Puts focus back to the text editor
- // try{
- // vscode.commands.executeCommand("markdown-preview-enhanced.openPreview");
- // return;
- // } catch(e){
- // console.log(e);
- // } // no Markdown enhanced because it ALLWAYS opens to the right. Bad :(
- vscode.commands.executeCommand("markdown.showPreview");
- });
- /**
- * Generates the HTML for the current File
- */
- this.generateHTML = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matuc.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var currentEditor = yield this._helper.getCurrentTextEditor();
- var filePath = currentEditor.document.uri.fsPath;
- var isInLecture = yield this._matuc.checkIfFileIsWithinLecture(filePath);
- if (isInLecture === false) {
- vscode.window.showErrorMessage(this._language.get("notInsideLecture"));
- return;
- }
- var conversionProfilePromise = yield this._settings.get("conversionProfile");
- var conversionProfile = conversionProfilePromise;
- if (conversionProfile !== "blind" && conversionProfile !== "visually impaired" && conversionProfile !== "visually") {
- //Fallback if conversion profile cannot be resolved
- var form = this._projectHelper.getConversionProfileHTML();
- this._sidebarCallback.addToSidebar(form, this._language.get("generateFile"), this.generateHTMLSidebarCallback, this._language.get("generate"));
- }
- else {
- if (conversionProfile === "visually impaired") {
- conversionProfile = "visually";
- }
- yield this._matuc.checkAndSaveChanges();
- yield this._matuc.convertFile(conversionProfile);
- this._helper.focusDocument(); //Puts focus back to the text editor
- }
- });
- /**
- * Callback for generating the HTML for the current File. Fallback if this is not set in the settings.
- */
- this.generateHTMLSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var profile = params.conversionProfile.value;
- yield this._matuc.checkAndSaveChanges();
- yield this._matuc.convertFile(profile);
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Generates HTML for all projects
- */
- this.generateHTMLForAllProjects = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matuc.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var currentEditor = yield this._helper.getCurrentTextEditor();
- var filePath = currentEditor.document.uri.fsPath;
- var isInLecture = yield this._matuc.checkIfFileIsWithinLecture(filePath);
- if (isInLecture === false) {
- vscode.window.showErrorMessage(this._language.get("notInsideLecture"));
- return;
- }
- var conversionProfilePromise = yield this._settings.get("conversionProfile");
- var conversionProfile = conversionProfilePromise;
- if (conversionProfile !== "blind" && conversionProfile !== "visually impaired" && conversionProfile !== "visually") {
- var form = this._projectHelper.getConversionProfileHTML();
- this._sidebarCallback.addToSidebar(form, this._language.get("convertEntireProject"), this.generateHTMLForAllProjectsSidebarCallback, this._language.get("generate"));
- }
- else {
- if (conversionProfile === "visually impaired") {
- conversionProfile = "visually";
- }
- yield this._matuc.checkAndSaveChanges();
- yield this._matuc.convertEntireProject(conversionProfile);
- this._helper.focusDocument(); //Puts focus back to the text editor
- }
- });
- /**
- * Callback for generating the HTML for all projects, as a fallback when the setting is manually selected every time
- */
- this.generateHTMLForAllProjectsSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var profile = params.conversionProfile.value;
- yield this._matuc.checkAndSaveChanges();
- yield this._matuc.convertEntireProject(profile);
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * publishes the whole Project
- */
- this.publish = () => __awaiter(this, void 0, void 0, function* () {
- var matucIsInstalled = yield this._matuc.matucIsInstalled();
- if (matucIsInstalled === false) {
- vscode.window.showErrorMessage(this._language.get("matucNotInstalled"));
- return;
- }
- var currentEditor = yield this._helper.getCurrentTextEditor();
- var filePath = currentEditor.document.uri.fsPath;
- var isInLecture = yield this._matuc.checkIfFileIsWithinLecture(filePath);
- if (isInLecture === false) {
- vscode.window.showErrorMessage(this._language.get("notInsideLecture"));
- return;
- }
- var form = `
- ${this._language.get("doYouWantToAutocorrect")}
-
-
-
-
- `;
- this._sidebarCallback.addToSidebar(form, this._language.get("pagenumbering"), this.publishSidebarCallback, this._language.get("generate"));
- this._helper.focusDocument(); //Puts focus back to the text editor
- });
- /**
- * Checks the whole project
- */
- this.publishSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- if (params.autoCorrectPageNumbering.checked === true) {
- yield this._matuc.fixpnumInPlace();
- }
- var currentEditor = yield this._helper.getCurrentTextEditor();
- var filePath = currentEditor.document.uri.fsPath;
- this._matuc.checkEntireProject(filePath);
- });
- /**
- * Adds Form to sidebar to clone a project
- */
- this.cloneRepo = () => __awaiter(this, void 0, void 0, function* () {
- var gitIsEnabled = yield this._settings.get("enableGitUseage");
- if (gitIsEnabled === false) {
- vscode.window.showErrorMessage(this._language.get("gitIsNotEnabled"));
- return;
- }
- var form = `
-
-
-
-
-
- `;
- this._sidebarCallback.addToSidebar(form, this._language.get("cloneExistingRepo"), this.cloneRepoSidebarCallback, this._language.get("clone"));
- });
- /**
- * clones a project
- */
- this.cloneRepoSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var userName = params.gitUser.value;
- var repoName = params.repoName.value;
- this._git.clone(userName, repoName);
- });
- /**
- * Adds commt changes dialogue to the sidebar
- */
- this.commitChanges = () => __awaiter(this, void 0, void 0, function* () {
- var gitIsEnabled = yield this._settings.get("enableGitUseage");
- if (gitIsEnabled === false) {
- vscode.window.showErrorMessage(this._language.get("gitIsNotEnabled"));
- return;
- }
- var form = `
-
-
-
- `;
- this._sidebarCallback.addToSidebar(form, this._language.get("commitChanges"), this.commitChangesSidebarCallback, this._language.get("commit"));
- });
- /**
- * commits the changes, and pushes them.
- */
- this.commitChangesSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () {
- var commitMessage = params.commitChanges.value;
- var currentTexteditor = yield this._helper.getCurrentTextEditor();
- var projectFolder = this._helper.getFolderFromFilePath(currentTexteditor.document.uri.fsPath);
- yield this._git.addAll(projectFolder);
- yield this._git.commit(commitMessage, projectFolder);
- yield this._git.push(projectFolder);
- });
- this._helper = new helper_1.default;
- this._language = new languages_1.default;
- this._sidebarCallback = sidebarCallback;
- this._taskbarCallback = taskbarCallback;
- this._matuc = new matucCommands_1.default;
- this._projectHelper = new projectHelper_1.default;
- this._snippets = new projectToolsFunctionsSnippets_1.default;
- this._settings = new settingsHelper_1.default;
- this._git = new gitCommands_1.default;
- }
-}
-exports.default = ProjectToolsFunctions;
-//# sourceMappingURL=projectToolsFunctions.js.map
\ No newline at end of file
diff --git a/out/projectToolsFunctions.js.map b/out/projectToolsFunctions.js.map
deleted file mode 100644
index de18931..0000000
--- a/out/projectToolsFunctions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"projectToolsFunctions.js","sourceRoot":"","sources":["../src/projectToolsFunctions.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AAGnC,mDAA4C;AAC5C,0DAAmD;AACnD,4FAAoF;AACpF,4DAAqD;AACrD,+CAAwC;AAExC;;GAEG;AACH;IAWI,YAAY,eAAe,EAAE,eAAe,EAAE,OAAO;QAYrD;;WAEG;QACI,UAAK,GAAG,GAAS,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AAjYD,wCAiYC"}
\ No newline at end of file
diff --git a/out/sidebar.js b/out/sidebar.js
index 219370e..64ed1eb 100644
--- a/out/sidebar.js
+++ b/out/sidebar.js
@@ -119,6 +119,7 @@ class Sidebar {
var matucIsInstalled = yield this._matuc.matucIsInstalled();
var welcomeText = this._language.get("sidebarWelcome");
var form = "
" + welcomeText + "
";
+ form = this._addMultipleText(["textWhatToDo", "sendingError"], form);
if (matucIsInstalled === false) {
form += "
" + this._language.get("MatucIsInstalledWarning");
}
@@ -207,6 +208,17 @@ class Sidebar {
}));
});
}
+ /**
+ * Create multiple paragraph basing on a string list and returns new element
+ * @param textList the string list
+ * @param element where the paragraph should be appended
+ */
+ _addMultipleText(textList, element) {
+ textList.forEach(item => {
+ element += "
" + this._language.get(item) + "
";
+ });
+ return element;
+ }
}
exports.default = Sidebar;
//# sourceMappingURL=sidebar.js.map
\ No newline at end of file
diff --git a/out/sidebar.js.map b/out/sidebar.js.map
deleted file mode 100644
index 48c0aa6..0000000
--- a/out/sidebar.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../src/sidebar.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AACnC,gEAAyD;AACzD,mDAA4C;AAE5C;;GAEG;AACH;IAUI,YAAY,OAAO;QA2EnB;;;WAGG;QACK,+BAA0B,GAAG,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,oCAAoC;YACpF,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QACjC,CAAC,CAAA;QAgBD;;;;;;;WAOG;QACI,iBAAY,GAAG,CAAO,IAAY,EA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
index a6240de..0000000
--- a/out/taskbar.js
+++ /dev/null
@@ -1,259 +0,0 @@
-"use strict";
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * @author Lucas Vogel
- */
-const vscode = require("vscode");
-const helper_1 = require("./helper/helper");
-const editorFunctions_1 = require("./editorFunctions");
-const projectToolsFunctions_1 = require("./projectToolsFunctions");
-/**
- * Main class of the taskbar
- */
-class Taskbar {
- constructor(sidebarCallback, context) {
- /** this Function gets called from the Webview when a button is clicked.
- * It calls one of the callbacks from EditorFunctions.
- * @param message The content of the message from the Webview
- */
- this._messageFromWebviewHandler = (message) => {
- this._callbacks[message.text]();
- };
- /** Adds a Button to the Taskbar
- * @param iconName the Name of the Icon in the Icon Folder, with file extension (so for example "icon.svg")
- * @param name Displayname of the Icon
- * @param callback callback to the function, must be an arrow function
- * @param section optional section the button is displayed in
- * @param commandIdentifier optional. The identifier used in the package.json command and key binding.
- */
- this.addButton = (iconName, name, callback, section, commandIdentifier) => {
- var id = this._helper.generateUuid();
- var newSection = "";
- if (section !== undefined) {
- newSection = section;
- }
- if (this._sectionIsInWebview(newSection) === false) {
- var newSectionHTML = this._generateSectionHTML(section);
- this._addToHTML("TOOLS_END", newSectionHTML);
- }
- var icon = this._helper.getWebviewResourceIconURI(iconName, this._context);
- //use Images as Background Mask to allow dynamic color change with css variables (allow themes)
- var html = ``;
- this._callbacks[id] = callback;
- newSection = "SECTION-" + newSection;
- this._addToHTML(newSection, html);
- if (commandIdentifier !== undefined) {
- if (!commandIdentifier.includes("agsbs.")) {
- commandIdentifier = "agsbs." + commandIdentifier;
- }
- try {
- let disposable = vscode.commands.registerCommand(commandIdentifier, () => {
- callback();
- });
- }
- catch (e) {
- //If it tries to re-register a command an error will be trown. However,
- //because there is no check if a command is already registered, this is the workarround
- console.log("No need to re-register editor command.");
- }
- }
- };
- /** Adds a Button to the Taskbar Project Tools
- * @param iconName the Name of the Icon in the Icon Folder, with file extension (so for example "icon.svg")
- * @param name Displayname of the Icon
- * @param section optional section the button is displayed in
- * @param commandIdentifier optional. The identifier used in the package.json command and key binding.
- */
- this.addProjectTool = (iconName, name, callback, section, commandIdentifier) => {
- var id = this._helper.generateUuid();
- var newSection = "";
- if (section !== undefined) {
- newSection = section;
- }
- if (this._sectionIsInWebview(newSection) === false) {
- var newSectionHTML = this._generateSectionHTML(section);
- this._addToHTML("PROJECTTOOLS_END", newSectionHTML);
- }
- var icon = this._helper.getWebviewResourceIconURI(iconName, this._context);
- //use Images as Background Mask to allow dynamic color change with css variables (allow themes)
- var html = ``;
- this._callbacks[id] = callback;
- newSection = "SECTION-" + newSection;
- this._addToHTML(newSection, html);
- if (commandIdentifier !== undefined) {
- if (!commandIdentifier.includes("agsbs.")) {
- commandIdentifier = "agsbs." + commandIdentifier;
- }
- try {
- let disposable = vscode.commands.registerCommand(commandIdentifier, () => {
- callback();
- });
- }
- catch (e) {
- //If it tries to re-register a command an error will be trown. However,
- //because there is no check if a command is already registered, this is the workarround
- console.log("No need to re-register project tool command.");
- }
- }
- };
- /** This adds HTML to the taskbars Webview, at the given point.
- * This point is predefined in the _getBaseHTML-Function and _generateSectionHTML, for example SECTION-*, HEAD_END, BODY_START or BODY_END
- * @param section section Name, see examples above
- * @param html html to insert
- */
- this._addToHTML = (section, html) => {
- var marker = "";
- var oldHTML = this._panel.webview.html;
- html = html + marker;
- var newHTML = oldHTML.replace(marker, html);
- this._panel.webview.html = newHTML;
- };
- /** Generate a HTML snippet to insert into the Webview for a given Name
- * @param name Name of the section
- * @returns a HTML snippet
- */
- this._generateSectionHTML = (name) => {
- return ``;
- };
- this._context = context;
- this._taskbarIsVisible = false;
- this._sidebarCallback = sidebarCallback;
- this._helper = new helper_1.default;
- this._editorFunctions = new editorFunctions_1.default(this, this._sidebarCallback, context);
- this._projectToolsFunctions = new projectToolsFunctions_1.default(this, this._sidebarCallback, context);
- this._panel = null;
- this._callbacks = [];
- let disposable = vscode.commands.registerCommand("agsbs.focusTaskbar", () => {
- this.focus();
- });
- }
- /**
- * Puts the focus on the sidebar.
- */
- focus() {
- this._panel.reveal(this._panel.viewColumn);
- }
- /**
- * Returns the current State of visibility of the Taskbar.
- * @return The current visibility from type Boolean.
- */
- isVisible() {
- return this._taskbarIsVisible;
- }
- /**
- * Opens a Taskbar Webview
- * @return A WebviewPanel from Type vscode.WebviewPanel
- */
- show() {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- this._taskbarIsVisible = true;
- var panel = vscode.window.createWebviewPanel('agsbstaskbar', // Identifies the type of the webview. Used internally
- "AGSBS Toolbar", // Title of the panel displayed to the user
- //vscode.ViewColumn.One, // Editor column to show the new webview panel in.
- {
- viewColumn: vscode.ViewColumn.Three,
- preserveFocus: true
- }, {
- enableScripts: true
- } // Webview options
- );
- this._panel = panel;
- panel.webview.html = this._getBaseHTML();
- panel.onDidDispose(() => {
- this._taskbarIsVisible = false; //When panel is closed
- this._panel = null;
- }, null);
- panel.webview.onDidReceiveMessage(message => {
- this._messageFromWebviewHandler(message);
- }, undefined);
- this._editorFunctions.setup();
- this._projectToolsFunctions.setup();
- resolve(panel); //return panel;
- }));
- });
- }
- /**
- * Gets triggered when the Layout of the Editor changes.
- * @param panel The WebviewPanel that should be closed, from fype vscode.WebviewPanel
- */
- hide(panel) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
- yield panel.dispose();
- this._taskbarIsVisible = false;
- this._panel = null;
- resolve(true);
- }));
- });
- }
- /** Checks if a section is in the Webview HTML
- * @param section name of the sectiton
- * @returns Boolean, true if the section is already in the WebView
- */
- _sectionIsInWebview(section) {
- var webViewHTML = this._panel.webview.html;
- var sectionIndicator = "";
- if (webViewHTML.includes(sectionIndicator)) {
- return true;
- }
- else {
- return false;
- }
- }
- /**
- * Returns the base Frame HTML for the Webview
- */
- _getBaseHTML() {
- // var fontAwesomeFont = this._helper.getWebviewResourceURI("fontawesome-webfont.woff2","style/fonts",this._context);
- // var fontAwesome = this._helper.getWebviewResourceURI("fontawesome.css","style",this._context);
- //If font Awesome is needed, it can be imported here.
- var style = this._helper.getWebviewResourceURI("taskbar.css", "style", this._context);
- var html = `
-
-
-
-
- AGSBS
-
-
-
-
-
-
";
+ form = this._addMultipleText(["textWhatToDo", "sendingError"], form);
if (matucIsInstalled === false) {
form += "
" + this._language.get("MatucIsInstalledWarning");
}
@@ -218,4 +219,16 @@ export default class Sidebar {
this._addToHTML("HEADLINE", form);
}
+ /**
+ * Create multiple paragraph basing on a string list and returns new element
+ * @param textList the string list
+ * @param element where the paragraph should be appended
+ */
+ private _addMultipleText(textList, element) {
+ textList.forEach(item => {
+ element += "