diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-02-22 19:34:46 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-02-22 19:34:46 +0100 |
| commit | a75c3424a6003f1ccbfbf6f170009ebf7bf18e4e (patch) | |
| tree | 6f1796c885eaaa538ef9f78df7ae9977a32ebd9e | |
| parent | e7d20e6a6e5e1b10e1860f508579ca2d4b9a0ab0 (diff) | |
Change the template of vscode extension for `ols.json`
| -rw-r--r-- | editors/vscode/src/extension.ts | 3 | ||||
| -rw-r--r-- | 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<string "x64 win32": "x86_64-pc-windows-msvc", "x64 linux": "x86_64-unknown-linux-gnu", "x64 darwin": "x86_64-darwin", + "arm64 darwin": "arm64-darwin" }; let platform = platforms[`${process.arch} ${process.platform}`]; diff --git a/src/server/analysis.odin b/src/server/analysis.odin index c855b22..595551b 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -949,6 +949,7 @@ internal_resolve_type_expression :: proc( if ident, ok := v.expr.derived.(^ast.Ident); ok && len(v.args) >= 1 { switch ident.name { case "type_of": + ast_context.call = nil return internal_resolve_type_expression(ast_context, v.args[0]) } } |