refactor(lib/vscode): don't provide home indicator

This commit is contained in:
Akash Satheesan 2021-05-05 23:21:11 +05:30
parent cf61451d49
commit 8cb55b5719
No known key found for this signature in database
GPG Key ID: 93CBAADFEA703F8E
1 changed files with 1 additions and 10 deletions
lib/vscode/src/vs/code/browser/workbench

View File

@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
import { IWorkbenchConstructionOptions, create, ICredentialsProvider, IURLCallbackProvider, IWorkspaceProvider, IWorkspace, IWindowIndicator, IProductQualityChangeHandler, ISettingsSyncOptions, IHomeIndicator } from 'vs/workbench/workbench.web.api'; import { IWorkbenchConstructionOptions, create, ICredentialsProvider, IURLCallbackProvider, IWorkspaceProvider, IWorkspace, IWindowIndicator, IProductQualityChangeHandler, ISettingsSyncOptions } from 'vs/workbench/workbench.web.api';
import { URI, UriComponents } from 'vs/base/common/uri'; import { URI, UriComponents } from 'vs/base/common/uri';
import { Event, Emitter } from 'vs/base/common/event'; import { Event, Emitter } from 'vs/base/common/event';
import { generateUuid } from 'vs/base/common/uuid'; import { generateUuid } from 'vs/base/common/uuid';
@ -453,14 +453,6 @@ class WindowIndicator implements IWindowIndicator {
// Workspace Provider // Workspace Provider
const workspaceProvider = new WorkspaceProvider(workspace, payload); const workspaceProvider = new WorkspaceProvider(workspace, payload);
// NOTE@coder: copied from upstream, modified to use our repo
// Home Indicator
const homeIndicator: IHomeIndicator = {
href: 'https://github.com/cdr/code-server',
icon: 'code',
title: localize('home', "Home")
};
// Window indicator (unless connected to a remote) // Window indicator (unless connected to a remote)
let windowIndicator: WindowIndicator | undefined = undefined; let windowIndicator: WindowIndicator | undefined = undefined;
if (!workspaceProvider.hasRemote()) { if (!workspaceProvider.hasRemote()) {
@ -504,7 +496,6 @@ class WindowIndicator implements IWindowIndicator {
create(document.body, { create(document.body, {
...config, ...config,
settingsSyncOptions, settingsSyncOptions,
homeIndicator,
windowIndicator, windowIndicator,
productQualityChangeHandler, productQualityChangeHandler,
workspaceProvider, workspaceProvider,