Skip to content

Commit da684f7

Browse files
committed
Move aside node modules dir
1 parent 7689652 commit da684f7

File tree

7,201 files changed

+1
-216083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,201 files changed

+1
-216083
lines changed

dist/extension.js

Lines changed: 1 addition & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -1,180 +1,6 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ "use strict";
3-
/******/ var __webpack_modules__ = ([
4-
/* 0 */
5-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
6-
7-
8-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9-
if (k2 === undefined) k2 = k;
10-
var desc = Object.getOwnPropertyDescriptor(m, k);
11-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12-
desc = { enumerable: true, get: function() { return m[k]; } };
13-
}
14-
Object.defineProperty(o, k2, desc);
15-
}) : (function(o, m, k, k2) {
16-
if (k2 === undefined) k2 = k;
17-
o[k2] = m[k];
18-
}));
19-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20-
Object.defineProperty(o, "default", { enumerable: true, value: v });
21-
}) : function(o, v) {
22-
o["default"] = v;
23-
});
24-
var __importStar = (this && this.__importStar) || function (mod) {
25-
if (mod && mod.__esModule) return mod;
26-
var result = {};
27-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28-
__setModuleDefault(result, mod);
29-
return result;
30-
};
31-
Object.defineProperty(exports, "__esModule", ({ value: true }));
32-
exports.activate = void 0;
33-
const vscode = __importStar(__webpack_require__(1));
34-
let decoration = vscode.window.createTextEditorDecorationType({});
35-
function activate(context) {
36-
let disposableModal = vscode.commands.registerCommand('extension.runExtensionModal', () => {
37-
runExtension(true);
38-
});
39-
let disposableToast = vscode.commands.registerCommand('extension.runExtensionToast', () => {
40-
runExtension(false);
41-
});
42-
context.subscriptions.push(disposableModal, disposableToast);
43-
}
44-
exports.activate = activate;
45-
function runExtension(isModal) {
46-
let activeEditor = vscode.window.activeTextEditor;
47-
if (!activeEditor) {
48-
return;
49-
}
50-
const text = activeEditor.document.getText();
51-
const cursorPosition = activeEditor.selection.active;
52-
let versionTags = [];
53-
let versionDescription = [];
54-
let elsedVersions = [];
55-
let currentTagSpan = [];
56-
let tagSetID = [];
57-
let beforeCursor = true;
58-
let tagCounter = 0;
59-
let nestingLevel = -1;
60-
const tagRegEx = /\{%-?\s*(ifversion|elsif|else|endif)\s+([^%]*)%\}/g;
61-
let match;
62-
while (match = tagRegEx.exec(text)) {
63-
tagCounter++;
64-
const openingBracketPos = match.index;
65-
const currentTagStart = activeEditor.document.positionAt(openingBracketPos);
66-
const closingBracketPos = match.index + match[0].length;
67-
const currentTagEnd = activeEditor.document.positionAt(closingBracketPos);
68-
if (beforeCursor && cursorPosition.isBefore(currentTagEnd)) {
69-
beforeCursor = false;
70-
}
71-
if (match[1] === "ifversion") {
72-
nestingLevel++;
73-
tagSetID[nestingLevel] = tagCounter;
74-
if (beforeCursor) {
75-
currentTagSpan[nestingLevel] = tagSetID[nestingLevel];
76-
if (nestingLevel > 0) {
77-
versionDescription[nestingLevel] = "AND " + match[2];
78-
elsedVersions[nestingLevel] = "AND NOT " + match[2];
79-
}
80-
else {
81-
versionDescription[nestingLevel] = match[2];
82-
elsedVersions[nestingLevel] = "NOT " + match[2];
83-
}
84-
}
85-
}
86-
else if (match[1] === "elsif" && beforeCursor) {
87-
currentTagSpan[nestingLevel] = tagSetID[nestingLevel];
88-
if (nestingLevel > 0) {
89-
versionDescription[nestingLevel] = "AND ";
90-
}
91-
versionDescription[nestingLevel] += match[2];
92-
elsedVersions[nestingLevel] += "AND NOT " + match[2];
93-
}
94-
else if (match[1] === "else" && beforeCursor) {
95-
currentTagSpan[nestingLevel] = tagSetID[nestingLevel];
96-
if (nestingLevel > 0) {
97-
versionDescription[nestingLevel] = "AND ";
98-
}
99-
versionDescription[nestingLevel] = elsedVersions[nestingLevel];
100-
}
101-
else if (match[1] === "endif" && beforeCursor) {
102-
elsedVersions.pop();
103-
versionDescription.pop();
104-
currentTagSpan.pop();
105-
nestingLevel--;
106-
}
107-
versionTags.push({
108-
tagID: tagCounter,
109-
tagSet: tagSetID[nestingLevel],
110-
positionVersionTagStart: currentTagStart,
111-
positionVersionTagEnd: currentTagEnd
112-
});
113-
}
114-
displayVersionMessage(isModal, cursorPosition, versionDescription);
115-
}
116-
function displayVersionMessage(isModal, cursorPosition, versionDescription) {
117-
const positionString = ` at the cursor position (line ${(cursorPosition.line + 1)}, character ${(cursorPosition.character + 1)} ) `;
118-
let message = "";
119-
if (versionDescription.length === 0) {
120-
message = "There is no inline versioning " + positionString + ".";
121-
}
122-
else {
123-
message = "The inline versioning " + positionString + " is:\n\n";
124-
for (let description of versionDescription) {
125-
message += description + "\n";
126-
}
127-
}
128-
if (isModal) {
129-
vscode.window.showInformationMessage(message, { modal: true });
130-
}
131-
else {
132-
vscode.window.showInformationMessage(message, "OK");
133-
}
134-
}
135-
136-
137-
/***/ }),
138-
/* 1 */
139-
/***/ ((module) => {
140-
141-
module.exports = require("vscode");
142-
143-
/***/ })
144-
/******/ ]);
145-
/************************************************************************/
146-
/******/ // The module cache
147-
/******/ var __webpack_module_cache__ = {};
1483
/******/
149-
/******/ // The require function
150-
/******/ function __webpack_require__(moduleId) {
151-
/******/ // Check if module is in cache
152-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
153-
/******/ if (cachedModule !== undefined) {
154-
/******/ return cachedModule.exports;
155-
/******/ }
156-
/******/ // Create a new module (and put it into the cache)
157-
/******/ var module = __webpack_module_cache__[moduleId] = {
158-
/******/ // no module.id needed
159-
/******/ // no module.loaded needed
160-
/******/ exports: {}
161-
/******/ };
162-
/******/
163-
/******/ // Execute the module function
164-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
165-
/******/
166-
/******/ // Return the exports of the module
167-
/******/ return module.exports;
168-
/******/ }
169-
/******/
170-
/************************************************************************/
171-
/******/
172-
/******/ // startup
173-
/******/ // Load entry module and return exports
174-
/******/ // This entry module is referenced by other modules so it can't be inlined
175-
/******/ var __webpack_exports__ = __webpack_require__(0);
176-
/******/ module.exports = __webpack_exports__;
1774
/******/
1785
/******/ })()
179-
;
180-
//# sourceMappingURL=extension.js.map
6+
;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)