diff --git a/.vscode/launch.json b/.vscode/launch.json index 63e46f36b..c67ba5dd4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,8 @@ "name": "Debug Extension (Glint + TS)", "type": "extensionHost", "request": "launch", - "preLaunchTask": "npm: build", + // this errors. Run `yarn build` before launching this task + // "preLaunchTask": "npm: build", "autoAttachChildProcesses": true, "runtimeExecutable": "${execPath}", "outFiles": [ diff --git a/package.json b/package.json index 9ad983289..f0b7e85c1 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ ], "scripts": { "lint": "yarn lint:scripts && yarn lint:formatting", + "lint:fix": "yarn lint:scripts --fix && yarn prettier --write .", "lint:scripts": "yarn eslint --max-warnings 0 --cache .", "lint:formatting": "yarn prettier --check .", "test": "yarn workspaces run test", diff --git a/packages/core/__tests__/language-server/diagnostic-augmentation.test.ts b/packages/core/__tests__/language-server/diagnostic-augmentation.test.ts index c093023c8..b5ef5963c 100644 --- a/packages/core/__tests__/language-server/diagnostic-augmentation.test.ts +++ b/packages/core/__tests__/language-server/diagnostic-augmentation.test.ts @@ -13,6 +13,103 @@ describe('Language Server: Diagnostic Augmentation', () => { await project.destroy(); }); + test('There is a content-tag parse error (for a template-only component)', async () => { + project.setGlintConfig({ environment: ['ember-loose', 'ember-template-imports'] }); + project.write({ + 'index.gts': stripIndent` + function expectsTwoArgs(a: string, b: number) { + console.log(a, b); + } + +