Skip to content

Commit

Permalink
updating language server
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanquera committed Sep 4, 2024
1 parent 80fbae5 commit 4c5eb2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/temple-language/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import LanguageServer, {
TextDocumentSyncKind
} from './language/LanguageServer';

import { ComponentException, Tokenizer } from '@ossph/temple/compiler';
import { Exception, Tokenizer } from '@ossph/temple/compiler';

// - validate example usage
async function validate(document: TextDocument) {
Expand All @@ -27,7 +27,7 @@ async function validate(document: TextDocument) {
try {
Tokenizer.tokenize(text);
} catch (e) {
const error = e as ComponentException;
const error = e as Exception;
const diagnostic: Diagnostic = {
severity: DiagnosticSeverity.Error,
message: error.message,
Expand Down

0 comments on commit 4c5eb2b

Please sign in to comment.