@codingame/monaco-vscode-extensions-service-override 2.1.4 → 2.2.0-next.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/extensions.js +3 -0
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +1 -1
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
- package/vscode/src/vs/platform/log/browser/log.js +0 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +0 -92
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +0 -109
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +0 -397
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +0 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +0 -1279
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +0 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +0 -125
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +0 -344
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +0 -453
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +0 -178
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +0 -36
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +0 -180
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +0 -5
package/extensions.js
CHANGED
|
@@ -38,6 +38,9 @@ import { CustomSchemas } from '@codingame/monaco-vscode-files-service-override';
|
|
|
38
38
|
import { registerAssets } from 'vscode/assets';
|
|
39
39
|
import 'vscode/vscode/vs/workbench/services/themes/common/colorExtensionPoint';
|
|
40
40
|
import 'vscode/vscode/vs/workbench/services/themes/common/iconExtensionPoint';
|
|
41
|
+
import 'vscode/vscode/vs/nls';
|
|
42
|
+
import 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
43
|
+
import 'vscode/vscode/vs/platform/theme/common/tokenClassificationRegistry';
|
|
41
44
|
import 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint';
|
|
42
45
|
import 'vscode/vscode/vs/workbench/api/browser/statusBarExtensionPoint';
|
|
43
46
|
import './vscode/src/vs/workbench/api/browser/mainThreadLocalization.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.0-next.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.1
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.2.0-next.1",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
23
|
"vscode-semver": "npm:semver@=5.5.0",
|
|
24
|
-
"@codingame/monaco-vscode-files-service-override": "2.1
|
|
24
|
+
"@codingame/monaco-vscode-files-service-override": "2.2.0-next.1"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -6,9 +6,9 @@ import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
|
6
6
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
7
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
8
8
|
import { ICommentService } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentService';
|
|
9
|
-
import { CommentsPanel } from '
|
|
9
|
+
import { CommentsPanel } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentsView';
|
|
10
10
|
import { MainContext, ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
11
|
-
import { COMMENTS_VIEW_ID, COMMENTS_VIEW_TITLE, COMMENTS_VIEW_STORAGE_ID } from '
|
|
11
|
+
import { COMMENTS_VIEW_ID, COMMENTS_VIEW_TITLE, COMMENTS_VIEW_STORAGE_ID } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentsTreeViewer';
|
|
12
12
|
import { IViewDescriptorService, Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
13
13
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
14
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
@@ -17,7 +17,7 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
|
|
|
17
17
|
import { SideBySideEditorInput } from 'vscode/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
18
18
|
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
19
19
|
import { isGroupEditorMoveEvent } from 'vscode/vscode/vs/workbench/common/editor/editorGroupModel';
|
|
20
|
-
import { InteractiveEditorInput } from '
|
|
20
|
+
import { InteractiveEditorInput } from 'vscode/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput';
|
|
21
21
|
import { MergeEditorInput } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
|
|
22
22
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
23
23
|
import { ChatEditorInput } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
@@ -5,7 +5,7 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
|
|
|
5
5
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
6
6
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
7
7
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
-
import { getLogs } from '
|
|
8
|
+
import { getLogs } from 'vscode/vscode/vs/platform/log/browser/log';
|
|
9
9
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
10
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
11
11
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
@@ -1,3 +0,0 @@
|
|
|
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 };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { relativePath } from 'vscode/vscode/vs/base/common/resources';
|
|
2
|
-
|
|
3
|
-
async function getLogs(fileService, environmentService) {
|
|
4
|
-
const result = [];
|
|
5
|
-
await doGetLogs(fileService, result, environmentService.logsHome, environmentService.logsHome);
|
|
6
|
-
return result;
|
|
7
|
-
}
|
|
8
|
-
async function doGetLogs(fileService, logs, curFolder, logsHome) {
|
|
9
|
-
const stat = await fileService.resolve(curFolder);
|
|
10
|
-
for (const { resource, isDirectory } of stat.children || []) {
|
|
11
|
-
if (isDirectory) {
|
|
12
|
-
await doGetLogs(fileService, logs, resource, logsHome);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
const contents = ( (await fileService.readFile(resource)).value.toString());
|
|
16
|
-
if (contents) {
|
|
17
|
-
const path = relativePath(logsHome, resource);
|
|
18
|
-
if (path) {
|
|
19
|
-
logs.push({ relativePath: path, contents });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { getLogs };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
-
import { Color } from 'vscode/vscode/vs/base/common/color';
|
|
3
|
-
import { OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
|
|
4
|
-
import { ModelDecorationOptions } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
5
|
-
import { registerColor, opaque, listInactiveSelectionBackground, editorBackground, darken, editorForeground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
6
|
-
import { themeColorFromId } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
7
|
-
import { CommentThreadState } from 'vscode/vscode/vs/editor/common/languages';
|
|
8
|
-
|
|
9
|
-
const overviewRulerCommentingRangeForeground = registerColor('editorGutter.commentRangeForeground', { dark: opaque(listInactiveSelectionBackground, editorBackground), light: ( darken(opaque(listInactiveSelectionBackground, editorBackground), .05)), hcDark: Color.white, hcLight: Color.black }, ( localizeWithPath(
|
|
10
|
-
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
11
|
-
'editorGutterCommentRangeForeground',
|
|
12
|
-
'Editor gutter decoration color for commenting ranges. This color should be opaque.'
|
|
13
|
-
)));
|
|
14
|
-
const overviewRulerCommentForeground = registerColor('editorOverviewRuler.commentForeground', { dark: overviewRulerCommentingRangeForeground, light: overviewRulerCommentingRangeForeground, hcDark: overviewRulerCommentingRangeForeground, hcLight: overviewRulerCommentingRangeForeground }, ( localizeWithPath(
|
|
15
|
-
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
16
|
-
'editorOverviewRuler.commentForeground',
|
|
17
|
-
'Editor overview ruler decoration color for resolved comments. This color should be opaque.'
|
|
18
|
-
)));
|
|
19
|
-
const overviewRulerCommentUnresolvedForeground = registerColor('editorOverviewRuler.commentUnresolvedForeground', { dark: overviewRulerCommentForeground, light: overviewRulerCommentForeground, hcDark: overviewRulerCommentForeground, hcLight: overviewRulerCommentForeground }, ( localizeWithPath(
|
|
20
|
-
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
21
|
-
'editorOverviewRuler.commentUnresolvedForeground',
|
|
22
|
-
'Editor overview ruler decoration color for unresolved comments. This color should be opaque.'
|
|
23
|
-
)));
|
|
24
|
-
const editorGutterCommentGlyphForeground = registerColor('editorGutter.commentGlyphForeground', { dark: editorForeground, light: editorForeground, hcDark: Color.black, hcLight: Color.white }, ( localizeWithPath(
|
|
25
|
-
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
26
|
-
'editorGutterCommentGlyphForeground',
|
|
27
|
-
'Editor gutter decoration color for commenting glyphs.'
|
|
28
|
-
)));
|
|
29
|
-
registerColor('editorGutter.commentUnresolvedGlyphForeground', { dark: editorGutterCommentGlyphForeground, light: editorGutterCommentGlyphForeground, hcDark: editorGutterCommentGlyphForeground, hcLight: editorGutterCommentGlyphForeground }, ( localizeWithPath(
|
|
30
|
-
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
31
|
-
'editorGutterCommentUnresolvedGlyphForeground',
|
|
32
|
-
'Editor gutter decoration color for commenting glyphs for unresolved comment threads.'
|
|
33
|
-
)));
|
|
34
|
-
class CommentGlyphWidget {
|
|
35
|
-
static { this.description = 'comment-glyph-widget'; }
|
|
36
|
-
constructor(editor, lineNumber) {
|
|
37
|
-
this._commentsOptions = this.createDecorationOptions();
|
|
38
|
-
this._editor = editor;
|
|
39
|
-
this._commentsDecorations = this._editor.createDecorationsCollection();
|
|
40
|
-
this.setLineNumber(lineNumber);
|
|
41
|
-
}
|
|
42
|
-
createDecorationOptions() {
|
|
43
|
-
const unresolved = this._threadState === CommentThreadState.Unresolved;
|
|
44
|
-
const decorationOptions = {
|
|
45
|
-
description: CommentGlyphWidget.description,
|
|
46
|
-
isWholeLine: true,
|
|
47
|
-
overviewRuler: {
|
|
48
|
-
color: themeColorFromId(unresolved ? overviewRulerCommentUnresolvedForeground : overviewRulerCommentForeground),
|
|
49
|
-
position: OverviewRulerLane.Center
|
|
50
|
-
},
|
|
51
|
-
collapseOnReplaceEdit: true,
|
|
52
|
-
linesDecorationsClassName: `comment-range-glyph comment-thread${unresolved ? '-unresolved' : ''}`
|
|
53
|
-
};
|
|
54
|
-
return ModelDecorationOptions.createDynamic(decorationOptions);
|
|
55
|
-
}
|
|
56
|
-
setThreadState(state) {
|
|
57
|
-
if (this._threadState !== state) {
|
|
58
|
-
this._threadState = state;
|
|
59
|
-
this._commentsOptions = this.createDecorationOptions();
|
|
60
|
-
this._updateDecorations();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
_updateDecorations() {
|
|
64
|
-
const commentsDecorations = [{
|
|
65
|
-
range: {
|
|
66
|
-
startLineNumber: this._lineNumber, startColumn: 1,
|
|
67
|
-
endLineNumber: this._lineNumber, endColumn: 1
|
|
68
|
-
},
|
|
69
|
-
options: this._commentsOptions
|
|
70
|
-
}];
|
|
71
|
-
this._commentsDecorations.set(commentsDecorations);
|
|
72
|
-
}
|
|
73
|
-
setLineNumber(lineNumber) {
|
|
74
|
-
this._lineNumber = lineNumber;
|
|
75
|
-
this._updateDecorations();
|
|
76
|
-
}
|
|
77
|
-
getPosition() {
|
|
78
|
-
const range = (this._commentsDecorations.length > 0 ? this._commentsDecorations.getRange(0) : null);
|
|
79
|
-
return {
|
|
80
|
-
position: {
|
|
81
|
-
lineNumber: range ? range.endLineNumber : this._lineNumber,
|
|
82
|
-
column: 1
|
|
83
|
-
},
|
|
84
|
-
preference: [0 ]
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
dispose() {
|
|
88
|
-
this._commentsDecorations.clear();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export { CommentGlyphWidget, overviewRulerCommentingRangeForeground };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { Disposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
-
import { CommentThreadCollapsibleState } from 'vscode/vscode/vs/editor/common/languages';
|
|
3
|
-
import { ModelDecorationOptions } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
4
|
-
|
|
5
|
-
class CommentThreadRangeDecoration {
|
|
6
|
-
get id() {
|
|
7
|
-
return this._decorationId;
|
|
8
|
-
}
|
|
9
|
-
set id(id) {
|
|
10
|
-
this._decorationId = id;
|
|
11
|
-
}
|
|
12
|
-
constructor(range, options) {
|
|
13
|
-
this.range = range;
|
|
14
|
-
this.options = options;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
class CommentThreadRangeDecorator extends Disposable {
|
|
18
|
-
static { this.description = 'comment-thread-range-decorator'; }
|
|
19
|
-
constructor(commentService) {
|
|
20
|
-
super();
|
|
21
|
-
this.decorationIds = [];
|
|
22
|
-
this.activeDecorationIds = [];
|
|
23
|
-
this.threadCollapseStateListeners = [];
|
|
24
|
-
const decorationOptions = {
|
|
25
|
-
description: CommentThreadRangeDecorator.description,
|
|
26
|
-
isWholeLine: false,
|
|
27
|
-
zIndex: 20,
|
|
28
|
-
className: 'comment-thread-range',
|
|
29
|
-
shouldFillLineOnLineBreak: true
|
|
30
|
-
};
|
|
31
|
-
this.decorationOptions = ModelDecorationOptions.createDynamic(decorationOptions);
|
|
32
|
-
const activeDecorationOptions = {
|
|
33
|
-
description: CommentThreadRangeDecorator.description,
|
|
34
|
-
isWholeLine: false,
|
|
35
|
-
zIndex: 20,
|
|
36
|
-
className: 'comment-thread-range-current',
|
|
37
|
-
shouldFillLineOnLineBreak: true
|
|
38
|
-
};
|
|
39
|
-
this.activeDecorationOptions = ModelDecorationOptions.createDynamic(activeDecorationOptions);
|
|
40
|
-
this._register(commentService.onDidChangeCurrentCommentThread(thread => {
|
|
41
|
-
this.updateCurrent(thread);
|
|
42
|
-
}));
|
|
43
|
-
this._register(commentService.onDidUpdateCommentThreads(() => {
|
|
44
|
-
this.updateCurrent(undefined);
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
updateCurrent(thread) {
|
|
48
|
-
if (!this.editor || (thread?.resource && (thread.resource?.toString() !== this.editor.getModel()?.uri.toString()))) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.currentThreadCollapseStateListener?.dispose();
|
|
52
|
-
const newDecoration = [];
|
|
53
|
-
if (thread) {
|
|
54
|
-
const range = thread.range;
|
|
55
|
-
if (range && !((range.startLineNumber === range.endLineNumber) && (range.startColumn === range.endColumn))) {
|
|
56
|
-
if (thread.collapsibleState === CommentThreadCollapsibleState.Expanded) {
|
|
57
|
-
this.currentThreadCollapseStateListener = thread.onDidChangeCollapsibleState(state => {
|
|
58
|
-
if (state === CommentThreadCollapsibleState.Collapsed) {
|
|
59
|
-
this.updateCurrent(undefined);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
newDecoration.push(( new CommentThreadRangeDecoration(range, this.activeDecorationOptions)));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
this.editor.changeDecorations((changeAccessor) => {
|
|
67
|
-
this.activeDecorationIds = changeAccessor.deltaDecorations(this.activeDecorationIds, newDecoration);
|
|
68
|
-
newDecoration.forEach((decoration, index) => decoration.id = this.decorationIds[index]);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
update(editor, commentInfos) {
|
|
72
|
-
const model = editor?.getModel();
|
|
73
|
-
if (!editor || !model) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
dispose(this.threadCollapseStateListeners);
|
|
77
|
-
this.editor = editor;
|
|
78
|
-
const commentThreadRangeDecorations = [];
|
|
79
|
-
for (const info of commentInfos) {
|
|
80
|
-
info.threads.forEach(thread => {
|
|
81
|
-
if (thread.isDisposed) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
const range = thread.range;
|
|
85
|
-
if (!range || (range.startLineNumber === range.endLineNumber) && (range.startColumn === range.endColumn)) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
this.threadCollapseStateListeners.push(thread.onDidChangeCollapsibleState(() => {
|
|
89
|
-
this.update(editor, commentInfos);
|
|
90
|
-
}));
|
|
91
|
-
if (thread.collapsibleState === CommentThreadCollapsibleState.Collapsed) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
commentThreadRangeDecorations.push(( new CommentThreadRangeDecoration(range, this.decorationOptions)));
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
editor.changeDecorations((changeAccessor) => {
|
|
98
|
-
this.decorationIds = changeAccessor.deltaDecorations(this.decorationIds, commentThreadRangeDecorations);
|
|
99
|
-
commentThreadRangeDecorations.forEach((decoration, index) => decoration.id = this.decorationIds[index]);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
dispose() {
|
|
103
|
-
dispose(this.threadCollapseStateListeners);
|
|
104
|
-
this.currentThreadCollapseStateListener?.dispose();
|
|
105
|
-
super.dispose();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export { CommentThreadRangeDecorator };
|