shareable-twoslash-comments 0.0.13 → 0.0.14
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/index.js +7 -1
- package/package.json +1 -1
- package/playwright-report/index.html +85 -0
- package/test-results/.last-run.json +4 -0
package/dist/index.js
CHANGED
|
@@ -155,7 +155,7 @@ define(function () { 'use strict';
|
|
|
155
155
|
}
|
|
156
156
|
return prevQuickInfoLines.join(model.getEOL());
|
|
157
157
|
}
|
|
158
|
-
var multilineEnabled, truncationDisabled, compactOutputEnabled, pauseOnError, model, worker, diagnostics, text, editOperations, matches, _i, matches_1, _a, match, queryType, textBeforeQuery, commentPrefix, isInlineArrowQuery, lineNumber, column, caretOffset, caretPos, quickInfoLine, quickInfoString, quickInfoComment, prevQuickInfoComment, prevQuickInfoLines, prevQuickInfoEndLine;
|
|
158
|
+
var multilineEnabled, truncationDisabled, compactOutputEnabled, pauseOnError, model, worker, versionId, diagnostics, text, editOperations, matches, _i, matches_1, _a, match, queryType, textBeforeQuery, commentPrefix, isInlineArrowQuery, lineNumber, column, caretOffset, caretPos, quickInfoLine, quickInfoString, quickInfoComment, prevQuickInfoComment, prevQuickInfoLines, prevQuickInfoEndLine;
|
|
159
159
|
if (isUndoRedoChange === void 0) { isUndoRedoChange = false; }
|
|
160
160
|
return __generator(this, function (_b) {
|
|
161
161
|
switch (_b.label) {
|
|
@@ -168,6 +168,7 @@ define(function () { 'use strict';
|
|
|
168
168
|
return [4 /*yield*/, sandbox.getWorkerProcess()];
|
|
169
169
|
case 1:
|
|
170
170
|
worker = _b.sent();
|
|
171
|
+
versionId = model.getVersionId();
|
|
171
172
|
if (!pauseOnError) return [3 /*break*/, 3];
|
|
172
173
|
return [4 /*yield*/, Promise.all([
|
|
173
174
|
worker.getSyntacticDiagnostics("file://" + model.uri.path),
|
|
@@ -231,6 +232,10 @@ define(function () { 'use strict';
|
|
|
231
232
|
_i++;
|
|
232
233
|
return [3 /*break*/, 4];
|
|
233
234
|
case 7:
|
|
235
|
+
if (model.getVersionId() !== versionId) {
|
|
236
|
+
console.log("Skipping stale edits");
|
|
237
|
+
return [2 /*return*/];
|
|
238
|
+
}
|
|
234
239
|
if (editOperations.length > 0) {
|
|
235
240
|
if (!isUndoRedoChange) {
|
|
236
241
|
model.popStackElement();
|
|
@@ -398,6 +403,7 @@ define(function () { 'use strict';
|
|
|
398
403
|
};
|
|
399
404
|
return customPlugin;
|
|
400
405
|
};
|
|
406
|
+
//# sourceMappingURL=index.js.map
|
|
401
407
|
|
|
402
408
|
return makePlugin;
|
|
403
409
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shareable-twoslash-comments",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"description": "A TypeScript Playground plugin that embeds twoslash (// ^?) type hints as literal comments in your code, making them easy to copy and share.",
|
|
6
6
|
"license": "MIT",
|