Skip to content

Commit

Permalink
feat: remove expanded hover
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Oct 21, 2022
1 parent f734edd commit fdbe26c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 53 deletions.
4 changes: 0 additions & 4 deletions packages/typescript-explorer-tsserver/src/index.ts
Expand Up @@ -42,11 +42,7 @@ function init(modules: { typescript: typeof import("typescript/lib/tsserverlibra
}

if(prior) {
prior.__displayString = prior.displayParts?.map(({ text }) => text).join("")
prior.__displayType = getDisplayType(typeChecker, sourceFile, node)
prior.__displayTree = getDisplayTree(typeChecker, node)

prior.displayParts = undefined
}

return prior
Expand Down
2 changes: 0 additions & 2 deletions packages/typescript-explorer-tsserver/src/types.ts
Expand Up @@ -2,7 +2,5 @@ import { TypeInfo } from "@ts-expand-type/api"
import type * as ts from "typescript"

export type ExpandedQuickInfo = ts.QuickInfo & {
__displayString?: string,
__displayType?: string,
__displayTree?: TypeInfo,
}
11 changes: 0 additions & 11 deletions packages/typescript-explorer/package.json
Expand Up @@ -19,12 +19,6 @@
"configuration": {
"title": "TypeScript Explorer",
"properties": {
"typescriptExplorer.expandedHover.enable": {
"title": "Expanded Hover",
"type": "boolean",
"default": false,
"description": "Show entire expanded type on hovering"
},
"typescriptExplorer.typeTree.view.icons.enable": {
"title": "Show Icons",
"type": "boolean",
Expand All @@ -48,11 +42,6 @@
}
},
"commands": [
{
"title": "Toggle Expanded Type on Hover",
"command": "typescriptExplorer.expandedHover.enable.toggle",
"category": "TypeScript Explorer"
},
{
"title": "Refresh Type Tree",
"command": "typescriptExplorer.typeTree.view.refresh",
Expand Down
5 changes: 1 addition & 4 deletions packages/typescript-explorer/src/extension.ts
@@ -1,5 +1,4 @@
import * as vscode from 'vscode';
import { registerTypeInfoHoverProvider } from "./hover";
import { registerCommands } from "./commands";
import { createAndRegisterViews } from './view/views';
import { StateManager } from './state/stateManager';
Expand All @@ -8,12 +7,10 @@ import { StateManager } from './state/stateManager';

export function activate(context: vscode.ExtensionContext) {
const stateManager = new StateManager()

const viewProviders = createAndRegisterViews(context, stateManager)

registerCommands(context, viewProviders)
registerTypeInfoHoverProvider(context)


stateManager.init(
context,
viewProviders
Expand Down
32 changes: 0 additions & 32 deletions packages/typescript-explorer/src/hover.ts

This file was deleted.

0 comments on commit fdbe26c

Please sign in to comment.