Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
feat(typescript): upgrade to typescript 2.8.3 (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskern authored and felixfbecker committed May 8, 2018
1 parent 35b0140 commit 15579a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"rxjs": "^5.5.0",
"semaphore-async-await": "^1.5.1",
"string-similarity": "^1.1.0",
"typescript": "2.7.2",
"typescript": "2.8.3",
"vscode-jsonrpc": "^3.3.1",
"vscode-languageserver": "^3.1.0",
"vscode-languageserver-types": "^3.0.3"
Expand Down
3 changes: 2 additions & 1 deletion src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function convertDiagnosticCategory(category: ts.DiagnosticCategory): DiagnosticS
return DiagnosticSeverity.Warning
case ts.DiagnosticCategory.Message:
return DiagnosticSeverity.Information
// unmapped: DiagnosticSeverity.Hint
case ts.DiagnosticCategory.Suggestion:
return DiagnosticSeverity.Hint
}
}
12 changes: 6 additions & 6 deletions src/test/typescript-service-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2297,11 +2297,11 @@ export function describeTypeScriptService(
uri: 'git://github.com/Microsoft/TypeScript?v' + ts.version + '#lib/lib.dom.d.ts',
range: {
start: {
line: 8446,
line: 9378,
character: 10,
},
end: {
line: 8446,
line: 9378,
character: 14,
},
},
Expand All @@ -2310,11 +2310,11 @@ export function describeTypeScriptService(
uri: 'git://github.com/Microsoft/TypeScript?v' + ts.version + '#lib/lib.dom.d.ts',
range: {
start: {
line: 8498,
line: 9429,
character: 12,
},
end: {
line: 8498,
line: 9429,
character: 16,
},
},
Expand Down Expand Up @@ -3309,8 +3309,8 @@ export function describeTypeScriptService(
fileName: toUnixPath(uri2path(rootUri + 'a.ts')), // path only used by TS service
textChanges: [
{
span: { start: 49, length: 13 },
newText: '\t\tthis.missingThis',
span: { start: 51, length: 11 },
newText: 'this.missingThis',
},
],
},
Expand Down

0 comments on commit 15579a1

Please sign in to comment.