Skip to content

Commit

Permalink
Change the template of vscode extension for ols.json
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Feb 22, 2024
1 parent e7d20e6 commit a75c342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions editors/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down Expand Up @@ -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}`];
Expand Down
1 change: 1 addition & 0 deletions src/server/analysis.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
}
Expand Down

0 comments on commit a75c342

Please sign in to comment.