@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,18 +1,18 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { MainContext, ExtHostContext, CandidatePortSource } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
4
|
import { TunnelDtoConverter } from 'vscode/vscode/vs/workbench/api/common/extHostTunnelService';
|
|
5
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
6
6
|
import { IRemoteExplorerService, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_OUTPUT } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
7
7
|
import { ITunnelService, TunnelProtocol } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
8
|
-
import { Disposable } from '
|
|
9
|
-
import { INotificationService, Severity } from '
|
|
10
|
-
import { IConfigurationService } from '
|
|
11
|
-
import { ILogService } from '
|
|
8
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { INotificationService, Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
10
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
11
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
12
12
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
13
|
-
import { Registry } from '
|
|
14
|
-
import { Extensions } from '
|
|
15
|
-
import { IContextKeyService } from '
|
|
13
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
14
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
15
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
16
16
|
import { TunnelSource, TunnelCloseReason, forwardedPortsViewEnabled, makeAddress } from 'vscode/vscode/vs/workbench/services/remote/common/tunnelModel';
|
|
17
17
|
|
|
18
18
|
let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
|
|
@@ -104,7 +104,7 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
|
|
|
104
104
|
return TunnelDtoConverter.fromServiceTunnel(tunnel);
|
|
105
105
|
}
|
|
106
106
|
async elevationPrompt(tunnelOptions, tunnel, source) {
|
|
107
|
-
return this.notificationService.prompt(Severity.Info, (
|
|
107
|
+
return this.notificationService.prompt(Severity.Info, ( localizeWithPath(
|
|
108
108
|
'vs/workbench/api/browser/mainThreadTunnelService',
|
|
109
109
|
'remote.tunnel.openTunnel',
|
|
110
110
|
"The extension {0} has forwarded port {1}. You'll need to run as superuser to use port {2} locally.",
|
|
@@ -112,7 +112,7 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
|
|
|
112
112
|
tunnelOptions.remoteAddress.port,
|
|
113
113
|
tunnelOptions.localAddressPort
|
|
114
114
|
)), [{
|
|
115
|
-
label: (
|
|
115
|
+
label: ( localizeWithPath(
|
|
116
116
|
'vs/workbench/api/browser/mainThreadTunnelService',
|
|
117
117
|
'remote.tunnelsView.elevationButton',
|
|
118
118
|
"Use Port {0} as Sudo...",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Action } from '
|
|
3
|
-
import { isCancellationError } from '
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { Schemas } from '
|
|
6
|
-
import { localizeWithPath } from '
|
|
7
|
-
import { INotificationService, Severity } from '
|
|
8
|
-
import { IOpenerService } from '
|
|
9
|
-
import { IStorageService } from '
|
|
2
|
+
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
3
|
+
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
6
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
7
|
+
import { INotificationService, Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
8
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
9
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
10
10
|
import { MainContext, ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
11
11
|
import { defaultExternalUriOpenerId } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
|
|
12
12
|
import { ContributedExternalUriOpenersStore } from '../../contrib/externalUriOpener/common/contributedOpeners.js';
|
|
@@ -3,7 +3,7 @@ import { MainContext, ExtHostContext } from 'vscode/vscode/vs/workbench/api/comm
|
|
|
3
3
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
4
4
|
import { IURLService } from 'vscode/vscode/vs/platform/url/common/url';
|
|
5
5
|
import { IExtensionUrlHandler } from 'vscode/vscode/vs/workbench/services/extensions/browser/extensionUrlHandler';
|
|
6
|
-
import { ExtensionIdentifier } from '
|
|
6
|
+
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
7
7
|
|
|
8
8
|
class ExtensionUrlHandler {
|
|
9
9
|
constructor(proxy, handle, extensionId, extensionDisplayName) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { IInstantiationService } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
4
|
import { MainThreadCustomEditors } from './mainThreadCustomEditors.js';
|
|
5
5
|
import { MainThreadWebviewPanels } from './mainThreadWebviewPanels.js';
|
|
6
6
|
import { MainThreadWebviews } from './mainThreadWebviews.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { onUnexpectedError } from '
|
|
3
|
-
import { Event } from '
|
|
4
|
-
import { Disposable, DisposableMap } from '
|
|
5
|
-
import { URI } from '
|
|
6
|
-
import { generateUuid } from '
|
|
7
|
-
import { IConfigurationService } from '
|
|
8
|
-
import { IStorageService } from '
|
|
9
|
-
import { ITelemetryService } from '
|
|
2
|
+
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
7
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
9
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
10
10
|
import { reviveWebviewExtension, reviveWebviewContentOptions } from './mainThreadWebviews.js';
|
|
11
11
|
import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
12
12
|
import { DiffEditorInput } from 'vscode/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { onUnexpectedError } from '
|
|
3
|
-
import { Disposable, DisposableMap } from '
|
|
4
|
-
import { generateUuid } from '
|
|
2
|
+
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
+
import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
5
5
|
import { reviveWebviewExtension } from './mainThreadWebviews.js';
|
|
6
6
|
import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
7
|
import { IWebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService';
|
|
8
|
-
import { ITelemetryService } from '
|
|
8
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
9
9
|
|
|
10
10
|
let MainThreadWebviewsViews = class MainThreadWebviewsViews extends Disposable {
|
|
11
11
|
constructor(context, mainThreadWebviews, _telemetryService, _webviewViewService) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable, DisposableStore } from '
|
|
3
|
-
import { Schemas } from '
|
|
4
|
-
import { isWeb } from '
|
|
5
|
-
import { escape } from '
|
|
6
|
-
import { URI } from '
|
|
7
|
-
import { localizeWithPath } from '
|
|
8
|
-
import { IOpenerService } from '
|
|
9
|
-
import { IProductService } from '
|
|
2
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
|
+
import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
5
|
+
import { escape } from 'vscode/vscode/vs/base/common/strings';
|
|
6
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
7
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
8
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
9
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
10
10
|
import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
11
11
|
import { deserializeWebviewMessage, serializeWebviewMessage } from 'vscode/vscode/vs/workbench/api/common/extHostWebviewMessaging';
|
|
12
12
|
import { SerializableObjectWithBuffers } from 'vscode/vscode/vs/workbench/services/extensions/common/proxyIdentifier';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Event } from '
|
|
3
|
-
import { DisposableStore } from '
|
|
4
|
-
import { URI } from '
|
|
5
|
-
import { IOpenerService } from '
|
|
2
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
6
6
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
7
7
|
import { MainContext, ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
8
8
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { isCancellationError } from '
|
|
3
|
-
import { DisposableStore } from '
|
|
4
|
-
import { isNative } from '
|
|
5
|
-
import { URI } from '
|
|
6
|
-
import { localizeWithPath } from '
|
|
7
|
-
import { IEnvironmentService } from '
|
|
8
|
-
import { IFileService } from '
|
|
9
|
-
import { IInstantiationService } from '
|
|
10
|
-
import { ILabelService } from '
|
|
11
|
-
import { INotificationService } from '
|
|
2
|
+
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { isNative } from 'vscode/vscode/vs/base/common/platform';
|
|
5
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
7
|
+
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment';
|
|
8
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
9
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
11
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
12
12
|
import { IRequestService } from 'vscode/vscode/vs/platform/request/common/request';
|
|
13
|
-
import { IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from '
|
|
14
|
-
import { IWorkspaceContextService, isUntitledWorkspace } from '
|
|
13
|
+
import { IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust';
|
|
14
|
+
import { IWorkspaceContextService, isUntitledWorkspace } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
15
15
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
16
16
|
import { checkGlobFileExists } from 'vscode/vscode/vs/workbench/services/extensions/common/workspaceContains';
|
|
17
17
|
import { QueryBuilder } from 'vscode/vscode/vs/workbench/services/search/common/queryBuilder';
|
|
@@ -21,7 +21,7 @@ import { IWorkspaceEditingService } from 'vscode/vscode/vs/workbench/services/wo
|
|
|
21
21
|
import { MainContext, ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
22
22
|
import { IEditSessionIdentityService } from 'vscode/vscode/vs/platform/workspace/common/editSessions';
|
|
23
23
|
import { SideBySideEditor, EditorResourceAccessor } from 'vscode/vscode/vs/workbench/common/editor';
|
|
24
|
-
import { firstOrDefault, coalesce } from '
|
|
24
|
+
import { firstOrDefault, coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
25
25
|
import { ICanonicalUriService } from 'vscode/vscode/vs/platform/workspace/common/canonicalUri';
|
|
26
26
|
|
|
27
27
|
let MainThreadWorkspace = class MainThreadWorkspace {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { coalesce } from '
|
|
2
|
-
import { VSBuffer } from '
|
|
1
|
+
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
2
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
3
3
|
|
|
4
4
|
class DataTransferFileCache {
|
|
5
5
|
constructor() {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Color } from '
|
|
3
|
-
import { OverviewRulerLane } from '
|
|
4
|
-
import { ModelDecorationOptions } from '
|
|
5
|
-
import { registerColor, opaque, listInactiveSelectionBackground, editorBackground, darken, editorForeground } from '
|
|
6
|
-
import { themeColorFromId } from '
|
|
7
|
-
import { CommentThreadState } from '
|
|
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
8
|
|
|
9
|
-
const overviewRulerCommentingRangeForeground = registerColor('editorGutter.commentRangeForeground', { dark: opaque(listInactiveSelectionBackground, editorBackground), light: ( darken(opaque(listInactiveSelectionBackground, editorBackground), .05)), hcDark: Color.white, hcLight: Color.black }, (
|
|
9
|
+
const overviewRulerCommentingRangeForeground = registerColor('editorGutter.commentRangeForeground', { dark: opaque(listInactiveSelectionBackground, editorBackground), light: ( darken(opaque(listInactiveSelectionBackground, editorBackground), .05)), hcDark: Color.white, hcLight: Color.black }, ( localizeWithPath(
|
|
10
10
|
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
11
11
|
'editorGutterCommentRangeForeground',
|
|
12
12
|
'Editor gutter decoration color for commenting ranges. This color should be opaque.'
|
|
13
13
|
)));
|
|
14
|
-
const overviewRulerCommentForeground = registerColor('editorOverviewRuler.commentForeground', { dark: overviewRulerCommentingRangeForeground, light: overviewRulerCommentingRangeForeground, hcDark: overviewRulerCommentingRangeForeground, hcLight: overviewRulerCommentingRangeForeground }, (
|
|
14
|
+
const overviewRulerCommentForeground = registerColor('editorOverviewRuler.commentForeground', { dark: overviewRulerCommentingRangeForeground, light: overviewRulerCommentingRangeForeground, hcDark: overviewRulerCommentingRangeForeground, hcLight: overviewRulerCommentingRangeForeground }, ( localizeWithPath(
|
|
15
15
|
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
16
16
|
'editorOverviewRuler.commentForeground',
|
|
17
17
|
'Editor overview ruler decoration color for resolved comments. This color should be opaque.'
|
|
18
18
|
)));
|
|
19
|
-
const overviewRulerCommentUnresolvedForeground = registerColor('editorOverviewRuler.commentUnresolvedForeground', { dark: overviewRulerCommentForeground, light: overviewRulerCommentForeground, hcDark: overviewRulerCommentForeground, hcLight: overviewRulerCommentForeground }, (
|
|
19
|
+
const overviewRulerCommentUnresolvedForeground = registerColor('editorOverviewRuler.commentUnresolvedForeground', { dark: overviewRulerCommentForeground, light: overviewRulerCommentForeground, hcDark: overviewRulerCommentForeground, hcLight: overviewRulerCommentForeground }, ( localizeWithPath(
|
|
20
20
|
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
21
21
|
'editorOverviewRuler.commentUnresolvedForeground',
|
|
22
22
|
'Editor overview ruler decoration color for unresolved comments. This color should be opaque.'
|
|
23
23
|
)));
|
|
24
|
-
const editorGutterCommentGlyphForeground = registerColor('editorGutter.commentGlyphForeground', { dark: editorForeground, light: editorForeground, hcDark: Color.black, hcLight: Color.white }, (
|
|
24
|
+
const editorGutterCommentGlyphForeground = registerColor('editorGutter.commentGlyphForeground', { dark: editorForeground, light: editorForeground, hcDark: Color.black, hcLight: Color.white }, ( localizeWithPath(
|
|
25
25
|
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
26
26
|
'editorGutterCommentGlyphForeground',
|
|
27
27
|
'Editor gutter decoration color for commenting glyphs.'
|
|
28
28
|
)));
|
|
29
|
-
registerColor('editorGutter.commentUnresolvedGlyphForeground', { dark: editorGutterCommentGlyphForeground, light: editorGutterCommentGlyphForeground, hcDark: editorGutterCommentGlyphForeground, hcLight: editorGutterCommentGlyphForeground }, (
|
|
29
|
+
registerColor('editorGutter.commentUnresolvedGlyphForeground', { dark: editorGutterCommentGlyphForeground, light: editorGutterCommentGlyphForeground, hcDark: editorGutterCommentGlyphForeground, hcLight: editorGutterCommentGlyphForeground }, ( localizeWithPath(
|
|
30
30
|
'vs/workbench/contrib/comments/browser/commentGlyphWidget',
|
|
31
31
|
'editorGutterCommentUnresolvedGlyphForeground',
|
|
32
32
|
'Editor gutter decoration color for commenting glyphs for unresolved comment threads.'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Disposable, dispose } from '
|
|
2
|
-
import { CommentThreadCollapsibleState } from '
|
|
3
|
-
import { ModelDecorationOptions } from '
|
|
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
4
|
|
|
5
5
|
class CommentThreadRangeDecoration {
|
|
6
6
|
get id() {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Color } from '
|
|
3
|
-
import { Emitter } from '
|
|
4
|
-
import { DisposableStore } from '
|
|
5
|
-
import { Range } from '
|
|
6
|
-
import
|
|
7
|
-
import { ZoneWidget } from '
|
|
8
|
-
import { IContextKeyService } from '
|
|
9
|
-
import { IInstantiationService } from '
|
|
10
|
-
import { IThemeService } from '
|
|
2
|
+
import { Color } from 'vscode/vscode/vs/base/common/color';
|
|
3
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
6
|
+
import { CommentThreadCollapsibleState } from 'vscode/vscode/vs/editor/common/languages';
|
|
7
|
+
import { ZoneWidget } from 'vscode/vscode/vs/editor/contrib/zoneWidget/browser/zoneWidget';
|
|
8
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
11
11
|
import { CommentGlyphWidget } from './commentGlyphWidget.js';
|
|
12
12
|
import { ICommentService } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentService';
|
|
13
|
-
import { EDITOR_FONT_DEFAULTS } from '
|
|
14
|
-
import { ServiceCollection } from '
|
|
13
|
+
import { EDITOR_FONT_DEFAULTS } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
14
|
+
import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
15
15
|
import { CommentThreadWidget } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentThreadWidget';
|
|
16
16
|
import { commentThreadStateColorVar, commentThreadStateBackgroundColorVar, getCommentThreadStateBorderColor } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentColors';
|
|
17
|
-
import { peekViewBorder } from '
|
|
18
|
-
import { IConfigurationService } from '
|
|
17
|
+
import { peekViewBorder } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
|
|
18
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
19
19
|
|
|
20
20
|
function getCommentThreadWidgetStateColor(thread, theme) {
|
|
21
21
|
return getCommentThreadStateBorderColor(thread, theme) ?? theme.getColor(peekViewBorder);
|
|
@@ -78,9 +78,9 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
78
78
|
if (controller) {
|
|
79
79
|
this._commentOptions = controller.options;
|
|
80
80
|
}
|
|
81
|
-
this._initialCollapsibleState = _pendingComment ?
|
|
81
|
+
this._initialCollapsibleState = _pendingComment ? CommentThreadCollapsibleState.Expanded : _commentThread.initialCollapsibleState;
|
|
82
82
|
_commentThread.initialCollapsibleState = this._initialCollapsibleState;
|
|
83
|
-
this._isExpanded = this._initialCollapsibleState ===
|
|
83
|
+
this._isExpanded = this._initialCollapsibleState === CommentThreadCollapsibleState.Expanded;
|
|
84
84
|
this._commentThreadDisposables = [];
|
|
85
85
|
this.create();
|
|
86
86
|
this._globalToDispose.add(this.themeService.onDidColorThemeChange(this._applyTheme, this));
|
|
@@ -195,10 +195,10 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
195
195
|
this.commentService.disposeCommentThread(this.owner, this._commentThread.threadId);
|
|
196
196
|
}
|
|
197
197
|
collapse() {
|
|
198
|
-
this._commentThread.collapsibleState =
|
|
198
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
199
199
|
}
|
|
200
200
|
expand() {
|
|
201
|
-
this._commentThread.collapsibleState =
|
|
201
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Expanded;
|
|
202
202
|
}
|
|
203
203
|
getGlyphPosition() {
|
|
204
204
|
if (this._commentGlyph) {
|
|
@@ -208,10 +208,10 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
208
208
|
}
|
|
209
209
|
toggleExpand() {
|
|
210
210
|
if (this._isExpanded) {
|
|
211
|
-
this._commentThread.collapsibleState =
|
|
211
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
212
212
|
}
|
|
213
213
|
else {
|
|
214
|
-
this._commentThread.collapsibleState =
|
|
214
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Expanded;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
async update(commentThread) {
|
|
@@ -231,10 +231,10 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
231
231
|
this._commentGlyph.setLineNumber(lineNumber);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
if ((shouldMoveWidget && this._isExpanded) || (this._commentThread.collapsibleState ===
|
|
234
|
+
if ((shouldMoveWidget && this._isExpanded) || (this._commentThread.collapsibleState === CommentThreadCollapsibleState.Expanded && !this._isExpanded)) {
|
|
235
235
|
this.show(this.arrowPosition(this._commentThread.range), 2);
|
|
236
236
|
}
|
|
237
|
-
else if (this._commentThread.collapsibleState !==
|
|
237
|
+
else if (this._commentThread.collapsibleState !== CommentThreadCollapsibleState.Expanded) {
|
|
238
238
|
this.hide();
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -253,7 +253,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
253
253
|
this._disposables.add(this._commentThreadWidget.onDidResize(dimension => {
|
|
254
254
|
this._refresh(dimension);
|
|
255
255
|
}));
|
|
256
|
-
if ((this._commentThread.collapsibleState ===
|
|
256
|
+
if ((this._commentThread.collapsibleState === CommentThreadCollapsibleState.Expanded) || (range === undefined)) {
|
|
257
257
|
this.show(this.arrowPosition(range), 2);
|
|
258
258
|
}
|
|
259
259
|
if (this._commentThread.canReply && this._commentThread.isTemplate && (!this._commentThread.comments || (this._commentThread.comments.length === 0))) {
|
|
@@ -279,18 +279,18 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
279
279
|
}
|
|
280
280
|
}));
|
|
281
281
|
this._commentThreadDisposables.push(this._commentThread.onDidChangeCollapsibleState(state => {
|
|
282
|
-
if (state ===
|
|
282
|
+
if (state === CommentThreadCollapsibleState.Expanded && !this._isExpanded) {
|
|
283
283
|
this.show(this.arrowPosition(this._commentThread.range), 2);
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
|
-
if (state ===
|
|
286
|
+
if (state === CommentThreadCollapsibleState.Collapsed && this._isExpanded) {
|
|
287
287
|
this.hide();
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
}));
|
|
291
291
|
if (this._initialCollapsibleState === undefined) {
|
|
292
292
|
const onDidChangeInitialCollapsibleState = this._commentThread.onDidChangeInitialCollapsibleState(state => {
|
|
293
|
-
this._initialCollapsibleState = this._commentThread.range ? state :
|
|
293
|
+
this._initialCollapsibleState = this._commentThread.range ? state : CommentThreadCollapsibleState.Expanded;
|
|
294
294
|
this._commentThread.collapsibleState = this._initialCollapsibleState;
|
|
295
295
|
onDidChangeInitialCollapsibleState.dispose();
|
|
296
296
|
});
|
|
@@ -311,7 +311,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
311
311
|
}
|
|
312
312
|
_refresh(dimensions) {
|
|
313
313
|
if (dimensions.height === 0 && dimensions.width === 0) {
|
|
314
|
-
this.commentThread.collapsibleState =
|
|
314
|
+
this.commentThread.collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
if (this._isExpanded) {
|
|
@@ -357,7 +357,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
357
357
|
}
|
|
358
358
|
this._isExpanded = true;
|
|
359
359
|
super.show(range ?? ( new Range(0, 0, 0, 0)), heightInLines);
|
|
360
|
-
this._commentThread.collapsibleState =
|
|
360
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Expanded;
|
|
361
361
|
this._refresh(this._commentThreadWidget.getDimensions());
|
|
362
362
|
}
|
|
363
363
|
hide() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RawContextKey } from '
|
|
1
|
+
import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
2
2
|
|
|
3
3
|
const CommentsViewFilterFocusContextKey = ( new RawContextKey('commentsFilterFocus', false));
|
|
4
4
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Action } from '
|
|
3
|
-
import { coalesce } from '
|
|
4
|
-
import { findFirstIdxMonotonousOrArrLen } from '
|
|
5
|
-
import { createCancelablePromise, Delayer } from '
|
|
6
|
-
import { onUnexpectedError } from '
|
|
7
|
-
import { DisposableStore, dispose } from '
|
|
2
|
+
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
3
|
+
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
4
|
+
import { findFirstIdxMonotonousOrArrLen } from 'vscode/vscode/vs/base/common/arraysFind';
|
|
5
|
+
import { createCancelablePromise, Delayer } from 'vscode/vscode/vs/base/common/async';
|
|
6
|
+
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
7
|
+
import { DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import 'vscode/vscode/vs/workbench/contrib/comments/browser/media/review.css';
|
|
9
|
-
import { ICodeEditorService } from '
|
|
10
|
-
import { Range } from '
|
|
11
|
-
import { EditorType } from '
|
|
12
|
-
import { ModelDecorationOptions } from '
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { IContextMenuService } from '
|
|
16
|
-
import { IInstantiationService } from '
|
|
17
|
-
import { IQuickInputService } from '
|
|
9
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
10
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
11
|
+
import { EditorType } from 'vscode/vscode/vs/editor/common/editorCommon';
|
|
12
|
+
import { ModelDecorationOptions } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
13
|
+
import { CommentThreadState } from 'vscode/vscode/vs/editor/common/languages';
|
|
14
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
15
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
16
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
18
18
|
import { CommentGlyphWidget } from './commentGlyphWidget.js';
|
|
19
19
|
import { ICommentService } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentService';
|
|
20
20
|
import { ReviewZoneWidget, parseMouseDownInfoFromEvent, isMouseUpEventDragFromMouseDown } from './commentThreadZoneWidget.js';
|
|
21
21
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
22
|
-
import { EmbeddedCodeEditorWidget } from '
|
|
22
|
+
import { EmbeddedCodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/embeddedCodeEditorWidget';
|
|
23
23
|
import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
24
24
|
import { COMMENTS_VIEW_ID } from './commentsTreeViewer.js';
|
|
25
|
-
import { IConfigurationService } from '
|
|
25
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
26
26
|
import { COMMENTS_SECTION } from 'vscode/vscode/vs/workbench/contrib/comments/common/commentsConfiguration';
|
|
27
27
|
import { COMMENTEDITOR_DECORATION_KEY } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentReply';
|
|
28
|
-
import { Emitter } from '
|
|
29
|
-
import { IContextKeyService } from '
|
|
28
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
29
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
30
30
|
import { CommentThreadRangeDecorator } from './commentThreadRangeDecorator.js';
|
|
31
|
-
import { status } from '
|
|
31
|
+
import { status } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
|
|
32
32
|
import { CommentContextKeys } from 'vscode/vscode/vs/workbench/contrib/comments/common/commentContextKeys';
|
|
33
|
-
import { IKeybindingService } from '
|
|
34
|
-
import { IAccessibilityService } from '
|
|
33
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
34
|
+
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
35
35
|
|
|
36
36
|
const ID = 'editor.contrib.review';
|
|
37
37
|
class CommentingRangeDecoration {
|
|
@@ -630,7 +630,7 @@ let CommentController = class CommentController {
|
|
|
630
630
|
}
|
|
631
631
|
expandUnresolved() {
|
|
632
632
|
for (const widget of this._commentWidgets) {
|
|
633
|
-
if (widget.commentThread.state ===
|
|
633
|
+
if (widget.commentThread.state === CommentThreadState.Unresolved) {
|
|
634
634
|
widget.expand();
|
|
635
635
|
}
|
|
636
636
|
}
|
|
@@ -714,12 +714,12 @@ let CommentController = class CommentController {
|
|
|
714
714
|
const commentRangeEnd = range?.getEndPosition().lineNumber;
|
|
715
715
|
if (commentRangeStart && commentRangeEnd) {
|
|
716
716
|
const oneLine = commentRangeStart === commentRangeEnd;
|
|
717
|
-
oneLine ? status((
|
|
717
|
+
oneLine ? status(( localizeWithPath(
|
|
718
718
|
'vs/workbench/contrib/comments/browser/commentsController',
|
|
719
719
|
'commentRange',
|
|
720
720
|
"Line {0}",
|
|
721
721
|
commentRangeStart
|
|
722
|
-
))) : status((
|
|
722
|
+
))) : status(( localizeWithPath(
|
|
723
723
|
'vs/workbench/contrib/comments/browser/commentsController',
|
|
724
724
|
'commentRangeStart',
|
|
725
725
|
"Lines {0} to {1}",
|
|
@@ -885,7 +885,7 @@ let CommentController = class CommentController {
|
|
|
885
885
|
if (verbose) {
|
|
886
886
|
const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
|
|
887
887
|
if (keybinding) {
|
|
888
|
-
status((
|
|
888
|
+
status(( localizeWithPath(
|
|
889
889
|
'vs/workbench/contrib/comments/browser/commentsController',
|
|
890
890
|
'hasCommentRangesKb',
|
|
891
891
|
"Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
|
|
@@ -893,7 +893,7 @@ let CommentController = class CommentController {
|
|
|
893
893
|
)));
|
|
894
894
|
}
|
|
895
895
|
else {
|
|
896
|
-
status((
|
|
896
|
+
status(( localizeWithPath(
|
|
897
897
|
'vs/workbench/contrib/comments/browser/commentsController',
|
|
898
898
|
'hasCommentRangesNoKb',
|
|
899
899
|
"Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
|
|
@@ -901,7 +901,7 @@ let CommentController = class CommentController {
|
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
else {
|
|
904
|
-
status((
|
|
904
|
+
status(( localizeWithPath(
|
|
905
905
|
'vs/workbench/contrib/comments/browser/commentsController',
|
|
906
906
|
'hasCommentRanges',
|
|
907
907
|
"Editor has commenting ranges."
|
|
@@ -917,7 +917,7 @@ let CommentController = class CommentController {
|
|
|
917
917
|
if (openViewState === 'file') {
|
|
918
918
|
return this.viewsService.openView(COMMENTS_VIEW_ID);
|
|
919
919
|
}
|
|
920
|
-
else if (openViewState === 'firstFile' || (openViewState === 'firstFileUnresolved' && thread.state ===
|
|
920
|
+
else if (openViewState === 'firstFile' || (openViewState === 'firstFileUnresolved' && thread.state === CommentThreadState.Unresolved)) {
|
|
921
921
|
const hasShownView = this.viewsService.getViewWithId(COMMENTS_VIEW_ID)?.hasRendered;
|
|
922
922
|
if (!hasShownView) {
|
|
923
923
|
return this.viewsService.openView(COMMENTS_VIEW_ID);
|
|
@@ -1053,7 +1053,7 @@ let CommentController = class CommentController {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
else {
|
|
1055
1055
|
const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
|
|
1056
|
-
return this.quickInputService.pick(picks, { placeHolder: (
|
|
1056
|
+
return this.quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
1057
1057
|
'vs/workbench/contrib/comments/browser/commentsController',
|
|
1058
1058
|
'pickCommentService',
|
|
1059
1059
|
"Select Comment Provider"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { matchesFuzzy2, matchesFuzzy } from '
|
|
2
|
-
import
|
|
1
|
+
import { matchesFuzzy2, matchesFuzzy } from 'vscode/vscode/vs/base/common/filters';
|
|
2
|
+
import { ltrim } from 'vscode/vscode/vs/base/common/strings';
|
|
3
3
|
|
|
4
4
|
class FilterOptions {
|
|
5
5
|
static { this._filter = matchesFuzzy2; }
|
|
@@ -12,7 +12,7 @@ class FilterOptions {
|
|
|
12
12
|
this.showResolved = showResolved;
|
|
13
13
|
this.showUnresolved = showUnresolved;
|
|
14
14
|
const negate = filter.startsWith('!');
|
|
15
|
-
this.textFilter = { text: (negate ?
|
|
15
|
+
this.textFilter = { text: (negate ? ltrim(filter, '!') : filter).trim(), negate };
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|