override computeLocalScopes() issue #869
|
This is probably user error because I'm learning both langium and typescript. I'm trying to utilize an override for In the base DefaultScopeComputation, it is defined as: DefaultScopeComputation {
async computeLocalScopes(
document: LangiumDocument,
cancelToken = CancellationToken.None): Promise<PrecomputedScopes>
{...}
}And in the domainmodel example it is: But if I use the same override for my custom language, I get This is roughly the same error as: #733 Except I have grepped through my module code and there is no Instead, if I change the override to: override async computeLocalScopes(
document: LangiumDocument,
cancelToken?: CancellationToken): Promise<PrecomputedScopes>
{...}The extension behaves correctly. |
Replies: 1 comment 2 replies
|
Hey @simpsoneric, It looks like you're importing |
Hey @simpsoneric,
It looks like you're importing
vscode-languageclientin your language server code. The package requires thevscodeimport to the available which is only the case in the extension code. Your can simply replace those imports withvscode-languageserver.