Skip to content

Commit

Permalink
fix(monaco): getDiagnostics throws "TypeError: response is not a func…
Browse files Browse the repository at this point in the history
…tion"
  • Loading branch information
johnsoncodehk committed Sep 7, 2024
1 parent 2787b79 commit 44197ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/monaco/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ export class WorkerLanguageService {
getColorPresentations(requestId: number, uri: UriComponents, ...restArgs: TrimURIAndToken<LanguageService['getColorPresentations']>) {
return this.withToken(requestId, token => this.languageService.getColorPresentations(URI.from(uri), ...restArgs, token));
}
getDiagnostics(requestId: number, uri: UriComponents, ...restArgs: TrimURIAndToken<LanguageService['getDiagnostics']>) {
return this.withToken(requestId, token => this.languageService.getDiagnostics(URI.from(uri), ...restArgs, token));
getDiagnostics(requestId: number, uri: UriComponents) {
return this.withToken(requestId, token => this.languageService.getDiagnostics(URI.from(uri), undefined, token));
}
getWorkspaceDiagnostics(requestId: number) {
return this.withToken(requestId, token => this.languageService.getWorkspaceDiagnostics(token));
Expand Down

0 comments on commit 44197ff

Please sign in to comment.