Skip to content

Commit 45ff1dd

Browse files
committed
Update getSupportedCodeFixes to support TS 5.0+. See microsoft/TypeScript#51769 for details.
1 parent 9da5c53 commit 45ff1dd

11 files changed

+223
-45
lines changed

.vscode/launch.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
"TSS_DEBUG": "5999"
2020
},
2121
"args": [
22-
"-u",
23-
"tdd",
22+
"${workspaceFolder}/e2e/tests/**/test.js",
23+
"--ui=bdd",
2424
"--timeout",
2525
"999999",
26-
"--colors",
27-
"${workspaceFolder}/e2e/tests/**/test.js",
28-
"-g", "aaa"
26+
"--colors"
2927
],
3028
"internalConsoleOptions": "openOnSessionStart"
3129
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2.3.2 - December 16, 2022
4+
- Update `getSupportedCodeFixes` to support TS 5.0+. See https://github.com/microsoft/TypeScript/pull/51769 for details.
5+
36
## 2.3.1 - April 19, 2022
47
- Fixing missing files in publish.
58

e2e/.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**@type {import('eslint').Linter.Config} */
2+
// eslint-disable-next-line no-undef
3+
module.exports = {
4+
root: true,
5+
parserOptions: {
6+
ecmaVersion: "latest"
7+
},
8+
env: {
9+
"es6": true
10+
},
11+
extends: "eslint:recommended",
12+
rules: {
13+
"no-undef": 0
14+
}
15+
};

e2e/jsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"target": "es2016",
4+
"target": "ES2020",
5+
"checkJs": true,
6+
"strict": true,
57
"jsx": "preserve"
68
},
79
"exclude": [

e2e/package-lock.json

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 148 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-template-language-service-decorator",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "Framework for decorating a TypeScript language service with support for languages embedded in template strings",
55
"keywords": [
66
"TypeScript",
@@ -30,7 +30,7 @@
3030
"eslint": "^8.13.0",
3131
"glob": "^7.1.3",
3232
"mocha": "^8.3.0",
33-
"typescript": "^4.6.3"
33+
"typescript": "^5.0.0-dev.20221216"
3434
},
3535
"scripts": {
3636
"prepublish": "npm run compile",

src/script-source-helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
import { Node, LineAndCharacter } from 'typescript/lib/tsserverlibrary';
4+
import type * as ts from 'typescript/lib/tsserverlibrary';
5+
import { LineAndCharacter, Node } from 'typescript/lib/tsserverlibrary';
56

67
export default interface ScriptSourceHelper {
78
getAllNodes(

0 commit comments

Comments
 (0)