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

GH-272: Updated the API to support type hierarchies. #273

Merged
merged 2 commits into from
Jan 24, 2019

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Oct 9, 2018

Added a method

  • for retrieving type hierarchy items from the server, and another
  • for resolving any unresolved type hierarchy items.

Closes: #272

Signed-off-by: Akos Kitta kittaakos@typefox.io

@spoenemann
Copy link
Contributor

@kittaakos is this PR outdated? microsoft/vscode-languageserver-node#425 has been closed and microsoft/vscode-languageserver-node#426 looks a bit different.

@kittaakos
Copy link
Contributor Author

is this PR outdated?

Yes.

Microsoft/vscode-languageserver-node#426 looks a bit different.

Where do you see the difference? I must have overlooked something.

@kittaakos kittaakos changed the title GH-272: Updated the API to support type hierarchies. [WIP] GH-272: Updated the API to support type hierarchies. Oct 29, 2018
@spoenemann
Copy link
Contributor

https://github.com/Microsoft/vscode-languageserver-node/pull/426/files#diff-0b22db02bb4adb043694d9d0a11d0aef

export interface TypeHierarchyCapabilities {

   /**
    * The text document client capabilities.
    */
   textDocument?: {

     /**
      * `true` if the language client supports super- and subtype hierarchies. Otherwise, `false` or `undefined`.
      */
     typeHierarchy?: boolean;

   }
}

vs.

https://github.com/eclipse/lsp4j/pull/273/files#diff-d10742f66bf9c4b629c5e8252db884ba

class TypeHierarchyCapabilities {

 	/**
 	 * The language client supports super- and subtype hierarchies.
 	 */
 	Boolean typeHierarchy

 	new() {
 	}

 	new(Boolean typeHierarchy) {
 		this.typeHierarchy = typeHierarchy
 	}

 }

The first is just a Boolean, the second wraps it in an object.

@kittaakos kittaakos force-pushed the GH-272 branch 3 times, most recently from 3e60964 to 27fa044 Compare January 23, 2019 10:24
@kittaakos
Copy link
Contributor Author

I have updated the PR based on this microsoft/vscode-languageserver-node#346 (comment).

@kittaakos kittaakos changed the title [WIP] GH-272: Updated the API to support type hierarchies. GH-272: Updated the API to support type hierarchies. Jan 23, 2019
Closes: eclipse-lsp4j#272

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
@kittaakos kittaakos merged commit db9f9bd into eclipse-lsp4j:master Jan 24, 2019
@kittaakos kittaakos deleted the GH-272 branch January 24, 2019 10:02
adietish pushed a commit to adietish/lsp4j that referenced this pull request Aug 20, 2024
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.

Support super- and subtype hierarchies
2 participants