@isopodlabs/vscode_utils 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jsx-runtime.d.ts +6 -0
- package/dist/jsx-runtime.js +19 -12
- package/dist/webview/shared.d.ts +42 -0
- package/dist/webview/shared.js +278 -0
- package/dist/webview/tree.d.ts +12 -0
- package/dist/webview/tree.js +74 -0
- package/dist/webview/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -3
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -54,4 +54,10 @@ export declare function CSP({ csp, ...others }: {
|
|
|
54
54
|
img?: Source;
|
|
55
55
|
media?: Source;
|
|
56
56
|
}): JSX.Element;
|
|
57
|
+
export declare const extensionUri: vscode.Uri;
|
|
58
|
+
export declare function webviewUri(webview: vscode.Webview, name: string): vscode.Uri;
|
|
59
|
+
export declare function ImportMap(props: {
|
|
60
|
+
map: Record<string, string>;
|
|
61
|
+
webview: vscode.Webview;
|
|
62
|
+
}): JSX.Element;
|
|
57
63
|
export {};
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Hash = exports.codicons = exports.JSX = void 0;
|
|
36
|
+
exports.extensionUri = exports.Hash = exports.codicons = exports.JSX = void 0;
|
|
37
37
|
exports.jsx = jsx;
|
|
38
38
|
exports.jsxs = jsxs;
|
|
39
39
|
exports.jsxFrag = jsxFrag;
|
|
@@ -43,6 +43,8 @@ exports.iconAttributes = iconAttributes;
|
|
|
43
43
|
exports.Label = Label;
|
|
44
44
|
exports.Nonce = Nonce;
|
|
45
45
|
exports.CSP = CSP;
|
|
46
|
+
exports.webviewUri = webviewUri;
|
|
47
|
+
exports.ImportMap = ImportMap;
|
|
46
48
|
const jsx_runtime_1 = require("./jsx-runtime");
|
|
47
49
|
/** @jsxImportSource . */
|
|
48
50
|
const vscode = __importStar(require("vscode"));
|
|
@@ -68,24 +70,22 @@ function renderProps(props) {
|
|
|
68
70
|
.map(([key, value]) => ` ${key}="${escape(String(value))}"`)
|
|
69
71
|
.join('');
|
|
70
72
|
}
|
|
73
|
+
const escaped = {
|
|
74
|
+
'\\': '\\\\',
|
|
75
|
+
'&': '&',
|
|
76
|
+
'<': '<',
|
|
77
|
+
'>': '>',
|
|
78
|
+
'"': '"',
|
|
79
|
+
};
|
|
71
80
|
function escape(v) {
|
|
72
|
-
return v.replace(/[\\&<>"]/g, match =>
|
|
73
|
-
switch (match) {
|
|
74
|
-
case '\\': return '\\\\';
|
|
75
|
-
case '&': return '&';
|
|
76
|
-
case '<': return '<';
|
|
77
|
-
case '>': return '>';
|
|
78
|
-
case '"': return '"';
|
|
79
|
-
default: return match;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
81
|
+
return v.replace(/[\\&<>"]/g, match => escaped[match]);
|
|
82
82
|
}
|
|
83
83
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
84
84
|
var JSX;
|
|
85
85
|
(function (JSX) {
|
|
86
86
|
function render(element) {
|
|
87
87
|
if (typeof element === 'string')
|
|
88
|
-
return
|
|
88
|
+
return element.replace(/[\\&<>]/g, match => escaped[match]);
|
|
89
89
|
if (typeof element === 'number')
|
|
90
90
|
return element.toString();
|
|
91
91
|
if (!element)
|
|
@@ -616,3 +616,10 @@ function CSP({ csp, ...others }) {
|
|
|
616
616
|
${Object.entries(others).map(([k, v]) => `${k}-src ${v};`)}
|
|
617
617
|
` });
|
|
618
618
|
}
|
|
619
|
+
exports.extensionUri = vscode.Uri.file(__dirname);
|
|
620
|
+
function webviewUri(webview, name) {
|
|
621
|
+
return webview.asWebviewUri(vscode.Uri.joinPath(exports.extensionUri, name));
|
|
622
|
+
}
|
|
623
|
+
function ImportMap(props) {
|
|
624
|
+
return (0, jsx_runtime_1.jsx)("script", { type: "importmap", children: `{ "imports": { ${Object.entries(props.map).map(([k, v]) => `"${k}": "${webviewUri(props.webview, v)}"`).join(',')} } }` });
|
|
625
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const vscode: {
|
|
2
|
+
postMessage: (message: any) => void;
|
|
3
|
+
getState: () => any;
|
|
4
|
+
setState: (state: any) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function createElement<K extends keyof HTMLElementTagNameMap>(tag: K, options: Record<string, unknown>): HTMLElement;
|
|
7
|
+
export declare function getFirstText(element: Element): string | undefined;
|
|
8
|
+
export declare class Pool<T extends Element> {
|
|
9
|
+
private make;
|
|
10
|
+
private pool;
|
|
11
|
+
constructor(make: () => T);
|
|
12
|
+
get(): T;
|
|
13
|
+
discard(item: T): void;
|
|
14
|
+
discardElement(item: T): void;
|
|
15
|
+
}
|
|
16
|
+
export declare class Splitter {
|
|
17
|
+
private readonly splitter;
|
|
18
|
+
constructor(splitter: HTMLElement, notify: (split: number) => void);
|
|
19
|
+
set(x: number): void;
|
|
20
|
+
}
|
|
21
|
+
interface Container {
|
|
22
|
+
clientOffset: number;
|
|
23
|
+
clientPixels: number;
|
|
24
|
+
clientSize: number;
|
|
25
|
+
scrollOffset: number;
|
|
26
|
+
scrollSize: number;
|
|
27
|
+
}
|
|
28
|
+
export declare class ScrollBar {
|
|
29
|
+
horizontal: boolean;
|
|
30
|
+
container: any;
|
|
31
|
+
thumb: HTMLElement;
|
|
32
|
+
thumbSize: number;
|
|
33
|
+
constructor(parent: HTMLElement, container: Container | HTMLElement, horizontal: boolean);
|
|
34
|
+
update(): void;
|
|
35
|
+
setScroll(scroll: number): void;
|
|
36
|
+
setThumbSize(size: number): void;
|
|
37
|
+
setThumb(scroll: number): void;
|
|
38
|
+
setThumbPixel(pos: number): void;
|
|
39
|
+
}
|
|
40
|
+
export declare function template(template: HTMLElement, parent: HTMLElement, values: Record<string, string>[]): void;
|
|
41
|
+
export declare function generateSelector(e: Node | null): string;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
/// <reference lib="dom" />
|
|
2
|
+
/// <reference lib="dom.iterable" />
|
|
3
|
+
console.log("Hello from shared.ts!");
|
|
4
|
+
export const vscode = acquireVsCodeApi();
|
|
5
|
+
//fix up icons in attributes
|
|
6
|
+
document.querySelectorAll('[icon]').forEach(element => {
|
|
7
|
+
const value = element.getAttribute('icon');
|
|
8
|
+
if (value && value.includes('/')) {
|
|
9
|
+
element.removeAttribute('icon');
|
|
10
|
+
element.classList.add('icon');
|
|
11
|
+
element.style.setProperty('--icon', `url(${value})`);
|
|
12
|
+
}
|
|
13
|
+
const col = element.getAttribute('color');
|
|
14
|
+
if (col) {
|
|
15
|
+
element.removeAttribute('color');
|
|
16
|
+
element.style.setProperty('--icon-color', col);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
document.querySelectorAll('.select').forEach(item => {
|
|
20
|
+
item.addEventListener('click', event => {
|
|
21
|
+
if (event.target === item) {
|
|
22
|
+
vscode.postMessage({
|
|
23
|
+
command: 'select',
|
|
24
|
+
selector: generateSelector(item),
|
|
25
|
+
text: item.textContent,
|
|
26
|
+
...item.dataset
|
|
27
|
+
});
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function createElement(tag, options) {
|
|
33
|
+
const e = document.createElement(tag);
|
|
34
|
+
if (options) {
|
|
35
|
+
for (const [k, v] of Object.entries(options))
|
|
36
|
+
e[k] = v;
|
|
37
|
+
}
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
export function getFirstText(element) {
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
42
|
+
for (let i = 0; i < element.childNodes.length; i++) {
|
|
43
|
+
const node = element.childNodes[i];
|
|
44
|
+
if (isText(node)) {
|
|
45
|
+
const text = node.textContent?.trim();
|
|
46
|
+
if (text)
|
|
47
|
+
return text;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export class Pool {
|
|
52
|
+
make;
|
|
53
|
+
pool = [];
|
|
54
|
+
constructor(make) {
|
|
55
|
+
this.make = make;
|
|
56
|
+
}
|
|
57
|
+
get() {
|
|
58
|
+
if (this.pool.length === 0)
|
|
59
|
+
this.pool.push(this.make());
|
|
60
|
+
return this.pool.length === 1
|
|
61
|
+
? this.pool[0].cloneNode(true)
|
|
62
|
+
: this.pool.pop();
|
|
63
|
+
}
|
|
64
|
+
discard(item) {
|
|
65
|
+
this.pool.push(item);
|
|
66
|
+
}
|
|
67
|
+
discardElement(item) {
|
|
68
|
+
this.discard(item);
|
|
69
|
+
item.remove();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//-------------------------------------
|
|
73
|
+
// splitter
|
|
74
|
+
//-------------------------------------
|
|
75
|
+
export class Splitter {
|
|
76
|
+
splitter;
|
|
77
|
+
constructor(splitter, notify) {
|
|
78
|
+
this.splitter = splitter;
|
|
79
|
+
splitter.addEventListener('pointerdown', (e) => {
|
|
80
|
+
e.preventDefault();
|
|
81
|
+
splitter.setPointerCapture(e.pointerId);
|
|
82
|
+
const left = splitter.previousSibling;
|
|
83
|
+
const style = getComputedStyle(left);
|
|
84
|
+
let split = left.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
|
|
85
|
+
const offset = split - e.clientX;
|
|
86
|
+
const min = parseFloat(style.minWidth);
|
|
87
|
+
const max = Math.min(parseFloat(style.maxWidth), splitter.parentElement?.clientWidth ?? 0 - 300);
|
|
88
|
+
left.style.width = `${split}px`;
|
|
89
|
+
left.style.flex = 'none';
|
|
90
|
+
function resizePanels(e) {
|
|
91
|
+
split = Math.min(Math.max(e.clientX + offset, min), max);
|
|
92
|
+
left.style.width = `${split}px`;
|
|
93
|
+
}
|
|
94
|
+
function stopResizing(e) {
|
|
95
|
+
notify(split);
|
|
96
|
+
//state.split = split;
|
|
97
|
+
//vscode.setState(state);
|
|
98
|
+
splitter.releasePointerCapture(e.pointerId);
|
|
99
|
+
document.removeEventListener('pointermove', resizePanels);
|
|
100
|
+
document.removeEventListener('pointerup', stopResizing);
|
|
101
|
+
}
|
|
102
|
+
document.addEventListener('pointermove', resizePanels);
|
|
103
|
+
document.addEventListener('pointerup', stopResizing);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
set(x) {
|
|
107
|
+
const left = this.splitter.previousSibling;
|
|
108
|
+
left.style.width = `${x}px`;
|
|
109
|
+
left.style.flex = 'none';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function VScrollContainer(container, offset = 0) {
|
|
113
|
+
return {
|
|
114
|
+
clientOffset: Math.max(container.clientTop, 0) + offset,
|
|
115
|
+
get clientPixels() { return container.clientHeight - offset; },
|
|
116
|
+
get clientSize() { return container.clientHeight - offset; },
|
|
117
|
+
get scrollOffset() { return container.scrollTop; },
|
|
118
|
+
get scrollSize() { return container.scrollHeight; },
|
|
119
|
+
set scrollOffset(x) { container.scrollTop = x; },
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function HScrollContainer(container, offset = 0) {
|
|
123
|
+
return {
|
|
124
|
+
clientOffset: Math.max(container.clientLeft, 0) + offset,
|
|
125
|
+
get clientPixels() { return container.clientWidth - offset; },
|
|
126
|
+
get clientSize() { return container.clientWidth - offset; },
|
|
127
|
+
get scrollOffset() { return container.scrollLeft; },
|
|
128
|
+
get scrollSize() { return container.scrollWidth; },
|
|
129
|
+
set scrollOffset(x) { container.scrollLeft = x; },
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export class ScrollBar {
|
|
133
|
+
horizontal;
|
|
134
|
+
container;
|
|
135
|
+
thumb;
|
|
136
|
+
thumbSize = 0;
|
|
137
|
+
constructor(parent, container, horizontal) {
|
|
138
|
+
this.horizontal = horizontal;
|
|
139
|
+
const thumb = this.thumb = createElement('div', { className: horizontal ? 'hscrollbar' : 'vscrollbar' });
|
|
140
|
+
parent.appendChild(thumb);
|
|
141
|
+
this.container = container instanceof HTMLElement
|
|
142
|
+
? horizontal ? HScrollContainer(container) : VScrollContainer(container)
|
|
143
|
+
: container;
|
|
144
|
+
this.update();
|
|
145
|
+
thumb.addEventListener("lostpointercapture", (e) => thumb.dispatchEvent(new MouseEvent('mouseup', e)));
|
|
146
|
+
thumb.addEventListener('pointerdown', event => {
|
|
147
|
+
console.log('down');
|
|
148
|
+
const pointerOffset = horizontal ? thumb.offsetLeft - event.clientX : thumb.offsetTop - event.clientY;
|
|
149
|
+
thumb.classList.add('active');
|
|
150
|
+
const onPointerMove = (event) => {
|
|
151
|
+
this.setThumbPixel(pointerOffset + (horizontal ? event.clientX : event.clientY));
|
|
152
|
+
};
|
|
153
|
+
const onPointerUp = () => {
|
|
154
|
+
console.log('up');
|
|
155
|
+
thumb.classList.remove('active');
|
|
156
|
+
window.removeEventListener('pointermove', onPointerMove);
|
|
157
|
+
window.removeEventListener('pointerup', onPointerUp);
|
|
158
|
+
};
|
|
159
|
+
if (thumb.setPointerCapture)
|
|
160
|
+
thumb.setPointerCapture(event.pointerId);
|
|
161
|
+
window.addEventListener('pointermove', onPointerMove);
|
|
162
|
+
window.addEventListener('pointerup', onPointerUp);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
update() {
|
|
166
|
+
this.setThumb(this.container.scrollOffset);
|
|
167
|
+
}
|
|
168
|
+
setScroll(scroll) {
|
|
169
|
+
this.container.scrollOffset = scroll;
|
|
170
|
+
this.setThumb(scroll);
|
|
171
|
+
}
|
|
172
|
+
setThumbSize(size) {
|
|
173
|
+
if (size != this.thumbSize) {
|
|
174
|
+
this.thumbSize = size;
|
|
175
|
+
if (this.horizontal)
|
|
176
|
+
this.thumb.style.width = `${size}px`;
|
|
177
|
+
else
|
|
178
|
+
this.thumb.style.height = `${size}px`;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
setThumb(scroll) {
|
|
182
|
+
const clientPixels = this.container.clientPixels;
|
|
183
|
+
const clientSize = this.container.clientSize;
|
|
184
|
+
const scrollSize = this.container.scrollSize;
|
|
185
|
+
const clientOffset = this.container.clientOffset;
|
|
186
|
+
let thumbPos, thumbSize;
|
|
187
|
+
if (clientSize >= scrollSize) {
|
|
188
|
+
this.thumb.classList.add('invisible');
|
|
189
|
+
thumbSize = scrollSize;
|
|
190
|
+
thumbPos = clientOffset;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
this.thumb.classList.remove('invisible');
|
|
194
|
+
thumbSize = Math.max(clientPixels * clientSize / scrollSize, 20);
|
|
195
|
+
thumbPos = clientOffset + scroll * (clientPixels - thumbSize) / (scrollSize - clientSize);
|
|
196
|
+
}
|
|
197
|
+
this.setThumbSize(thumbSize);
|
|
198
|
+
if (this.horizontal)
|
|
199
|
+
this.thumb.style.left = `${thumbPos}px`;
|
|
200
|
+
else
|
|
201
|
+
this.thumb.style.top = `${thumbPos}px`;
|
|
202
|
+
}
|
|
203
|
+
setThumbPixel(pos) {
|
|
204
|
+
const clientPixels = this.container.clientPixels;
|
|
205
|
+
const clientSize = this.container.clientSize;
|
|
206
|
+
const scrollSize = this.container.scrollSize;
|
|
207
|
+
const clientOffset = this.container.clientOffset;
|
|
208
|
+
const thumbPos = Math.min(Math.max(pos, clientOffset), clientOffset + clientPixels - this.thumbSize);
|
|
209
|
+
const scroll = (thumbPos - clientOffset) * (scrollSize - clientSize) / (clientPixels - this.thumbSize);
|
|
210
|
+
this.container.scrollOffset = scroll;
|
|
211
|
+
if (this.horizontal) {
|
|
212
|
+
this.thumb.style.left = `${thumbPos}px`;
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
this.thumb.style.top = `${thumbPos}px`;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
let resizeTimeout;
|
|
220
|
+
window.addEventListener('resize', () => {
|
|
221
|
+
document.documentElement.classList.add('resizing');
|
|
222
|
+
clearTimeout(resizeTimeout);
|
|
223
|
+
resizeTimeout = window.setTimeout(() => document.documentElement.classList.remove('resizing'), 500);
|
|
224
|
+
});
|
|
225
|
+
//-------------------------------------
|
|
226
|
+
// template
|
|
227
|
+
//-------------------------------------
|
|
228
|
+
function replace(text, re, process) {
|
|
229
|
+
let i = 0;
|
|
230
|
+
let result = '';
|
|
231
|
+
for (let m; (m = re.exec(text)); i = re.lastIndex)
|
|
232
|
+
result += text.substring(i, m.index) + process(m);
|
|
233
|
+
return result + text.substring(i);
|
|
234
|
+
}
|
|
235
|
+
function isElement(n) { return n.nodeType === window.Node.ELEMENT_NODE; }
|
|
236
|
+
function isText(n) { return n.nodeType === window.Node.TEXT_NODE; }
|
|
237
|
+
function replace_in_element(e, re, process) {
|
|
238
|
+
if (e.id)
|
|
239
|
+
e.id = replace(e.id, re, process);
|
|
240
|
+
const name = e.attributes.getNamedItem('name');
|
|
241
|
+
if (name)
|
|
242
|
+
name.value = replace(name.value, re, process);
|
|
243
|
+
const childNodes = e.childNodes;
|
|
244
|
+
for (const node of childNodes) {
|
|
245
|
+
if (isText(node) && node.textContent)
|
|
246
|
+
node.textContent = replace(node.textContent, re, process);
|
|
247
|
+
else if (isElement(node))
|
|
248
|
+
replace_in_element(node, re, process);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
export function template(template, parent, values) {
|
|
252
|
+
const newnodes = values.map(i => {
|
|
253
|
+
const child = template.cloneNode(true);
|
|
254
|
+
child.hidden = false;
|
|
255
|
+
replace_in_element(child, /\$\((.*)\)/g, m => i[m[1]]);
|
|
256
|
+
return child;
|
|
257
|
+
});
|
|
258
|
+
// const parent = after.parentNode;
|
|
259
|
+
// const before = after.nextSibling;
|
|
260
|
+
const before = null;
|
|
261
|
+
for (const i of newnodes)
|
|
262
|
+
parent.insertBefore(i, before);
|
|
263
|
+
}
|
|
264
|
+
export function generateSelector(e) {
|
|
265
|
+
const path = [];
|
|
266
|
+
while (e && isElement(e)) {
|
|
267
|
+
let index = 1;
|
|
268
|
+
for (let s = e; (s = s.previousElementSibling);) {
|
|
269
|
+
if (s.tagName === e.tagName)
|
|
270
|
+
index++;
|
|
271
|
+
}
|
|
272
|
+
//const selector = e.tagName.toLowerCase() + (index > 1 ? `:nth-of-type(${index})` : '');
|
|
273
|
+
const selector = `${e.tagName.toLowerCase()}:nth-of-type(${index})`;
|
|
274
|
+
path.unshift(selector);
|
|
275
|
+
e = e.parentNode;
|
|
276
|
+
}
|
|
277
|
+
return path.join(' > ');
|
|
278
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class Tree {
|
|
2
|
+
root: HTMLElement;
|
|
3
|
+
constructor(root: HTMLElement, notify: (caret: Element, down: boolean) => void);
|
|
4
|
+
open(element: Element): void;
|
|
5
|
+
close(element: Element): void;
|
|
6
|
+
close_all(): void;
|
|
7
|
+
all_open(): string[];
|
|
8
|
+
reveal(element: Element): void;
|
|
9
|
+
lastStuck(): HTMLElement | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function lastStuck(tree?: HTMLElement): HTMLElement | undefined;
|
|
12
|
+
export declare function updateStuck(): void;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/// <reference lib="dom" />
|
|
2
|
+
/// <reference lib="dom.iterable" />
|
|
3
|
+
import { generateSelector } from './shared';
|
|
4
|
+
export class Tree {
|
|
5
|
+
root;
|
|
6
|
+
constructor(root, notify) {
|
|
7
|
+
this.root = root;
|
|
8
|
+
this.root = root;
|
|
9
|
+
root.querySelectorAll('.caret').forEach(caret => {
|
|
10
|
+
caret.addEventListener('click', event => {
|
|
11
|
+
if (event.target === caret) {
|
|
12
|
+
caret.classList.toggle('caret-down');
|
|
13
|
+
notify(caret, caret.classList.contains('caret-down'));
|
|
14
|
+
event.stopPropagation();
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
open(element) {
|
|
20
|
+
element?.classList.add('caret-down');
|
|
21
|
+
}
|
|
22
|
+
close(element) {
|
|
23
|
+
element?.classList.remove('caret-down');
|
|
24
|
+
}
|
|
25
|
+
close_all() {
|
|
26
|
+
this.root.querySelectorAll('.caret-down').forEach(e => e.classList.remove('caret-down'));
|
|
27
|
+
}
|
|
28
|
+
all_open() {
|
|
29
|
+
return Array.from(this.root.querySelectorAll('.caret-down'), element => generateSelector(element));
|
|
30
|
+
}
|
|
31
|
+
reveal(element) {
|
|
32
|
+
if (element) {
|
|
33
|
+
for (let parent = element.parentNode; parent; parent = parent.parentNode) {
|
|
34
|
+
const p = parent;
|
|
35
|
+
if (p.classList?.contains('caret'))
|
|
36
|
+
p.classList.add('caret-down');
|
|
37
|
+
}
|
|
38
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
lastStuck() {
|
|
42
|
+
return lastStuck(this.root);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export function lastStuck(tree) {
|
|
46
|
+
let last_stuck;
|
|
47
|
+
if (tree) {
|
|
48
|
+
const x = tree.clientWidth - 20;
|
|
49
|
+
let y = 5;
|
|
50
|
+
for (;;) {
|
|
51
|
+
const e = document.elementFromPoint(x, y);
|
|
52
|
+
if (!e || getComputedStyle(e).getPropertyValue('position') != 'sticky')
|
|
53
|
+
break;
|
|
54
|
+
const bottom = e.getBoundingClientRect().bottom;
|
|
55
|
+
const next = e.nextElementSibling;
|
|
56
|
+
if (next?.getBoundingClientRect().top >= bottom)
|
|
57
|
+
break;
|
|
58
|
+
last_stuck = e;
|
|
59
|
+
y = bottom + 5;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return last_stuck;
|
|
63
|
+
}
|
|
64
|
+
let prev_stuck;
|
|
65
|
+
export function updateStuck() {
|
|
66
|
+
const last_stuck = lastStuck(document.querySelector('.tree'));
|
|
67
|
+
if (last_stuck !== prev_stuck) {
|
|
68
|
+
if (prev_stuck)
|
|
69
|
+
prev_stuck.classList.remove('stuck');
|
|
70
|
+
if (last_stuck)
|
|
71
|
+
last_stuck.classList.add('stuck');
|
|
72
|
+
prev_stuck = last_stuck;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/typescript/lib/lib.es2022.full.d.ts","../../src/webview/shared.ts","../../src/webview/tree.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/@types/node/compatibility/index.d.ts","../../node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/undici-types/header.d.ts","../../node_modules/undici-types/readable.d.ts","../../node_modules/undici-types/file.d.ts","../../node_modules/undici-types/fetch.d.ts","../../node_modules/undici-types/formdata.d.ts","../../node_modules/undici-types/connector.d.ts","../../node_modules/undici-types/client.d.ts","../../node_modules/undici-types/errors.d.ts","../../node_modules/undici-types/dispatcher.d.ts","../../node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/undici-types/global-origin.d.ts","../../node_modules/undici-types/pool-stats.d.ts","../../node_modules/undici-types/pool.d.ts","../../node_modules/undici-types/handlers.d.ts","../../node_modules/undici-types/balanced-pool.d.ts","../../node_modules/undici-types/agent.d.ts","../../node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/undici-types/mock-agent.d.ts","../../node_modules/undici-types/mock-client.d.ts","../../node_modules/undici-types/mock-pool.d.ts","../../node_modules/undici-types/mock-errors.d.ts","../../node_modules/undici-types/proxy-agent.d.ts","../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/undici-types/retry-handler.d.ts","../../node_modules/undici-types/retry-agent.d.ts","../../node_modules/undici-types/api.d.ts","../../node_modules/undici-types/interceptors.d.ts","../../node_modules/undici-types/util.d.ts","../../node_modules/undici-types/cookies.d.ts","../../node_modules/undici-types/patch.d.ts","../../node_modules/undici-types/websocket.d.ts","../../node_modules/undici-types/eventsource.d.ts","../../node_modules/undici-types/filereader.d.ts","../../node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/undici-types/content-type.d.ts","../../node_modules/undici-types/cache.d.ts","../../node_modules/undici-types/index.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/dom-events.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/readline/promises.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/sea.d.ts","../../node_modules/@types/node/sqlite.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/test.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/vscode/index.d.ts"],"fileIdsList":[[73,115],[73,112,115],[73,114,115],[115],[73,115,120,150],[73,115,116,121,127,128,135,147,158],[73,115,116,117,127,135],[68,69,70,73,115],[73,115,118,159],[73,115,119,120,128,136],[73,115,120,147,155],[73,115,121,123,127,135],[73,114,115,122],[73,115,123,124],[73,115,127],[73,115,125,127],[73,114,115,127],[73,115,127,128,129,147,158],[73,115,127,128,129,142,147,150],[73,110,115,163],[73,110,115,123,127,130,135,147,158],[73,115,127,128,130,131,135,147,155,158],[73,115,130,132,147,155,158],[71,72,73,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[73,115,127,133],[73,115,134,158],[73,115,123,127,135,147],[73,115,136],[73,115,137],[73,114,115,138],[73,112,113,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[73,115,140],[73,115,141],[73,115,127,142,143],[73,115,142,144,159,161],[73,115,127,147,148,150],[73,115,147,149],[73,115,147,148],[73,115,150],[73,115,151],[73,112,115,147],[73,115,127,153,154],[73,115,153,154],[73,115,120,135,147,155],[73,115,156],[73,115,135,157],[73,115,130,141,158],[73,115,120,159],[73,115,147,160],[73,115,134,161],[73,115,162],[73,115,120,127,129,138,147,158,161,163],[73,115,147,164],[73,82,86,115,158],[73,82,115,147,158],[73,77,115],[73,79,82,115,155,158],[73,115,135,155],[73,115,165],[73,77,115,165],[73,79,82,115,135,158],[73,74,75,78,81,115,127,147,158],[73,82,89,115],[73,74,80,115],[73,82,103,104,115],[73,78,82,115,150,158,165],[73,103,115,165],[73,76,77,115,165],[73,82,115],[73,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,104,105,106,107,108,109,115],[73,82,97,115],[73,82,89,90,115],[73,80,82,90,91,115],[73,81,115],[73,74,77,82,115],[73,82,86,90,91,115],[73,86,115],[73,80,82,85,115,158],[73,74,79,82,89,115],[73,115,147],[73,77,82,103,115,163,165],[64,73,115]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},{"version":"6a936c742e672399384f2e3b335ddba57d73dc5f72f1fb3236ee47466ec97893","signature":"57995675e7459a8ac1a951a1d910aaf5164a5dc2a4d1640ee7a386848ee29f1f"},{"version":"d71e291fda2d0b8de048919e11d41f30002e891824b9791aa024e08a91cabe9c","signature":"48582cf7d7ecdf33c2b2e4b4706e058d67fd1d383877a397c2e2e994f88ed0a0"},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8fa51737611c21ba3a5ac02c4e1535741d58bec67c9bdf94b1837a31c97a2263","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"f9677e434b7a3b14f0a9367f9dfa1227dfe3ee661792d0085523c3191ae6a1a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"b11cb909327c874a4e81bfb390bf0d231e5bf9439052689ab80ba8afa50da17b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"f7b1df115dbd1b8522cba4f404a9f4fdcd5169e2137129187ffeee9d287e4fd1","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"fbf68fc8057932b1c30107ebc37420f8d8dc4bef1253c4c2f9e141886c0df5ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"7b3098756b32d6029cd9889b087a32e890298bd7953d05b72b02f6a3ad4f318a","affectsGlobalScope":true,"impliedFormat":1}],"root":[64,65],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"jsx":4,"module":99,"outDir":"..","rootDir":"../../src","skipLibCheck":true,"strict":true,"target":9},"referencedMap":[[66,1],[67,1],[112,2],[113,2],[114,3],[73,4],[115,5],[116,6],[117,7],[68,1],[71,8],[69,1],[70,1],[118,9],[119,10],[120,11],[121,12],[122,13],[123,14],[124,14],[126,15],[125,16],[127,17],[128,18],[129,19],[111,20],[72,1],[130,21],[131,22],[132,23],[165,24],[133,25],[134,26],[135,27],[136,28],[137,29],[138,30],[139,31],[140,32],[141,33],[142,34],[143,34],[144,35],[145,1],[146,1],[147,36],[149,37],[148,38],[150,39],[151,40],[152,41],[153,42],[154,43],[155,44],[156,45],[157,46],[158,47],[159,48],[160,49],[161,50],[162,51],[163,52],[164,53],[166,1],[61,1],[62,1],[12,1],[10,1],[11,1],[16,1],[15,1],[2,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[24,1],[3,1],[25,1],[26,1],[4,1],[27,1],[31,1],[28,1],[29,1],[30,1],[32,1],[33,1],[34,1],[5,1],[35,1],[36,1],[37,1],[38,1],[6,1],[42,1],[39,1],[40,1],[41,1],[43,1],[7,1],[44,1],[49,1],[50,1],[45,1],[46,1],[47,1],[48,1],[8,1],[54,1],[51,1],[52,1],[53,1],[55,1],[9,1],[56,1],[63,1],[57,1],[58,1],[60,1],[59,1],[1,1],[14,1],[13,1],[89,54],[99,55],[88,54],[109,56],[80,57],[79,58],[108,59],[102,60],[107,61],[82,62],[96,63],[81,64],[105,65],[77,66],[76,59],[106,67],[78,68],[83,69],[84,1],[87,69],[74,1],[110,70],[100,71],[91,72],[92,73],[94,74],[90,75],[93,76],[103,59],[85,77],[86,78],[95,79],[75,80],[98,71],[97,69],[101,1],[104,81],[64,1],[65,82]],"latestChangedDtsFile":"./tree.d.ts","version":"5.8.2"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isopodlabs/vscode_utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "vscode utilities",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./fs": "./dist/fs.js",
|
|
7
7
|
"./debug": "./dist/debug.js",
|
|
8
8
|
"./icon-theme": "./dist/icon-theme.js",
|
|
9
|
-
"./jsx-runtime": "./dist/jsx-runtime.js"
|
|
9
|
+
"./jsx-runtime": "./dist/jsx-runtime.js",
|
|
10
|
+
"./webview": "./dist/webview/shared.js"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
13
|
"dist",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"README.md"
|
|
15
16
|
],
|
|
16
17
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
+
"compile": "tsc -b",
|
|
18
19
|
"test": "echo \"No tests specified\" && exit 0"
|
|
19
20
|
},
|
|
20
21
|
"keywords": [
|