Fix more type assertions (#230156)

* Fix more type assertions

For #211878

* Fix type error
This commit is contained in:
Matt Bierner
2024-09-30 14:17:06 -07:00
committed by GitHub
parent 27d54aa27a
commit 51fa4d0172
25 changed files with 114 additions and 98 deletions
+5 -3
View File
@@ -91,9 +91,11 @@ class NpmScript extends TreeItem {
command: 'vscode.open',
arguments: [
this.taskLocation?.uri,
this.taskLocation ? <TextDocumentShowOptions>{
selection: new Range(this.taskLocation.range.start, this.taskLocation.range.start)
} : undefined
this.taskLocation ?
{
selection: new Range(this.taskLocation.range.start, this.taskLocation.range.start)
} satisfies TextDocumentShowOptions
: undefined
]
},
'run': {