mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
CI: Fix Tooltip imports causing TS build to fail (#36649)
This commit is contained in:
parent
75dba9b79c
commit
af02a30986
@ -9,7 +9,7 @@ import { wrapRemoteObservable } from '@sourcegraph/shared/src/api/client/api/com
|
||||
import { AuthenticatedUser } from '@sourcegraph/shared/src/auth'
|
||||
import { PlatformContext } from '@sourcegraph/shared/src/platform/context'
|
||||
import { SettingsCascadeOrError } from '@sourcegraph/shared/src/settings/settings'
|
||||
import { TooltipController } from '@sourcegraph/wildcard'
|
||||
import { DeprecatedTooltipController } from '@sourcegraph/wildcard'
|
||||
|
||||
import { ExtensionCoreAPI } from '../../contract'
|
||||
|
||||
@ -62,7 +62,7 @@ export function createPlatformContext(extensionCoreAPI: Comlink.Remote<Extension
|
||||
sideloadedExtensionURL: new BehaviorSubject<string | null>(null),
|
||||
clientApplication: 'other', // TODO add 'vscode-extension' to `clientApplication`,
|
||||
getScriptURLForExtension: () => undefined,
|
||||
forceUpdateTooltip: () => TooltipController.forceUpdate(),
|
||||
forceUpdateTooltip: () => DeprecatedTooltipController.forceUpdate(),
|
||||
// TODO showInputBox
|
||||
// TODO showMessage
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ import {
|
||||
WildcardThemeContext,
|
||||
// This is the root Tooltip usage
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
Tooltip,
|
||||
DeprecatedTooltip,
|
||||
} from '@sourcegraph/wildcard'
|
||||
|
||||
import { ExtensionCoreAPI } from '../../contract'
|
||||
@ -124,7 +124,7 @@ render(
|
||||
<MemoryRouter>
|
||||
<Main />
|
||||
</MemoryRouter>
|
||||
<Tooltip key={1} className="sourcegraph-tooltip" />
|
||||
<DeprecatedTooltip key={1} className="sourcegraph-tooltip" />
|
||||
</WildcardThemeContext.Provider>
|
||||
</ShortcutProvider>,
|
||||
document.querySelector('#root')
|
||||
|
||||
@ -10,8 +10,14 @@ import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect'
|
||||
|
||||
import { wrapRemoteObservable } from '@sourcegraph/shared/src/api/client/api/common'
|
||||
import { Filter } from '@sourcegraph/shared/src/search/stream'
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { AnchorLink, setLinkComponent, useObservable, WildcardThemeContext, Tooltip } from '@sourcegraph/wildcard'
|
||||
import {
|
||||
AnchorLink,
|
||||
setLinkComponent,
|
||||
useObservable,
|
||||
WildcardThemeContext,
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
DeprecatedTooltip,
|
||||
} from '@sourcegraph/wildcard'
|
||||
|
||||
import { ExtensionCoreAPI } from '../../../contract'
|
||||
import { createEndpointsForWebToNode } from '../../comlink/webviewEndpoint'
|
||||
@ -123,7 +129,7 @@ render(
|
||||
<ShortcutProvider>
|
||||
<WildcardThemeContext.Provider value={{ isBranded: true }}>
|
||||
<Main />
|
||||
<Tooltip key={1} className="sourcegraph-tooltip" />
|
||||
<DeprecatedTooltip key={1} className="sourcegraph-tooltip" />
|
||||
</WildcardThemeContext.Provider>
|
||||
</ShortcutProvider>,
|
||||
document.querySelector('#root')
|
||||
|
||||
@ -24,5 +24,7 @@
|
||||
{ "path": "schema" },
|
||||
{ "path": "client/codeintellify" },
|
||||
{ "path": "client/client-api" },
|
||||
{ "path": "client/vscode" },
|
||||
{ "path": "client/jetbrains" },
|
||||
],
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user