@codingame/monaco-vscode-api 15.0.0 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +53 -4
- package/package.json +8 -8
- package/services.js +5 -5
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +2 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +125 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -3
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +15 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +93 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +215 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +178 -0
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/indicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +18 -18
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -22
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +232 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -8
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +54 -54
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +255 -13
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +26 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +230 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -23
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/editorOptions.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/editorOptions.js +52 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +141 -141
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.d.ts +13 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +87 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
package/missing-services.js
CHANGED
|
@@ -233,6 +233,39 @@ import { unsupported } from './tools.js';
|
|
|
233
233
|
import { ITreeSitterImporter } from './vscode/src/vs/editor/common/services/treeSitterParserService.service.js';
|
|
234
234
|
import { IChatEntitlementsService } from './vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.service.js';
|
|
235
235
|
import { IPromptsService } from './vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.js';
|
|
236
|
+
import { ISuggestMemoryService } from './vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.service.js';
|
|
237
|
+
import { LanguageConfigurationService } from './vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js';
|
|
238
|
+
import { ILanguageConfigurationService } from './vscode/src/vs/editor/common/languages/languageConfigurationRegistry.service.js';
|
|
239
|
+
import { ISemanticTokensStylingService } from './vscode/src/vs/editor/common/services/semanticTokensStyling.service.js';
|
|
240
|
+
import { ILanguageFeatureDebounceService } from './vscode/src/vs/editor/common/services/languageFeatureDebounce.service.js';
|
|
241
|
+
import { ILanguageFeaturesService } from './vscode/src/vs/editor/common/services/languageFeatures.service.js';
|
|
242
|
+
import { IDiffProviderFactoryService } from './vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.service.js';
|
|
243
|
+
import { IOutlineModelService } from './vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.service.js';
|
|
244
|
+
import { IMarkerNavigationService } from './vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.js';
|
|
245
|
+
import { ICodeLensCache } from './vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.service.js';
|
|
246
|
+
import { IInlayHintsCache } from './vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.service.js';
|
|
247
|
+
import { ISymbolNavigationService } from './vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.service.js';
|
|
248
|
+
import { IEditorCancellationTokens } from './vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.service.js';
|
|
249
|
+
import { IPeekViewService } from './vscode/src/vs/editor/contrib/peekView/browser/peekView.service.js';
|
|
250
|
+
import { SemanticTokensStylingService } from './vscode/src/vs/editor/common/services/semanticTokensStylingService.js';
|
|
251
|
+
import { LanguageFeatureDebounceService } from './vscode/src/vs/editor/common/services/languageFeatureDebounce.js';
|
|
252
|
+
import { CodeEditorService } from './vscode/src/vs/workbench/services/editor/browser/codeEditorService.js';
|
|
253
|
+
import { LanguageFeaturesService } from './vscode/src/vs/editor/common/services/languageFeaturesService.js';
|
|
254
|
+
import { WorkerBasedDiffProviderFactoryService } from './vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js';
|
|
255
|
+
import { OutlineModelService } from './vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js';
|
|
256
|
+
import { SuggestMemoryService } from './vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js';
|
|
257
|
+
import { CodeLensCache } from './vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js';
|
|
258
|
+
import { PeekViewService } from './vscode/src/vs/editor/contrib/peekView/browser/peekView.js';
|
|
259
|
+
import { MarkerNavigationService } from './vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js';
|
|
260
|
+
import { InlayHintsCache } from './vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js';
|
|
261
|
+
import { IUndoRedoService } from './vscode/src/vs/platform/undoRedo/common/undoRedo.service.js';
|
|
262
|
+
import { UndoRedoService } from './vscode/src/vs/platform/undoRedo/common/undoRedoService.js';
|
|
263
|
+
import { ActionWidgetService } from './vscode/src/vs/platform/actionWidget/browser/actionWidget.js';
|
|
264
|
+
import { IActionWidgetService } from './vscode/src/vs/platform/actionWidget/browser/actionWidget.service.js';
|
|
265
|
+
import { EditorCancellationTokens } from './vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js';
|
|
266
|
+
import { SymbolNavigationService } from './vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js';
|
|
267
|
+
import { IHoverService } from './vscode/src/vs/platform/hover/browser/hover.service.js';
|
|
268
|
+
import { HoverService } from './vscode/src/vs/editor/browser/services/hoverService/hoverService.js';
|
|
236
269
|
|
|
237
270
|
function Unsupported(target, propertyKey, descriptor) {
|
|
238
271
|
function unsupported() {
|
|
@@ -245,6 +278,23 @@ function Unsupported(target, propertyKey, descriptor) {
|
|
|
245
278
|
descriptor.get = unsupported;
|
|
246
279
|
}
|
|
247
280
|
}
|
|
281
|
+
registerSingleton(ILanguageConfigurationService, LanguageConfigurationService, InstantiationType.Delayed);
|
|
282
|
+
registerSingleton(ISemanticTokensStylingService, SemanticTokensStylingService, InstantiationType.Delayed);
|
|
283
|
+
registerSingleton(ILanguageFeatureDebounceService, LanguageFeatureDebounceService, InstantiationType.Delayed);
|
|
284
|
+
registerSingleton(ILanguageFeaturesService, LanguageFeaturesService, InstantiationType.Delayed);
|
|
285
|
+
registerSingleton(ICodeEditorService, CodeEditorService, InstantiationType.Delayed);
|
|
286
|
+
registerSingleton(IDiffProviderFactoryService, WorkerBasedDiffProviderFactoryService, InstantiationType.Delayed);
|
|
287
|
+
registerSingleton(ISymbolNavigationService, SymbolNavigationService, InstantiationType.Delayed);
|
|
288
|
+
registerSingleton(IEditorCancellationTokens, EditorCancellationTokens, InstantiationType.Delayed);
|
|
289
|
+
registerSingleton(IPeekViewService, PeekViewService, InstantiationType.Delayed);
|
|
290
|
+
registerSingleton(IOutlineModelService, OutlineModelService, InstantiationType.Delayed);
|
|
291
|
+
registerSingleton(IMarkerNavigationService, MarkerNavigationService, InstantiationType.Delayed);
|
|
292
|
+
registerSingleton(ISuggestMemoryService, SuggestMemoryService, InstantiationType.Delayed);
|
|
293
|
+
registerSingleton(ICodeLensCache, CodeLensCache, InstantiationType.Delayed);
|
|
294
|
+
registerSingleton(IHoverService, HoverService, InstantiationType.Delayed);
|
|
295
|
+
registerSingleton(IInlayHintsCache, InlayHintsCache, InstantiationType.Delayed);
|
|
296
|
+
registerSingleton(IActionWidgetService, ActionWidgetService, InstantiationType.Delayed);
|
|
297
|
+
registerSingleton(IUndoRedoService, UndoRedoService, InstantiationType.Delayed);
|
|
248
298
|
registerSingleton(ILoggerService, class NullLoggerService extends AbstractLoggerService {
|
|
249
299
|
constructor() {
|
|
250
300
|
super(LogLevel.Info, URI.file('logs.log'));
|
|
@@ -1247,8 +1297,8 @@ registerSingleton(IPathService, PathService, InstantiationType.Delayed);
|
|
|
1247
1297
|
class ProductService {
|
|
1248
1298
|
constructor() {
|
|
1249
1299
|
this._serviceBrand = undefined;
|
|
1250
|
-
this.version = "1.98.
|
|
1251
|
-
this.commit = "
|
|
1300
|
+
this.version = "1.98.1";
|
|
1301
|
+
this.commit = "2fc07b811f760549dab9be9d2bedd06c51dfcb9a";
|
|
1252
1302
|
this.quality = 'oss';
|
|
1253
1303
|
this.nameShort = 'Code - OSS Dev';
|
|
1254
1304
|
this.nameLong = 'Code - OSS Dev';
|
|
@@ -9246,8 +9296,7 @@ class PromptsService {
|
|
|
9246
9296
|
getSyntaxParserFor() {
|
|
9247
9297
|
unsupported();
|
|
9248
9298
|
}
|
|
9249
|
-
dispose() {
|
|
9250
|
-
}
|
|
9299
|
+
dispose() { }
|
|
9251
9300
|
}
|
|
9252
9301
|
__decorate([
|
|
9253
9302
|
Unsupported
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "15.0.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "15.0.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "15.0.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "15.0.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "15.0.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "15.0.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "15.0.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "15.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "15.0.2",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "15.0.2",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "15.0.2",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "15.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "15.0.2",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "15.0.2",
|
|
25
25
|
"marked": "14.0.0"
|
|
26
26
|
},
|
|
27
27
|
"main": "services.js",
|
package/services.js
CHANGED
|
@@ -181,18 +181,18 @@ export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
181
181
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
182
182
|
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
183
183
|
|
|
184
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.98.
|
|
185
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.98.
|
|
184
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.98.1-f3054d0e-d620-44fc-97ab-4a97c3d7c636") {
|
|
185
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.98.1-f3054d0e-d620-44fc-97ab-4a97c3d7c636"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
186
186
|
}
|
|
187
|
-
window.monacoVscodeApiBuildId = "1.98.
|
|
187
|
+
window.monacoVscodeApiBuildId = "1.98.1-f3054d0e-d620-44fc-97ab-4a97c3d7c636";
|
|
188
188
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
189
189
|
checkServicesNotInitialized();
|
|
190
190
|
initialize$1(container, configuration, env);
|
|
191
191
|
const instantiationService = StandaloneServices.initialize({
|
|
192
192
|
[IProductService.toString()]: mixin({
|
|
193
|
-
version: "1.98.
|
|
193
|
+
version: "1.98.1",
|
|
194
194
|
quality: 'stable',
|
|
195
|
-
commit: "
|
|
195
|
+
commit: "2fc07b811f760549dab9be9d2bedd06c51dfcb9a",
|
|
196
196
|
nameShort: 'Code - OSS',
|
|
197
197
|
nameLong: 'Code - OSS',
|
|
198
198
|
applicationName: 'code-oss',
|
|
@@ -11,8 +11,8 @@ import { Point } from './point.js';
|
|
|
11
11
|
import { TransactionImpl, observableValue } from '../../base/common/observableInternal/base.js';
|
|
12
12
|
import { derivedOpts, derivedWithSetter, derived } from '../../base/common/observableInternal/derived.js';
|
|
13
13
|
import { observableFromEvent, observableSignal } from '../../base/common/observableInternal/utils.js';
|
|
14
|
-
import { observableValueOpts } from '../../base/common/observableInternal/api.js';
|
|
15
14
|
import { autorunOpts, autorun } from '../../base/common/observableInternal/autorun.js';
|
|
15
|
+
import { observableValueOpts } from '../../base/common/observableInternal/api.js';
|
|
16
16
|
|
|
17
17
|
function observableCodeEditor(editor) {
|
|
18
18
|
return ObservableCodeEditor.get(editor);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import
|
|
3
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
4
4
|
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
|
|
5
5
|
import '../../../../platform/theme/common/colorUtils.js';
|
|
6
6
|
import '../../../../platform/theme/common/colors/baseColors.js';
|
|
@@ -13,9 +13,8 @@ import '../../../../platform/theme/common/colors/minimapColors.js';
|
|
|
13
13
|
import '../../../../platform/theme/common/colors/miscColors.js';
|
|
14
14
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
15
15
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
16
|
-
import { IHoverService } from '../../../../platform/hover/browser/hover.service.js';
|
|
17
|
-
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.service.js';
|
|
18
16
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
17
|
+
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.service.js';
|
|
19
18
|
import { HoverWidget } from './hoverWidget.js';
|
|
20
19
|
import { Disposable, DisposableStore, toDisposable } from '../../../../base/common/lifecycle.js';
|
|
21
20
|
import { addDisposableListener, EventType, getActiveElement, isHTMLElement, isAncestorOfActiveElement, getWindow, isAncestor, isEditableElement } from '../../../../base/browser/dom.js';
|
|
@@ -450,7 +449,6 @@ function getHoverTargetElement(element, stopElement) {
|
|
|
450
449
|
}
|
|
451
450
|
return element;
|
|
452
451
|
}
|
|
453
|
-
registerSingleton(IHoverService, HoverService, InstantiationType.Delayed);
|
|
454
452
|
registerThemingParticipant((theme, collector) => {
|
|
455
453
|
const hoverBorder = theme.getColor(editorHoverBorder);
|
|
456
454
|
if (hoverBorder) {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
4
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
5
|
+
import { Emitter } from '../../../../base/common/event.js';
|
|
6
|
+
import { StopWatch } from '../../../../base/common/stopwatch.js';
|
|
7
|
+
import { LineRange } from '../../../common/core/lineRange.js';
|
|
8
|
+
import { DetailedLineRangeMapping, RangeMapping } from '../../../common/diff/rangeMapping.js';
|
|
9
|
+
import { IEditorWorkerService } from '../../../common/services/editorWorker.service.js';
|
|
10
|
+
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
11
|
+
|
|
12
|
+
var WorkerBasedDocumentDiffProvider_1;
|
|
13
|
+
let WorkerBasedDiffProviderFactoryService = class WorkerBasedDiffProviderFactoryService {
|
|
14
|
+
constructor(instantiationService) {
|
|
15
|
+
this.instantiationService = instantiationService;
|
|
16
|
+
}
|
|
17
|
+
createDiffProvider(options) {
|
|
18
|
+
return this.instantiationService.createInstance(WorkerBasedDocumentDiffProvider, options);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
WorkerBasedDiffProviderFactoryService = ( __decorate([
|
|
22
|
+
( __param(0, IInstantiationService))
|
|
23
|
+
], WorkerBasedDiffProviderFactoryService));
|
|
24
|
+
let WorkerBasedDocumentDiffProvider = class WorkerBasedDocumentDiffProvider {
|
|
25
|
+
static { WorkerBasedDocumentDiffProvider_1 = this; }
|
|
26
|
+
static { this.diffCache = ( new Map()); }
|
|
27
|
+
constructor(options, editorWorkerService, telemetryService) {
|
|
28
|
+
this.editorWorkerService = editorWorkerService;
|
|
29
|
+
this.telemetryService = telemetryService;
|
|
30
|
+
this.onDidChangeEventEmitter = ( new Emitter());
|
|
31
|
+
this.onDidChange = this.onDidChangeEventEmitter.event;
|
|
32
|
+
this.diffAlgorithm = 'advanced';
|
|
33
|
+
this.diffAlgorithmOnDidChangeSubscription = undefined;
|
|
34
|
+
this.setOptions(options);
|
|
35
|
+
}
|
|
36
|
+
dispose() {
|
|
37
|
+
this.diffAlgorithmOnDidChangeSubscription?.dispose();
|
|
38
|
+
}
|
|
39
|
+
async computeDiff(original, modified, options, cancellationToken) {
|
|
40
|
+
if (typeof this.diffAlgorithm !== 'string') {
|
|
41
|
+
return this.diffAlgorithm.computeDiff(original, modified, options, cancellationToken);
|
|
42
|
+
}
|
|
43
|
+
if (original.isDisposed() || modified.isDisposed()) {
|
|
44
|
+
return {
|
|
45
|
+
changes: [],
|
|
46
|
+
identical: true,
|
|
47
|
+
quitEarly: false,
|
|
48
|
+
moves: [],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (original.getLineCount() === 1 && original.getLineMaxColumn(1) === 1) {
|
|
52
|
+
if (modified.getLineCount() === 1 && modified.getLineMaxColumn(1) === 1) {
|
|
53
|
+
return {
|
|
54
|
+
changes: [],
|
|
55
|
+
identical: true,
|
|
56
|
+
quitEarly: false,
|
|
57
|
+
moves: [],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
changes: [
|
|
62
|
+
( new DetailedLineRangeMapping(( new LineRange(1, 2)), ( new LineRange(1, modified.getLineCount() + 1)), [
|
|
63
|
+
( new RangeMapping(original.getFullModelRange(), modified.getFullModelRange()))
|
|
64
|
+
]))
|
|
65
|
+
],
|
|
66
|
+
identical: false,
|
|
67
|
+
quitEarly: false,
|
|
68
|
+
moves: [],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const uriKey = JSON.stringify([( original.uri.toString()), ( modified.uri.toString())]);
|
|
72
|
+
const context = JSON.stringify([original.id, modified.id, original.getAlternativeVersionId(), modified.getAlternativeVersionId(), JSON.stringify(options)]);
|
|
73
|
+
const c = WorkerBasedDocumentDiffProvider_1.diffCache.get(uriKey);
|
|
74
|
+
if (c && c.context === context) {
|
|
75
|
+
return c.result;
|
|
76
|
+
}
|
|
77
|
+
const sw = StopWatch.create();
|
|
78
|
+
const result = await this.editorWorkerService.computeDiff(original.uri, modified.uri, options, this.diffAlgorithm);
|
|
79
|
+
const timeMs = sw.elapsed();
|
|
80
|
+
this.telemetryService.publicLog2('diffEditor.computeDiff', {
|
|
81
|
+
timeMs,
|
|
82
|
+
timedOut: result?.quitEarly ?? true,
|
|
83
|
+
detectedMoves: options.computeMoves ? (result?.moves.length ?? 0) : -1,
|
|
84
|
+
});
|
|
85
|
+
if (cancellationToken.isCancellationRequested) {
|
|
86
|
+
return {
|
|
87
|
+
changes: [],
|
|
88
|
+
identical: false,
|
|
89
|
+
quitEarly: true,
|
|
90
|
+
moves: [],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
if (!result) {
|
|
94
|
+
throw ( new Error('no diff result available'));
|
|
95
|
+
}
|
|
96
|
+
if (WorkerBasedDocumentDiffProvider_1.diffCache.size > 10) {
|
|
97
|
+
WorkerBasedDocumentDiffProvider_1.diffCache.delete(( WorkerBasedDocumentDiffProvider_1.diffCache.keys()).next().value);
|
|
98
|
+
}
|
|
99
|
+
WorkerBasedDocumentDiffProvider_1.diffCache.set(uriKey, { result, context });
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
setOptions(newOptions) {
|
|
103
|
+
let didChange = false;
|
|
104
|
+
if (newOptions.diffAlgorithm) {
|
|
105
|
+
if (this.diffAlgorithm !== newOptions.diffAlgorithm) {
|
|
106
|
+
this.diffAlgorithmOnDidChangeSubscription?.dispose();
|
|
107
|
+
this.diffAlgorithmOnDidChangeSubscription = undefined;
|
|
108
|
+
this.diffAlgorithm = newOptions.diffAlgorithm;
|
|
109
|
+
if (typeof newOptions.diffAlgorithm !== 'string') {
|
|
110
|
+
this.diffAlgorithmOnDidChangeSubscription = newOptions.diffAlgorithm.onDidChange(() => this.onDidChangeEventEmitter.fire());
|
|
111
|
+
}
|
|
112
|
+
didChange = true;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (didChange) {
|
|
116
|
+
this.onDidChangeEventEmitter.fire();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
WorkerBasedDocumentDiffProvider = WorkerBasedDocumentDiffProvider_1 = ( __decorate([
|
|
121
|
+
( __param(1, IEditorWorkerService)),
|
|
122
|
+
( __param(2, ITelemetryService))
|
|
123
|
+
], WorkerBasedDocumentDiffProvider));
|
|
124
|
+
|
|
125
|
+
export { WorkerBasedDiffProviderFactoryService, WorkerBasedDocumentDiffProvider };
|
|
@@ -12,10 +12,10 @@ import { OnEnterSupport } from './supports/onEnter.js';
|
|
|
12
12
|
import { RichEditBrackets } from './supports/richEditBrackets.js';
|
|
13
13
|
import { IConfigurationService } from '../../../platform/configuration/common/configuration.service.js';
|
|
14
14
|
import { ILanguageService } from './language.service.js';
|
|
15
|
-
import
|
|
15
|
+
import '../../../platform/instantiation/common/extensions.js';
|
|
16
16
|
import { PLAINTEXT_LANGUAGE_ID } from './modesRegistry.js';
|
|
17
17
|
import { LanguageBracketsConfiguration } from './supports/languageBracketsConfiguration.js';
|
|
18
|
-
import
|
|
18
|
+
import '../../../platform/instantiation/common/instantiation.js';
|
|
19
19
|
|
|
20
20
|
class LanguageConfigurationServiceChangeEvent {
|
|
21
21
|
constructor(languageId) {
|
|
@@ -327,6 +327,5 @@ class ResolvedLanguageConfiguration {
|
|
|
327
327
|
return comments;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
registerSingleton(ILanguageConfigurationService, LanguageConfigurationService, InstantiationType.Delayed);
|
|
331
330
|
|
|
332
331
|
export { LanguageConfigurationChangeEvent, LanguageConfigurationRegistry, LanguageConfigurationService, LanguageConfigurationServiceChangeEvent, ResolvedLanguageConfiguration, getIndentationAtPosition };
|
|
@@ -4,10 +4,10 @@ import { doHash } from '../../../base/common/hash.js';
|
|
|
4
4
|
import { LRUCache } from '../../../base/common/map.js';
|
|
5
5
|
import { clamp, SlidingWindowAverage, MovingAverage } from '../../../base/common/numbers.js';
|
|
6
6
|
import { IEnvironmentService } from '../../../platform/environment/common/environment.service.js';
|
|
7
|
-
import
|
|
7
|
+
import '../../../platform/instantiation/common/extensions.js';
|
|
8
8
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
9
9
|
import { matchesScheme } from '../../../base/common/network.js';
|
|
10
|
-
import
|
|
10
|
+
import '../../../platform/instantiation/common/instantiation.js';
|
|
11
11
|
|
|
12
12
|
var IdentityHash;
|
|
13
13
|
(function (IdentityHash) {
|
|
@@ -125,6 +125,5 @@ LanguageFeatureDebounceService = ( __decorate([
|
|
|
125
125
|
( __param(0, ILogService)),
|
|
126
126
|
( __param(1, IEnvironmentService))
|
|
127
127
|
], LanguageFeatureDebounceService));
|
|
128
|
-
registerSingleton(ILanguageFeatureDebounceService, LanguageFeatureDebounceService, InstantiationType.Delayed);
|
|
129
128
|
|
|
130
129
|
export { LanguageFeatureDebounceService };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { LanguageFeatureRegistry } from '../languageFeatureRegistry.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import '../../../platform/instantiation/common/instantiation.js';
|
|
4
|
+
import '../../../platform/instantiation/common/extensions.js';
|
|
5
5
|
|
|
6
6
|
class LanguageFeaturesService {
|
|
7
7
|
constructor() {
|
|
@@ -45,6 +45,5 @@ class LanguageFeaturesService {
|
|
|
45
45
|
return this._notebookTypeResolver?.(uri);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
registerSingleton(ILanguageFeaturesService, LanguageFeaturesService, InstantiationType.Delayed);
|
|
49
48
|
|
|
50
49
|
export { LanguageFeaturesService };
|
|
@@ -5,8 +5,8 @@ import { ILanguageService } from '../languages/language.service.js';
|
|
|
5
5
|
import { IThemeService } from '../../../platform/theme/common/themeService.service.js';
|
|
6
6
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
7
7
|
import { SemanticTokensProviderStyling } from './semanticTokensProviderStyling.js';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import '../../../platform/instantiation/common/instantiation.js';
|
|
9
|
+
import '../../../platform/instantiation/common/extensions.js';
|
|
10
10
|
|
|
11
11
|
let SemanticTokensStylingService = class SemanticTokensStylingService extends Disposable {
|
|
12
12
|
constructor(_themeService, _logService, _languageService) {
|
|
@@ -36,6 +36,5 @@ SemanticTokensStylingService = ( __decorate([
|
|
|
36
36
|
( __param(1, ILogService)),
|
|
37
37
|
( __param(2, ILanguageService))
|
|
38
38
|
], SemanticTokensStylingService));
|
|
39
|
-
registerSingleton(ISemanticTokensStylingService, SemanticTokensStylingService, InstantiationType.Delayed);
|
|
40
39
|
|
|
41
40
|
export { SemanticTokensStylingService };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ITextModel } from "../../../common/model.js";
|
|
2
|
+
import { CodeLensModel } from "./codelens.js";
|
|
3
|
+
import { IStorageService } from "../../../../platform/storage/common/storage.service.js";
|
|
4
|
+
import { ICodeLensCache } from "./codeLensCache.service.js";
|
|
5
|
+
export declare class CodeLensCache implements ICodeLensCache {
|
|
6
|
+
readonly _serviceBrand: undefined;
|
|
7
|
+
private readonly _fakeProvider;
|
|
8
|
+
private readonly _cache;
|
|
9
|
+
constructor(storageService: IStorageService);
|
|
10
|
+
put(model: ITextModel, data: CodeLensModel): void;
|
|
11
|
+
get(model: ITextModel): CodeLensModel | undefined;
|
|
12
|
+
delete(model: ITextModel): void;
|
|
13
|
+
private _serialize;
|
|
14
|
+
private _deserialize;
|
|
15
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { Event } from '../../../../base/common/event.js';
|
|
4
|
+
import { LRUCache } from '../../../../base/common/map.js';
|
|
5
|
+
import { Range } from '../../../common/core/range.js';
|
|
6
|
+
import { CodeLensModel } from './codelens.js';
|
|
7
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
8
|
+
import { StorageScope, WillSaveStateReason, StorageTarget } from '../../../../platform/storage/common/storage.js';
|
|
9
|
+
import { IStorageService } from '../../../../platform/storage/common/storage.service.js';
|
|
10
|
+
import { mainWindow } from '../../../../base/browser/window.js';
|
|
11
|
+
import { runWhenWindowIdle } from '../../../../base/browser/dom.js';
|
|
12
|
+
import '../../../../platform/instantiation/common/instantiation.js';
|
|
13
|
+
|
|
14
|
+
class CacheItem {
|
|
15
|
+
constructor(lineCount, data) {
|
|
16
|
+
this.lineCount = lineCount;
|
|
17
|
+
this.data = data;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
let CodeLensCache = class CodeLensCache {
|
|
21
|
+
constructor(storageService) {
|
|
22
|
+
this._fakeProvider = new class {
|
|
23
|
+
provideCodeLenses() {
|
|
24
|
+
throw ( new Error('not supported'));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
this._cache = ( new LRUCache(20, 0.75));
|
|
28
|
+
const oldkey = 'codelens/cache';
|
|
29
|
+
runWhenWindowIdle(mainWindow, () => storageService.remove(oldkey, StorageScope.WORKSPACE));
|
|
30
|
+
const key = 'codelens/cache2';
|
|
31
|
+
const raw = storageService.get(key, StorageScope.WORKSPACE, '{}');
|
|
32
|
+
this._deserialize(raw);
|
|
33
|
+
const onWillSaveStateBecauseOfShutdown = Event.filter(storageService.onWillSaveState, e => e.reason === WillSaveStateReason.SHUTDOWN);
|
|
34
|
+
Event.once(onWillSaveStateBecauseOfShutdown)(e => {
|
|
35
|
+
storageService.store(key, this._serialize(), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
put(model, data) {
|
|
39
|
+
const copyItems = ( data.lenses.map((item) => {
|
|
40
|
+
return {
|
|
41
|
+
range: item.symbol.range,
|
|
42
|
+
command: item.symbol.command && { id: '', title: item.symbol.command?.title },
|
|
43
|
+
};
|
|
44
|
+
}));
|
|
45
|
+
const copyModel = ( new CodeLensModel());
|
|
46
|
+
copyModel.add({ lenses: copyItems }, this._fakeProvider);
|
|
47
|
+
const item = ( new CacheItem(model.getLineCount(), copyModel));
|
|
48
|
+
this._cache.set(( model.uri.toString()), item);
|
|
49
|
+
}
|
|
50
|
+
get(model) {
|
|
51
|
+
const item = this._cache.get(( model.uri.toString()));
|
|
52
|
+
return item && item.lineCount === model.getLineCount() ? item.data : undefined;
|
|
53
|
+
}
|
|
54
|
+
delete(model) {
|
|
55
|
+
this._cache.delete(( model.uri.toString()));
|
|
56
|
+
}
|
|
57
|
+
_serialize() {
|
|
58
|
+
const data = Object.create(null);
|
|
59
|
+
for (const [key, value] of this._cache) {
|
|
60
|
+
const lines = ( new Set());
|
|
61
|
+
for (const d of value.data.lenses) {
|
|
62
|
+
lines.add(d.symbol.range.startLineNumber);
|
|
63
|
+
}
|
|
64
|
+
data[key] = {
|
|
65
|
+
lineCount: value.lineCount,
|
|
66
|
+
lines: [...( lines.values())]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return JSON.stringify(data);
|
|
70
|
+
}
|
|
71
|
+
_deserialize(raw) {
|
|
72
|
+
try {
|
|
73
|
+
const data = JSON.parse(raw);
|
|
74
|
+
for (const key in data) {
|
|
75
|
+
const element = data[key];
|
|
76
|
+
const lenses = [];
|
|
77
|
+
for (const line of element.lines) {
|
|
78
|
+
lenses.push({ range: ( new Range(line, 1, line, 11)) });
|
|
79
|
+
}
|
|
80
|
+
const model = ( new CodeLensModel());
|
|
81
|
+
model.add({ lenses }, this._fakeProvider);
|
|
82
|
+
this._cache.set(key, ( new CacheItem(element.lineCount, model)));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
CodeLensCache = ( __decorate([
|
|
90
|
+
( __param(0, IStorageService))
|
|
91
|
+
], CodeLensCache));
|
|
92
|
+
|
|
93
|
+
export { CodeLensCache };
|
|
@@ -9,11 +9,11 @@ import { commonPrefixLength } from '../../../../base/common/strings.js';
|
|
|
9
9
|
import { Position } from '../../../common/core/position.js';
|
|
10
10
|
import { Range } from '../../../common/core/range.js';
|
|
11
11
|
import { ILanguageFeatureDebounceService } from '../../../common/services/languageFeatureDebounce.service.js';
|
|
12
|
-
import
|
|
12
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
13
13
|
import { IModelService } from '../../../common/services/model.service.js';
|
|
14
14
|
import { DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
15
15
|
import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.service.js';
|
|
16
|
-
import
|
|
16
|
+
import '../../../../platform/instantiation/common/instantiation.js';
|
|
17
17
|
|
|
18
18
|
class TreeElement {
|
|
19
19
|
remove() {
|
|
@@ -372,6 +372,5 @@ OutlineModelService = ( __decorate([
|
|
|
372
372
|
( __param(1, ILanguageFeatureDebounceService)),
|
|
373
373
|
( __param(2, IModelService))
|
|
374
374
|
], OutlineModelService));
|
|
375
|
-
registerSingleton(IOutlineModelService, OutlineModelService, InstantiationType.Delayed);
|
|
376
375
|
|
|
377
376
|
export { OutlineElement, OutlineGroup, OutlineModel, OutlineModelService, TreeElement };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { ICodeEditor } from "../../../browser/editorBrowser.js";
|
|
2
2
|
import { CancellationTokenSource, CancellationToken } from "../../../../base/common/cancellation.js";
|
|
3
|
+
import { IEditorCancellationTokens } from "./keybindingCancellation.service.js";
|
|
4
|
+
export declare class EditorCancellationTokens implements IEditorCancellationTokens {
|
|
5
|
+
readonly _serviceBrand: undefined;
|
|
6
|
+
private readonly _tokens;
|
|
7
|
+
add(editor: ICodeEditor, cts: CancellationTokenSource): () => void;
|
|
8
|
+
cancel(editor: ICodeEditor): void;
|
|
9
|
+
}
|
|
3
10
|
export declare class EditorKeybindingCancellationTokenSource extends CancellationTokenSource {
|
|
4
11
|
readonly editor: ICodeEditor;
|
|
5
12
|
private readonly _unregister;
|
|
@@ -6,7 +6,7 @@ import { IContextKeyService } from '../../../../platform/contextkey/common/conte
|
|
|
6
6
|
import { KeybindingWeight } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
7
7
|
import { CancellationTokenSource } from '../../../../base/common/cancellation.js';
|
|
8
8
|
import { LinkedList } from '../../../../base/common/linkedList.js';
|
|
9
|
-
import
|
|
9
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
10
10
|
import { localize } from '../../../../nls.js';
|
|
11
11
|
import { IEditorCancellationTokens } from './keybindingCancellation.service.js';
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ const ctxCancellableOperation = ( new RawContextKey('cancellableOperation', fals
|
|
|
14
14
|
972,
|
|
15
15
|
'Whether the editor runs a cancellable operation, e.g. like \'Peek References\''
|
|
16
16
|
))));
|
|
17
|
-
|
|
17
|
+
class EditorCancellationTokens {
|
|
18
18
|
constructor() {
|
|
19
19
|
this._tokens = ( new WeakMap());
|
|
20
20
|
}
|
|
@@ -50,7 +50,7 @@ registerSingleton(IEditorCancellationTokens, class {
|
|
|
50
50
|
data.key.set(!data.tokens.isEmpty());
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
class EditorKeybindingCancellationTokenSource extends CancellationTokenSource {
|
|
55
55
|
constructor(editor, parent) {
|
|
56
56
|
super(parent);
|
|
@@ -78,4 +78,4 @@ registerEditorCommand(new (class extends EditorCommand {
|
|
|
78
78
|
}
|
|
79
79
|
}));
|
|
80
80
|
|
|
81
|
-
export { EditorKeybindingCancellationTokenSource };
|
|
81
|
+
export { EditorCancellationTokens, EditorKeybindingCancellationTokenSource };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Event } from "../../../../base/common/event.js";
|
|
2
|
+
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
|
+
import { URI } from "../../../../base/common/uri.js";
|
|
4
|
+
import { Position } from "../../../common/core/position.js";
|
|
5
|
+
import { ITextModel } from "../../../common/model.js";
|
|
6
|
+
import { IMarker } from "../../../../platform/markers/common/markers.js";
|
|
7
|
+
import { IMarkerService } from "../../../../platform/markers/common/markers.service.js";
|
|
8
|
+
import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js";
|
|
9
|
+
import { IMarkerNavigationService } from "./markerNavigationService.service.js";
|
|
10
|
+
export declare class MarkerCoordinate {
|
|
11
|
+
readonly marker: IMarker;
|
|
12
|
+
readonly index: number;
|
|
13
|
+
readonly total: number;
|
|
14
|
+
constructor(marker: IMarker, index: number, total: number);
|
|
15
|
+
}
|
|
16
|
+
export declare class MarkerList {
|
|
17
|
+
private readonly _markerService;
|
|
18
|
+
private readonly _configService;
|
|
19
|
+
private readonly _onDidChange;
|
|
20
|
+
readonly onDidChange: Event<void>;
|
|
21
|
+
private readonly _resourceFilter?;
|
|
22
|
+
private readonly _dispoables;
|
|
23
|
+
private _markers;
|
|
24
|
+
private _nextIdx;
|
|
25
|
+
constructor(resourceFilter: URI | ((uri: URI) => boolean) | undefined, _markerService: IMarkerService, _configService: IConfigurationService);
|
|
26
|
+
dispose(): void;
|
|
27
|
+
matches(uri: URI | undefined): boolean;
|
|
28
|
+
get selected(): MarkerCoordinate | undefined;
|
|
29
|
+
private _initIdx;
|
|
30
|
+
resetIndex(): void;
|
|
31
|
+
move(fwd: boolean, model: ITextModel, position: Position): boolean;
|
|
32
|
+
find(uri: URI, position: Position): MarkerCoordinate | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface IMarkerListProvider {
|
|
35
|
+
getMarkerList(resource: URI | undefined): MarkerList | undefined;
|
|
36
|
+
}
|
|
37
|
+
export declare class MarkerNavigationService implements IMarkerNavigationService, IMarkerListProvider {
|
|
38
|
+
private readonly _markerService;
|
|
39
|
+
private readonly _configService;
|
|
40
|
+
readonly _serviceBrand: undefined;
|
|
41
|
+
private readonly _provider;
|
|
42
|
+
constructor(_markerService: IMarkerService, _configService: IConfigurationService);
|
|
43
|
+
registerProvider(provider: IMarkerListProvider): IDisposable;
|
|
44
|
+
getMarkerList(resource: URI | undefined): MarkerList;
|
|
45
|
+
}
|