From a75c3424a6003f1ccbfbf6f170009ebf7bf18e4e Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Thu, 22 Feb 2024 19:34:46 +0100 Subject: Change the template of vscode extension for `ols.json` --- editors/vscode/src/extension.ts | 3 +-- src/server/analysis.odin | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editors/vscode/src/extension.ts b/editors/vscode/src/extension.ts index e04f1e7..0dd4268 100644 --- a/editors/vscode/src/extension.ts +++ b/editors/vscode/src/extension.ts @@ -218,9 +218,7 @@ export function createOlsConfig(ctx: Ctx) { const config = { $schema: "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/ols.schema.json", - collections: [{ name: "core", path: corePath }], enable_document_symbols: true, - enable_semantic_tokens: false, enable_hover: true, enable_snippets: true }; @@ -261,6 +259,7 @@ async function getServer(config: Config, state: PersistentState): Promise= 1 { switch ident.name { case "type_of": + ast_context.call = nil return internal_resolve_type_expression(ast_context, v.args[0]) } } -- cgit v1.2.3