@@ -28,10 +28,10 @@ import { LspConnection, registerLspServerMethods } from "core-node";
2828import { userDictionaryDir , Document } from "quarto-core" ;
2929import { CompletionList } from "vscode-languageserver-types" ;
3030import { Hover , Position , TextDocuments } from "vscode-languageserver" ;
31- import { CodeViewCellContext , CodeViewCompletionContext , kCodeViewAssist , kCodeViewGetCompletions } from "editor-types" ;
31+ import { CodeViewCellContext , CodeViewCompletionContext , kCodeViewAssist , kCodeViewGetDiagnostics , kCodeViewGetCompletions , LintItem } from "editor-types" ;
3232import { yamlCompletions } from "./service/providers/completion/completion-yaml" ;
3333import { yamlHover } from "./service/providers/hover/hover-yaml" ;
34- import { EditorContext , LintItem , Quarto , codeEditorContext } from "./service/quarto" ;
34+ import { EditorContext , Quarto , codeEditorContext } from "./service/quarto" ;
3535
3636export function registerCustomMethods (
3737 quarto : Quarto ,
@@ -63,11 +63,11 @@ export function registerCustomMethods(
6363 // we have the yaml hover and completions here so provide entry points for them
6464 [ kCodeViewAssist ] : args => codeViewAssist ( quarto , args [ 0 ] ) ,
6565 [ kCodeViewGetCompletions ] : args => codeViewCompletions ( quarto , args [ 0 ] ) ,
66- 'codeViewGetDiagnostics' : args => codeViewDiagnostics ( quarto , args [ 0 ] )
66+ [ kCodeViewGetDiagnostics ] : args => codeViewDiagnostics ( quarto , args [ 0 ] )
6767 } ) ;
6868}
6969
70- async function codeViewDiagnostics ( quarto : Quarto , context : CodeViewCellContext ) {
70+ async function codeViewDiagnostics ( quarto : Quarto , context : CodeViewCellContext ) : Promise < LintItem [ ] | undefined > {
7171 const edContext = codeEditorContext (
7272 context . filepath ,
7373 context . language == "yaml" ? "yaml" : "script" ,
0 commit comments