Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 7 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "parse-tree",
"displayName": "Parse tree",
"description": "Access document syntax using tree-sitter",
"version": "0.59.0",
"version": "0.60.0",
"publisher": "pokey",
"repository": {
"type": "git",
Expand All @@ -16,7 +16,7 @@
"workspace"
],
"engines": {
"vscode": "^1.98.0"
"vscode": "^1.107.0"
},
"categories": [
"Programming Languages",
Expand Down Expand Up @@ -94,14 +94,12 @@
"fix:fmt": "oxfmt ."
},
"dependencies": {
"semver": "^7.8.5",
"web-tree-sitter": "^0.27.1"
},
"devDependencies": {
"@cursorless/tree-sitter-wasms": "^0.12.0",
"@types/node": "^24.19.2",
"@types/semver": "^7.8.0",
"@types/vscode": "1.98.0",
"@types/vscode": "1.107.0",
"oxfmt": "^0.74.0",
"oxlint-tsgolint": "^7.0.2001",
"oxlint": "^1.89.0",
Expand Down
25 changes: 0 additions & 25 deletions src/disabledLanguages.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import type {
import { window, workspace } from "vscode";
import type { Tree, Node } from "web-tree-sitter";
import { Parser, Query, Language as TreeSitterLanguage } from "web-tree-sitter";
import {
isLanguageDisabled,
throwIfLanguageIsDisabled,
} from "./disabledLanguages";
import {
DeprecatedError,
LanguageStillLoadingError,
Expand Down Expand Up @@ -63,11 +59,6 @@ export function activate(context: ExtensionContext): ReturnValue {
return true;
}

// Disabled on certain vscode versions due to memory errors in tree-sitter parsers
if (isLanguageDisabled(languageId)) {
return false;
}

const absolute = getWasmPath(context.extensionPath, language.module);
const wasm = path.relative(process.cwd(), absolute);

Expand Down Expand Up @@ -140,7 +131,6 @@ export function activate(context: ExtensionContext): ReturnValue {
// Language definition exists, but the parser is not loaded. Could be a race
// condition or a disabled language.
if (language.parser == null) {
throwIfLanguageIsDisabled(document.languageId);
throw new LanguageStillLoadingError(document.languageId);
}

Expand Down Expand Up @@ -218,7 +208,6 @@ export function activate(context: ExtensionContext): ReturnValue {
function createQuery(languageId: string, source: string): Query | undefined {
const language = languages[languageId]?.parser?.language;
if (language == null) {
throwIfLanguageIsDisabled(languageId);
return undefined;
}
return new Query(language, source);
Expand Down
Loading