@codingame/monaco-vscode-timeline-service-override 4.1.0 → 4.1.2
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/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
- package/external/tslib/tslib.es6.js +11 -0
- package/override/vs/platform/dialogs/common/dialogs.js +10 -0
- package/package.json +2 -2
- package/timeline.js +3 -3
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +37 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.js +637 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.js +89 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.js +138 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/media/timelinePane.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js +120 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.js +1163 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.js +108 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=( Object.keys(r.attributes)),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
2
|
+
|
|
3
|
+
export { n as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function __decorate(decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
}
|
|
7
|
+
function __param(paramIndex, decorator) {
|
|
8
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { __decorate, __param };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { AbstractDialogHandler, IDialogService, IFileDialogService, getFileNamesMessage } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
2
|
+
|
|
3
|
+
var ConfirmResult;
|
|
4
|
+
( (function(ConfirmResult) {
|
|
5
|
+
ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
|
|
6
|
+
ConfirmResult[ConfirmResult["DONT_SAVE"] = 1] = "DONT_SAVE";
|
|
7
|
+
ConfirmResult[ConfirmResult["CANCEL"] = 2] = "CANCEL";
|
|
8
|
+
})(ConfirmResult || (ConfirmResult = {})));
|
|
9
|
+
|
|
10
|
+
export { ConfirmResult };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-timeline-service-override",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@4.1.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.1.2"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/timeline.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
-
import 'vscode/
|
|
3
|
-
import 'vscode/
|
|
2
|
+
import './vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js';
|
|
3
|
+
import './vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js';
|
|
4
4
|
import { ITimelineService } from 'vscode/vscode/vs/workbench/contrib/timeline/common/timeline';
|
|
5
|
-
import { TimelineService } from 'vscode/
|
|
5
|
+
import { TimelineService } from './vscode/src/vs/workbench/contrib/timeline/common/timelineService.js';
|
|
6
6
|
|
|
7
7
|
function getServiceOverride() {
|
|
8
8
|
return {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './localHistoryCommands.js';
|
|
2
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
3
|
+
import { LocalHistoryTimeline } from './localHistoryTimeline.js';
|
|
4
|
+
|
|
5
|
+
registerWorkbenchContribution2(LocalHistoryTimeline.ID, LocalHistoryTimeline, 2 );
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
+
import { language } from 'vscode/vscode/vs/base/common/platform';
|
|
4
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
5
|
+
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
6
|
+
|
|
7
|
+
let localHistoryDateFormatter = undefined;
|
|
8
|
+
function getLocalHistoryDateFormatter() {
|
|
9
|
+
if (!localHistoryDateFormatter) {
|
|
10
|
+
const options = { year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric' };
|
|
11
|
+
let formatter;
|
|
12
|
+
try {
|
|
13
|
+
formatter = new Intl.DateTimeFormat(language, options);
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
formatter = new Intl.DateTimeFormat(undefined, options);
|
|
17
|
+
}
|
|
18
|
+
localHistoryDateFormatter = {
|
|
19
|
+
format: date => formatter.format(date)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return localHistoryDateFormatter;
|
|
23
|
+
}
|
|
24
|
+
const LOCAL_HISTORY_MENU_CONTEXT_VALUE = 'localHistory:item';
|
|
25
|
+
const LOCAL_HISTORY_MENU_CONTEXT_KEY = ( ContextKeyExpr.equals('timelineItem', LOCAL_HISTORY_MENU_CONTEXT_VALUE));
|
|
26
|
+
const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localizeWithPath(
|
|
27
|
+
'vs/workbench/contrib/localHistory/browser/localHistory',
|
|
28
|
+
'localHistoryIcon',
|
|
29
|
+
"Icon for a local history entry in the timeline view."
|
|
30
|
+
)));
|
|
31
|
+
const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localizeWithPath(
|
|
32
|
+
'vs/workbench/contrib/localHistory/browser/localHistory',
|
|
33
|
+
'localHistoryRestore',
|
|
34
|
+
"Icon for restoring contents of a local history entry."
|
|
35
|
+
)));
|
|
36
|
+
|
|
37
|
+
export { LOCAL_HISTORY_ICON_ENTRY, LOCAL_HISTORY_ICON_RESTORE, LOCAL_HISTORY_MENU_CONTEXT_KEY, LOCAL_HISTORY_MENU_CONTEXT_VALUE, getLocalHistoryDateFormatter };
|