Skip to content

Commit

Permalink
fix: add missing services
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jun 5, 2023
1 parent 3e6c5ec commit 0302713
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions src/vscode-services/missing-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ import { TreeViewsDnDService } from 'vs/editor/common/services/treeViewsDnd'
import { ITreeViewsDnDService } from 'vs/editor/common/services/treeViewsDndService'
import { TreeviewsService } from 'vs/workbench/services/views/common/treeViewsService'
import { ITreeViewsService } from 'vs/workbench/services/views/browser/treeViewsService'
import { IBreadcrumbsService } from 'vs/workbench/browser/parts/editor/breadcrumbs'
import { ISemanticSimilarityService } from 'vs/workbench/services/semanticSimilarity/common/semanticSimilarityService'
import { IInteractiveSessionService } from 'vs/workbench/contrib/interactiveSession/common/interactiveSessionService'
import { IOutlineService } from 'vs/workbench/services/outline/browser/outline'
import { IUpdateService, State } from 'vs/platform/update/common/update'
import { IStatusbarService } from 'vs/workbench/services/statusbar/browser/statusbar'
import { IExtensionGalleryService } from 'vs/platform/extensionManagement/common/extensionManagement'
import { unsupported } from '../tools'

class NullLoggerService extends AbstractLoggerService {
Expand Down Expand Up @@ -1051,3 +1058,85 @@ registerSingleton(ILanguagePackService, class LanguagePackService implements ILa

registerSingleton(ITreeViewsDnDService, TreeViewsDnDService, InstantiationType.Delayed)
registerSingleton(ITreeViewsService, TreeviewsService, InstantiationType.Delayed)

registerSingleton(IBreadcrumbsService, class BreadcrumbsService implements IBreadcrumbsService {
_serviceBrand: undefined
register = unsupported
getWidget = () => undefined
}, InstantiationType.Eager)

registerSingleton(ISemanticSimilarityService, class SemanticSimilarityService implements ISemanticSimilarityService {
_serviceBrand: undefined
isEnabled = () => false
getSimilarityScore = unsupported
registerSemanticSimilarityProvider = unsupported
}, InstantiationType.Delayed)

registerSingleton(IInteractiveSessionService, class InteractiveSessionService implements IInteractiveSessionService {
_serviceBrand: undefined
registerProvider = unsupported
getProviderInfos = unsupported
startSession = unsupported
retrieveSession = unsupported
sendRequest = unsupported
cancelCurrentRequestForSession = unsupported
getSlashCommands = unsupported
clearSession = unsupported
addInteractiveRequest = unsupported
addCompleteRequest = unsupported
sendInteractiveRequestToProvider = unsupported
getHistory = unsupported
onDidPerformUserAction = Event.None
notifyUserAction = unsupported
}, InstantiationType.Delayed)

registerSingleton(IOutlineService, class OutlineService implements IOutlineService {
_serviceBrand: undefined
onDidChange = Event.None
canCreateOutline = () => false
createOutline = async () => undefined
registerOutlineCreator = unsupported
}, InstantiationType.Eager)

registerSingleton(IUpdateService, class UpdateService implements IUpdateService {
_serviceBrand: undefined
onStateChange = Event.None
state = State.Uninitialized
checkForUpdates = unsupported
downloadUpdate = unsupported
applyUpdate = unsupported
quitAndInstall = unsupported
isLatestVersion = unsupported
_applySpecificUpdate = unsupported
}, InstantiationType.Eager)

registerSingleton(IStatusbarService, class StatusbarService implements IStatusbarService {
_serviceBrand: undefined
onDidChangeEntryVisibility = Event.None
addEntry = unsupported
isEntryVisible = unsupported
updateEntryVisibility = unsupported
focus = unsupported
focusNextEntry = unsupported
focusPreviousEntry = unsupported
isEntryFocused = unsupported
overrideStyle = unsupported
}, InstantiationType.Eager)

registerSingleton(IExtensionGalleryService, class ExtensionGalleryService implements IExtensionGalleryService {
_serviceBrand: undefined
isEnabled = () => false
query = unsupported
getExtensions = unsupported
isExtensionCompatible = unsupported
getCompatibleExtension = unsupported
getAllCompatibleVersions = unsupported
download = unsupported
downloadSignatureArchive = unsupported
reportStatistic = unsupported
getReadme = unsupported
getManifest = unsupported
getChangelog = unsupported
getCoreTranslation = unsupported
getExtensionsControlManifest = unsupported
}, InstantiationType.Eager)

0 comments on commit 0302713

Please sign in to comment.