Skip to content

Commit 5f923e3

Browse files
committed
validate TextEdit
1 parent 8f41686 commit 5f923e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
231231
if (textEdit && textEdit.newText) {
232232
let newText = insertText || textEdit.newText
233233
textEdit.newText = newText
234+
if (!TextEdit.is(textEdit)) continue
234235
let { start, end } = textEdit.range
235236
if (line[start.character] && line[end.character - 1] && /^".*"$/.test(label)) {
236237
item.label = item.label.slice(1, -1)

0 commit comments

Comments
 (0)