Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #415 from jsatk/fix-textdocument-deprecation
Browse files Browse the repository at this point in the history
Update `TextDocument` import statements
  • Loading branch information
ckipp01 authored Aug 6, 2021
2 parents eebc62d + 6eada1a commit ee4be23
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/tvp/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ import {
Position,
RequestType,
RPCMessageType,
TextDocument,
TextDocumentPositionParams,
} from "vscode-languageserver-protocol";
import { TextDocument } from "vscode-languageserver-textdocument";

import { TreeViewProvider } from "./provider";

export class TreeViewFeature implements DynamicFeature<void> {
Expand Down
3 changes: 2 additions & 1 deletion src/tvp/model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { MetalsTreeViewNode } from "metals-languageclient";
import { Disposable, Emitter } from "vscode-jsonrpc";
import { Position, TextDocument } from "vscode-languageserver-types";
import { Position } from "vscode-languageserver-types";
import { TextDocument } from "vscode-languageserver-textdocument";
import { TreeViewProvider } from "./provider";
import { groupBy } from "./utils";

Expand Down
3 changes: 2 additions & 1 deletion src/tvp/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
MetalsTreeViewNode,
} from "metals-languageclient";
import { Event } from "vscode-jsonrpc";
import { Position, TextDocument } from "vscode-languageserver-protocol";
import { Position } from "vscode-languageserver-protocol";
import { TextDocument } from "vscode-languageserver-textdocument";

export interface TreeViewProvider {
viewId: string;
Expand Down
3 changes: 2 additions & 1 deletion src/tvp/treeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
WorkspaceConfiguration,
} from "coc.nvim";
import * as log4js from "log4js";
import { Position, TextDocument } from "vscode-languageserver-types";
import { Position } from "vscode-languageserver-types";
import { TextDocument } from "vscode-languageserver-textdocument";
import { Node, NodeView, TreeModel, TreeModelUpdate } from "./model";
import { sequence } from "./utils";

Expand Down
3 changes: 2 additions & 1 deletion src/tvp/treeviews.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { NeovimClient as Neovim, Tabpage, Window } from "@chemzqm/neovim";
import { Disposable, workspace, WorkspaceConfiguration } from "coc.nvim";
import * as log4js from "log4js";
import { Position, TextDocument } from "vscode-languageserver-types";
import { Position } from "vscode-languageserver-types";
import { TextDocument } from "vscode-languageserver-textdocument";
import { TreeModel } from "./model";
import { TreeView, TreeViewDescription } from "./treeview";
import { sequence } from "./utils";
Expand Down

0 comments on commit ee4be23

Please sign in to comment.