From 259e7a7dd41464ab5d8a6f63a2da0ee0ee53013a Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 9 Dec 2025 08:13:11 -0800 Subject: [PATCH] ignore vscode extension tmp/ --- .gitignore | 3 +- vscode-extension/tmp/test-dotget-parse.ts | 41 ----------------------- 2 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 vscode-extension/tmp/test-dotget-parse.ts diff --git a/.gitignore b/.gitignore index 916d4b5..be4e812 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json .DS_Store /tmp +vscode-extension/tmp /docs -*.vsix \ No newline at end of file +*.vsix diff --git a/vscode-extension/tmp/test-dotget-parse.ts b/vscode-extension/tmp/test-dotget-parse.ts deleted file mode 100644 index 7a654fb..0000000 --- a/vscode-extension/tmp/test-dotget-parse.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { parser } from '../../src/parser/shrimp' -import { setGlobals } from '../../src/parser/tokenizer' -import { PRELUDE_NAMES } from '../server/src/prelude-names' - -// Set globals for DotGet detection -setGlobals(PRELUDE_NAMES as unknown as string[]) - -// Test cases - does incomplete DotGet parse correctly? -const testCases = [ - 'dict.', - 'dict.g', - 'dict.get', - '$.', - '$.e', - '$.env', -] - -for (const code of testCases) { - console.log(`\nTesting: "${code}"`) - const tree = parser.parse(code) - const cursor = tree.cursor() - - // Print the parse tree - const printTree = (depth = 0) => { - const indent = ' '.repeat(depth) - console.log(`${indent}${cursor.name} [${cursor.from}-${cursor.to}]`) - - if (cursor.firstChild()) { - do { - printTree(depth + 1) - } while (cursor.nextSibling()) - cursor.parent() - } - } - - printTree() - - // Check at cursor position (end of string) - const node = tree.resolveInner(code.length, -1) - console.log(`Node at end: ${node.name} (type: ${node.type.id})`) -}