Microsoft/monaco-editor

Javascript/Typescript does not replace word (with fix)

Open

#1,979 建立於 2020年5月24日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (1,283 fork)batch import
feature-requesthelp wantedtypescript

倉庫指標

Star
 (14,836 star)
PR 合併指標
 (平均合併 6小時 26分鐘) (30 天內合併 15 個 PR)

描述

monaco-editor version: 0.20.0

ISSUE: If completing cons|ole.log() with caret at pilene the completion becomes consoleole.log() (should just be console.log())

FIX: In https://github.com/microsoft/monaco-typescript/blob/master/src/languageFeatures.ts#L276 the completion goes getWordUntilPosition - it should be getWordAtPosition

Thanks!

貢獻者指南