@codingame/monaco-vscode-extensions-service-override 1.85.6 → 2.0.0-v2.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 +18 -14
- package/package.json +5 -5
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +7 -7
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +1 -1
- package/vscode/src/vs/platform/log/browser/log.js +1 -1
- package/vscode/src/vs/platform/remote/common/managedSocket.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +20 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadChatProvider.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +17 -17
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +13 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +12 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +9 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +18 -18
- package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +14 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +11 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadProfilContentHandlers.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +9 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +15 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +13 -13
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +27 -27
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +30 -30
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +41 -41
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +38 -38
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +2 -2
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +7 -7
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +11 -11
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +28 -28
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +38 -38
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +16 -16
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +8 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +5 -5
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +13 -13
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { renderMarkdown } from '
|
|
5
|
-
import { DisposableStore } from '
|
|
6
|
-
import { IOpenerService } from '
|
|
2
|
+
import { append, $ } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { renderMarkdown } from 'vscode/vscode/vs/base/browser/markdownRenderer';
|
|
5
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
7
7
|
import { CommentNode, ResourceWithCommentThreads, CommentsModel } from '../common/commentModel.js';
|
|
8
|
-
import { IConfigurationService } from '
|
|
9
|
-
import { IContextKeyService } from '
|
|
10
|
-
import { IListService, WorkbenchObjectTree } from '
|
|
11
|
-
import { IThemeService } from '
|
|
12
|
-
import { IInstantiationService } from '
|
|
8
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
9
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
10
|
+
import { IListService, WorkbenchObjectTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
11
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
12
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
13
|
import { TimestampWidget } from 'vscode/vscode/vs/workbench/contrib/comments/browser/timestamp';
|
|
14
|
-
import { Codicon } from '
|
|
15
|
-
import { ThemeIcon } from '
|
|
14
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
15
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
16
16
|
import { commentViewThreadStateColorVar, getCommentThreadStateIconColor } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentColors';
|
|
17
|
-
import { CommentThreadState } from '
|
|
17
|
+
import { CommentThreadState } from 'vscode/vscode/vs/editor/common/languages';
|
|
18
18
|
import { FilterOptions } from './commentsFilterOptions.js';
|
|
19
|
-
import { basename } from '
|
|
20
|
-
import { openLinkFromMarkdown } from '
|
|
19
|
+
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
20
|
+
import { openLinkFromMarkdown } from 'vscode/vscode/vs/editor/contrib/markdownRenderer/browser/markdownRenderer';
|
|
21
21
|
|
|
22
22
|
const COMMENTS_VIEW_ID = 'workbench.panel.comments';
|
|
23
23
|
const COMMENTS_VIEW_STORAGE_ID = 'Comments';
|
|
24
|
-
const COMMENTS_VIEW_TITLE = (
|
|
24
|
+
const COMMENTS_VIEW_TITLE = ( localize2WithPath(
|
|
25
25
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
26
26
|
'comments.view.title',
|
|
27
27
|
"Comments"
|
|
@@ -51,10 +51,10 @@ class ResourceWithCommentsRenderer {
|
|
|
51
51
|
this.templateId = 'resource-with-comments';
|
|
52
52
|
}
|
|
53
53
|
renderTemplate(container) {
|
|
54
|
-
const labelContainer =
|
|
54
|
+
const labelContainer = append(container, $('.resource-container'));
|
|
55
55
|
const resourceLabel = this.labels.create(labelContainer);
|
|
56
|
-
const separator =
|
|
57
|
-
const owner = labelContainer.appendChild(
|
|
56
|
+
const separator = append(labelContainer, $('.separator'));
|
|
57
|
+
const owner = labelContainer.appendChild($('.owner'));
|
|
58
58
|
return { resourceLabel, owner, separator };
|
|
59
59
|
}
|
|
60
60
|
renderElement(node, index, templateData, height) {
|
|
@@ -81,30 +81,30 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
81
81
|
this.templateId = 'comment-node';
|
|
82
82
|
}
|
|
83
83
|
renderTemplate(container) {
|
|
84
|
-
const threadContainer =
|
|
85
|
-
const metadataContainer =
|
|
84
|
+
const threadContainer = append(container, $('.comment-thread-container'));
|
|
85
|
+
const metadataContainer = append(threadContainer, $('.comment-metadata-container'));
|
|
86
86
|
const threadMetadata = {
|
|
87
|
-
icon:
|
|
88
|
-
userNames:
|
|
87
|
+
icon: append(metadataContainer, $('.icon')),
|
|
88
|
+
userNames: append(metadataContainer, $('.user')),
|
|
89
89
|
timestamp: ( new TimestampWidget(
|
|
90
90
|
this.configurationService,
|
|
91
|
-
|
|
91
|
+
append(metadataContainer, $('.timestamp-container'))
|
|
92
92
|
)),
|
|
93
|
-
separator:
|
|
94
|
-
commentPreview:
|
|
95
|
-
range:
|
|
93
|
+
separator: append(metadataContainer, $('.separator')),
|
|
94
|
+
commentPreview: append(metadataContainer, $('.text')),
|
|
95
|
+
range: append(metadataContainer, $('.range'))
|
|
96
96
|
};
|
|
97
97
|
threadMetadata.separator.innerText = '\u00b7';
|
|
98
|
-
const snippetContainer =
|
|
98
|
+
const snippetContainer = append(threadContainer, $('.comment-snippet-container'));
|
|
99
99
|
const repliesMetadata = {
|
|
100
100
|
container: snippetContainer,
|
|
101
|
-
icon:
|
|
102
|
-
count:
|
|
103
|
-
lastReplyDetail:
|
|
104
|
-
separator:
|
|
101
|
+
icon: append(snippetContainer, $('.icon')),
|
|
102
|
+
count: append(snippetContainer, $('.count')),
|
|
103
|
+
lastReplyDetail: append(snippetContainer, $('.reply-detail')),
|
|
104
|
+
separator: append(snippetContainer, $('.separator')),
|
|
105
105
|
timestamp: ( new TimestampWidget(
|
|
106
106
|
this.configurationService,
|
|
107
|
-
|
|
107
|
+
append(snippetContainer, $('.timestamp-container'))
|
|
108
108
|
)),
|
|
109
109
|
};
|
|
110
110
|
repliesMetadata.separator.innerText = '\u00b7';
|
|
@@ -114,7 +114,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
114
114
|
}
|
|
115
115
|
getCountString(commentCount) {
|
|
116
116
|
if (commentCount > 1) {
|
|
117
|
-
return (
|
|
117
|
+
return ( localizeWithPath(
|
|
118
118
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
119
119
|
'commentsCount',
|
|
120
120
|
"{0} comments",
|
|
@@ -122,7 +122,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
122
122
|
));
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
|
-
return (
|
|
125
|
+
return ( localizeWithPath(
|
|
126
126
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
127
127
|
'commentCount',
|
|
128
128
|
"1 comment"
|
|
@@ -140,13 +140,13 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
140
140
|
const images = renderedComment.element.getElementsByTagName('img');
|
|
141
141
|
for (let i = 0; i < images.length; i++) {
|
|
142
142
|
const image = images[i];
|
|
143
|
-
const textDescription =
|
|
144
|
-
textDescription.textContent = image.alt ? (
|
|
143
|
+
const textDescription = $('');
|
|
144
|
+
textDescription.textContent = image.alt ? ( localizeWithPath(
|
|
145
145
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
146
146
|
'imageWithLabel',
|
|
147
147
|
"Image: {0}",
|
|
148
148
|
image.alt
|
|
149
|
-
)) : (
|
|
149
|
+
)) : ( localizeWithPath(
|
|
150
150
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
151
151
|
'image',
|
|
152
152
|
"Image"
|
|
@@ -191,7 +191,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
191
191
|
}
|
|
192
192
|
if (node.element.range) {
|
|
193
193
|
if (node.element.range.startLineNumber === node.element.range.endLineNumber) {
|
|
194
|
-
templateData.threadMetadata.range.textContent = (
|
|
194
|
+
templateData.threadMetadata.range.textContent = ( localizeWithPath(
|
|
195
195
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
196
196
|
'commentLine',
|
|
197
197
|
"[Ln {0}]",
|
|
@@ -199,7 +199,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
199
199
|
));
|
|
200
200
|
}
|
|
201
201
|
else {
|
|
202
|
-
templateData.threadMetadata.range.textContent = (
|
|
202
|
+
templateData.threadMetadata.range.textContent = ( localizeWithPath(
|
|
203
203
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
204
204
|
'commentRange',
|
|
205
205
|
"[Ln {0}-{1}]",
|
|
@@ -215,7 +215,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
215
215
|
templateData.repliesMetadata.container.style.display = '';
|
|
216
216
|
templateData.repliesMetadata.count.textContent = this.getCountString(commentCount);
|
|
217
217
|
const lastComment = node.element.replies[node.element.replies.length - 1].comment;
|
|
218
|
-
templateData.repliesMetadata.lastReplyDetail.textContent = (
|
|
218
|
+
templateData.repliesMetadata.lastReplyDetail.textContent = ( localizeWithPath(
|
|
219
219
|
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
220
220
|
'lastReplyFrom',
|
|
221
221
|
"Last reply from {0}",
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/panel.css.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { basename } from '
|
|
6
|
-
import { isDiffEditor, isCodeEditor } from '
|
|
7
|
-
import { IInstantiationService } from '
|
|
8
|
-
import { IThemeService } from '
|
|
3
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { append, $, createStyleSheet, isActiveElement } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
|
+
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
6
|
+
import { isDiffEditor, isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
7
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
9
9
|
import { CommentsModel, ResourceWithCommentThreads, CommentNode } from '../common/commentModel.js';
|
|
10
10
|
import { ICommentService } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentService';
|
|
11
11
|
import { IEditorService, SIDE_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
12
|
-
import { CommandsRegistry } from '
|
|
13
|
-
import { textLinkForeground, textLinkActiveForeground, focusBorder, textPreformatForeground } from '
|
|
12
|
+
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
13
|
+
import { textLinkForeground, textLinkActiveForeground, focusBorder, textPreformatForeground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
14
14
|
import { ResourceLabels } from 'vscode/vscode/vs/workbench/browser/labels';
|
|
15
15
|
import { COMMENTS_VIEW_ID, Filter, CommentsList, COMMENTS_VIEW_TITLE } from './commentsTreeViewer.js';
|
|
16
16
|
import { ViewAction, FilterViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
17
17
|
import { IViewsService, IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
18
|
-
import { IConfigurationService } from '
|
|
19
|
-
import { RawContextKey, ContextKeyExpr, IContextKeyService } from '
|
|
20
|
-
import { IContextMenuService } from '
|
|
21
|
-
import { IKeybindingService } from '
|
|
22
|
-
import { IOpenerService } from '
|
|
23
|
-
import { ITelemetryService } from '
|
|
24
|
-
import { IUriIdentityService } from '
|
|
25
|
-
import { registerAction2, MenuId } from '
|
|
26
|
-
import { Codicon } from '
|
|
27
|
-
import { TextModel } from '
|
|
18
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
19
|
+
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
20
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
21
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
22
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
23
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
24
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
|
|
25
|
+
import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
26
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
27
|
+
import { TextModel } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
28
28
|
import { CommentsViewFilterFocusContextKey } from './comments.js';
|
|
29
29
|
import { CommentsFilters } from './commentsViewActions.js';
|
|
30
30
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
31
|
-
import { IStorageService } from '
|
|
31
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
32
32
|
import { FilterOptions } from './commentsFilterOptions.js';
|
|
33
33
|
import { IActivityService, NumberBadge } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
34
|
-
import { CommentThreadState } from '
|
|
35
|
-
import { MutableDisposable } from '
|
|
36
|
-
import { Iterable } from '
|
|
34
|
+
import { CommentThreadState } from 'vscode/vscode/vs/editor/common/languages';
|
|
35
|
+
import { MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
36
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
37
37
|
import { CommentController } from './commentsController.js';
|
|
38
|
-
import { Range } from '
|
|
38
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
39
39
|
import { registerNavigableContainer } from 'vscode/vscode/vs/workbench/browser/actions/widgetNavigationCommands';
|
|
40
40
|
|
|
41
41
|
const CONTEXT_KEY_HAS_COMMENTS = ( new RawContextKey('commentsView.hasComments', false));
|
|
@@ -55,12 +55,12 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
55
55
|
super({
|
|
56
56
|
...options,
|
|
57
57
|
filterOptions: {
|
|
58
|
-
placeholder: (
|
|
58
|
+
placeholder: ( localizeWithPath(
|
|
59
59
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
60
60
|
'comments.filter.placeholder',
|
|
61
61
|
"Filter (e.g. text, author)"
|
|
62
62
|
)),
|
|
63
|
-
ariaLabel: (
|
|
63
|
+
ariaLabel: ( localizeWithPath(
|
|
64
64
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
65
65
|
'comments.filter.ariaLabel',
|
|
66
66
|
"Filter comments"
|
|
@@ -106,7 +106,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
this.totalUnresolved = unresolved;
|
|
109
|
-
const message = (
|
|
109
|
+
const message = ( localizeWithPath(
|
|
110
110
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
111
111
|
'totalUnresolvedComments',
|
|
112
112
|
'{0} Unresolved Comments',
|
|
@@ -162,7 +162,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
162
162
|
this.tree?.filterComments();
|
|
163
163
|
this.cachedFilterStats = undefined;
|
|
164
164
|
const { total, filtered } = this.getFilterStats();
|
|
165
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : (
|
|
165
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localizeWithPath(
|
|
166
166
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
167
167
|
'showing filtered results',
|
|
168
168
|
"Showing {0} of {1}",
|
|
@@ -174,8 +174,8 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
174
174
|
renderBody(container) {
|
|
175
175
|
super.renderBody(container);
|
|
176
176
|
container.classList.add('comments-panel');
|
|
177
|
-
const domContainer =
|
|
178
|
-
this.treeContainer =
|
|
177
|
+
const domContainer = append(container, $('.comments-panel-container'));
|
|
178
|
+
this.treeContainer = append(domContainer, $('.tree-container'));
|
|
179
179
|
this.treeContainer.classList.add('file-icon-themable-tree', 'show-file-icons');
|
|
180
180
|
this.commentsModel = ( new CommentsModel());
|
|
181
181
|
this.cachedFilterStats = undefined;
|
|
@@ -184,7 +184,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
184
184
|
this._register(this.commentService.onDidSetAllCommentThreads(this.onAllCommentsChanged, this));
|
|
185
185
|
this._register(this.commentService.onDidUpdateCommentThreads(this.onCommentsUpdated, this));
|
|
186
186
|
this._register(this.commentService.onDidDeleteDataProvider(this.onDataProviderDeleted, this));
|
|
187
|
-
const styleElement =
|
|
187
|
+
const styleElement = createStyleSheet(container);
|
|
188
188
|
this.applyStyles(styleElement);
|
|
189
189
|
this._register(this.themeService.onDidColorThemeChange(_ => this.applyStyles(styleElement)));
|
|
190
190
|
this._register(this.onDidChangeBodyVisibility(visible => {
|
|
@@ -197,7 +197,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
197
197
|
focus() {
|
|
198
198
|
super.focus();
|
|
199
199
|
const element = this.tree?.getHTMLElement();
|
|
200
|
-
if (element &&
|
|
200
|
+
if (element && isActiveElement(element)) {
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
if (!this.commentsModel.hasCommentThreads() && this.messageBoxContainer) {
|
|
@@ -263,7 +263,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
263
263
|
this.currentWidth = width;
|
|
264
264
|
}
|
|
265
265
|
createMessageBox(parent) {
|
|
266
|
-
this.messageBoxContainer =
|
|
266
|
+
this.messageBoxContainer = append(parent, $('.message-box-container'));
|
|
267
267
|
this.messageBoxContainer.setAttribute('tabIndex', '0');
|
|
268
268
|
}
|
|
269
269
|
renderMessage() {
|
|
@@ -284,14 +284,14 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
284
284
|
accessibilityProvider: {
|
|
285
285
|
getAriaLabel(element) {
|
|
286
286
|
if (element instanceof CommentsModel) {
|
|
287
|
-
return (
|
|
287
|
+
return ( localizeWithPath(
|
|
288
288
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
289
289
|
'rootCommentsLabel',
|
|
290
290
|
"Comments for current workspace"
|
|
291
291
|
));
|
|
292
292
|
}
|
|
293
293
|
if (element instanceof ResourceWithCommentThreads) {
|
|
294
|
-
return (
|
|
294
|
+
return ( localizeWithPath(
|
|
295
295
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
296
296
|
'resourceWithCommentThreadsLabel',
|
|
297
297
|
"Comments in {0}, full path {1}",
|
|
@@ -301,7 +301,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
301
301
|
}
|
|
302
302
|
if (element instanceof CommentNode) {
|
|
303
303
|
if (element.range) {
|
|
304
|
-
return (
|
|
304
|
+
return ( localizeWithPath(
|
|
305
305
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
306
306
|
'resourceWithCommentLabel',
|
|
307
307
|
"Comment from ${0} at line {1} column {2} in {3}, source: {4}",
|
|
@@ -313,7 +313,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
313
313
|
));
|
|
314
314
|
}
|
|
315
315
|
else {
|
|
316
|
-
return (
|
|
316
|
+
return ( localizeWithPath(
|
|
317
317
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
318
318
|
'resourceWithCommentLabelFile',
|
|
319
319
|
"Comment from ${0} in {1}, source: {2}",
|
|
@@ -498,7 +498,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
498
498
|
super({
|
|
499
499
|
viewId: COMMENTS_VIEW_ID,
|
|
500
500
|
id: 'comments.collapse',
|
|
501
|
-
title: (
|
|
501
|
+
title: ( localizeWithPath(
|
|
502
502
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
503
503
|
'collapseAll',
|
|
504
504
|
"Collapse All"
|
|
@@ -522,7 +522,7 @@ registerAction2(class Expand extends ViewAction {
|
|
|
522
522
|
super({
|
|
523
523
|
viewId: COMMENTS_VIEW_ID,
|
|
524
524
|
id: 'comments.expand',
|
|
525
|
-
title: (
|
|
525
|
+
title: ( localizeWithPath(
|
|
526
526
|
'vs/workbench/contrib/comments/browser/commentsView',
|
|
527
527
|
'expandAll',
|
|
528
528
|
"Expand All"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Disposable } from '
|
|
2
|
-
import { localizeWithPath } from '
|
|
3
|
-
import { RawContextKey, ContextKeyExpr } from '
|
|
4
|
-
import { Emitter } from '
|
|
1
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
5
5
|
import { CommentsViewFilterFocusContextKey } from './comments.js';
|
|
6
|
-
import { registerAction2 } from '
|
|
6
|
+
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import { ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
8
8
|
import { COMMENTS_VIEW_ID } from './commentsTreeViewer.js';
|
|
9
9
|
import { FocusedViewContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { URI } from '
|
|
2
|
-
import { groupBy } from '
|
|
3
|
-
import { localizeWithPath } from '
|
|
1
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { groupBy } from 'vscode/vscode/vs/base/common/arrays';
|
|
3
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
4
|
|
|
5
5
|
class CommentNode {
|
|
6
6
|
constructor(owner, threadId, resource, comment, range, threadState) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { isEqual } from '
|
|
5
|
-
import { ITextModelService } from '
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
5
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
6
6
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
7
7
|
|
|
8
8
|
var CustomTextEditorModel_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { IStorageService } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
4
4
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
5
5
|
import { updateContributedOpeners } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
|
|
6
6
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Event } from '
|
|
3
|
-
import
|
|
4
|
-
import { joinPath, isEqual } from '
|
|
5
|
-
import { PLAINTEXT_LANGUAGE_ID } from '
|
|
6
|
-
import { ITextModelService } from '
|
|
2
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { basename, extname } from 'vscode/vscode/vs/base/common/path';
|
|
4
|
+
import { joinPath, isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
5
|
+
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
6
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
7
7
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
8
|
-
import { IInstantiationService } from '
|
|
8
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
9
|
import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
10
10
|
import { IInteractiveDocumentService } from 'vscode/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService';
|
|
11
11
|
import { IInteractiveHistoryService } from './interactiveHistoryService.js';
|
|
@@ -57,7 +57,7 @@ let InteractiveEditorInput = class InteractiveEditorInput extends EditorInput {
|
|
|
57
57
|
this._fileDialogService = _fileDialogService;
|
|
58
58
|
this._notebookEditorInput = input;
|
|
59
59
|
this._register(this._notebookEditorInput);
|
|
60
|
-
this.name = title ?? InteractiveEditorInput_1.windowNames[resource.path] ??
|
|
60
|
+
this.name = title ?? InteractiveEditorInput_1.windowNames[resource.path] ?? basename(resource.path, extname(resource.path));
|
|
61
61
|
this._initLanguage = languageId;
|
|
62
62
|
this._resource = resource;
|
|
63
63
|
this._inputResource = inputResource;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createDecorator } from '
|
|
1
|
+
import { createDecorator } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
2
|
|
|
3
3
|
const IInteractiveHistoryService = ( createDecorator('IInteractiveHistoryService'));
|
|
4
4
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { mainWindow } from '
|
|
3
|
-
import { Schemas } from '
|
|
4
|
-
import { IConfigurationService } from '
|
|
2
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
3
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
5
5
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
6
|
-
import { IFileService } from '
|
|
7
|
-
import { IInstantiationService } from '
|
|
6
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
7
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { getLogs } from '../../../../platform/log/browser/log.js';
|
|
9
|
-
import { ILogService } from '
|
|
10
|
-
import { INotificationService } from '
|
|
11
|
-
import { IProductService } from '
|
|
9
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
11
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
12
12
|
import { IRemoteAuthorityResolverService, RemoteAuthorityResolverError } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
13
13
|
import { IRemoteExtensionsScannerService } from 'vscode/vscode/vs/platform/remote/common/remoteExtensionsScanner';
|
|
14
|
-
import { ITelemetryService } from '
|
|
15
|
-
import { IWorkspaceContextService } from '
|
|
16
|
-
import { IWorkspaceTrustManagementService } from '
|
|
14
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
15
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
16
|
+
import { IWorkspaceTrustManagementService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust';
|
|
17
17
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
18
18
|
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService, IWebExtensionsScannerService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
19
19
|
import { WebWorkerExtensionHost } from './webWorkerExtensionHost.js';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { parentOriginHash } from '
|
|
4
|
-
import { mainWindow } from '
|
|
5
|
-
import { Barrier } from '
|
|
6
|
-
import { VSBuffer } from '
|
|
7
|
-
import { canceled, onUnexpectedError } from '
|
|
8
|
-
import { Emitter, Event } from '
|
|
9
|
-
import { Disposable, toDisposable } from '
|
|
10
|
-
import { COI, FileAccess } from '
|
|
11
|
-
import
|
|
12
|
-
import { joinPath } from '
|
|
13
|
-
import { URI } from '
|
|
14
|
-
import { generateUuid } from '
|
|
15
|
-
import { ILabelService } from '
|
|
16
|
-
import { ILayoutService } from '
|
|
17
|
-
import { ILogService, ILoggerService } from '
|
|
18
|
-
import { IProductService } from '
|
|
19
|
-
import { IStorageService } from '
|
|
20
|
-
import { ITelemetryService } from '
|
|
2
|
+
import { addDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { parentOriginHash } from 'vscode/vscode/vs/base/browser/iframe';
|
|
4
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
5
|
+
import { Barrier } from 'vscode/vscode/vs/base/common/async';
|
|
6
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
7
|
+
import { canceled, onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
8
|
+
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
9
|
+
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import { COI, FileAccess } from 'vscode/vscode/vs/base/common/network';
|
|
11
|
+
import { isWeb, Language, language } from 'vscode/vscode/vs/base/common/platform';
|
|
12
|
+
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
13
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
14
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
15
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
16
|
+
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService';
|
|
17
|
+
import { ILogService, ILoggerService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
18
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
19
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
20
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
21
21
|
import { isLoggingOnly } from 'vscode/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
22
|
-
import { IUserDataProfilesService } from '
|
|
23
|
-
import { IWorkspaceContextService } from '
|
|
22
|
+
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
23
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
24
24
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
25
25
|
import { isMessageOfType, createMessageOfType, UIKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostProtocol';
|
|
26
26
|
|
|
@@ -58,7 +58,7 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
58
58
|
COI.addSearchParam(suffixSearchParams, true, true);
|
|
59
59
|
const suffix = `?${( suffixSearchParams.toString())}`;
|
|
60
60
|
const iframeModulePath = 'vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html';
|
|
61
|
-
if (
|
|
61
|
+
if (isWeb) {
|
|
62
62
|
const webEndpointUrlTemplate = this._productService.webEndpointUrlTemplate;
|
|
63
63
|
const commit = this._productService.commit;
|
|
64
64
|
const quality = this._productService.quality;
|
|
@@ -122,7 +122,7 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
122
122
|
startTimeout = setTimeout(() => {
|
|
123
123
|
console.warn(`The Web Worker Extension Host did not start in 60s, that might be a problem.`);
|
|
124
124
|
}, 60000);
|
|
125
|
-
this._register(
|
|
125
|
+
this._register(addDisposableListener(mainWindow, 'message', (event) => {
|
|
126
126
|
if (event.source !== iframe.contentWindow) {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -206,8 +206,8 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
206
206
|
const workspace = this._contextService.getWorkspace();
|
|
207
207
|
const nlsBaseUrl = this._productService.extensionsGallery?.nlsBaseUrl;
|
|
208
208
|
let nlsUrlWithDetails = undefined;
|
|
209
|
-
if (nlsBaseUrl && this._productService.commit && !
|
|
210
|
-
nlsUrlWithDetails = URI.joinPath(( URI.parse(nlsBaseUrl)), this._productService.commit, this._productService.version,
|
|
209
|
+
if (nlsBaseUrl && this._productService.commit && !Language.isDefaultVariant()) {
|
|
210
|
+
nlsUrlWithDetails = URI.joinPath(( URI.parse(nlsBaseUrl)), this._productService.commit, this._productService.version, Language.value());
|
|
211
211
|
}
|
|
212
212
|
return {
|
|
213
213
|
commit: this._productService.commit,
|
|
@@ -217,9 +217,9 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
217
217
|
environment: {
|
|
218
218
|
isExtensionDevelopmentDebug: this._environmentService.debugRenderer,
|
|
219
219
|
appName: this._productService.nameLong,
|
|
220
|
-
appHost: this._productService.embedderIdentifier ?? (
|
|
220
|
+
appHost: this._productService.embedderIdentifier ?? (isWeb ? 'web' : 'desktop'),
|
|
221
221
|
appUriScheme: this._productService.urlProtocol,
|
|
222
|
-
appLanguage:
|
|
222
|
+
appLanguage: language,
|
|
223
223
|
extensionTelemetryLogResource: this._environmentService.extHostTelemetryLogFile,
|
|
224
224
|
isExtensionTelemetryLoggingOnly: isLoggingOnly(this._productService, this._environmentService),
|
|
225
225
|
extensionDevelopmentLocationURI: this._environmentService.extensionDevelopmentLocationURI,
|
|
@@ -256,7 +256,7 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
256
256
|
connectionData: null,
|
|
257
257
|
isRemote: false
|
|
258
258
|
},
|
|
259
|
-
uiKind:
|
|
259
|
+
uiKind: isWeb ? UIKind.Web : UIKind.Desktop
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createFileSystemProviderError, FileSystemProviderErrorCode, FileType } from '
|
|
2
|
-
import { Event } from '
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { NotSupportedError } from '
|
|
1
|
+
import { createFileSystemProviderError, FileSystemProviderErrorCode, FileType } from 'vscode/vscode/vs/platform/files/common/files';
|
|
2
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { NotSupportedError } from 'vscode/vscode/vs/base/common/errors';
|
|
5
5
|
|
|
6
6
|
class FetchFileSystemProvider {
|
|
7
7
|
constructor() {
|