Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use TextDocument from vscode-languageserver-textdocument #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

qinjialei24
Copy link

import { TextDocument } from "vscode-languageserver";

TextDocument has been deprecated in vscode-languageserver

So,We should use

import { TextDocument} from "vscode-languageserver-textdocument";

Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. You should remove the .idea/* files from this PR. I recommend setting up a global cores.excludesfile to ignore .idea in all Git repository, see: https://stackoverflow.com/a/7335487
  2. This repository uses yarn v1, so you should add the dependency via yarn add -D vscode-languageserver-textdocument and remove the package-lock.json file from this PR.
  3. You should remove the space in front of Diagnostic in the index.ts import.

@@ -1,5 +1,7 @@
import * as path from "path";
import { TextDocument, Diagnostic } from "vscode-languageserver";
import { Diagnostic } from "vscode-languageserver";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Diagnostic } from "vscode-languageserver";
import { Diagnostic } from "vscode-languageserver";

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we git ignore idea files since it's editor related

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably makes sense to use the gitignore file of another project like Vue as a template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants