Microsoft/monaco-editor

Javascript/Typescript does not replace word (with fix)

Open

#1979 aperta il 24 mag 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (1283 fork)batch import
feature-requesthelp wantedtypescript

Metriche repository

Star
 (14.836 star)
Metriche merge PR
 (Merge medio 6h 26m) (15 PR mergiate in 30 g)

Descrizione

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!

Guida contributor