Microsoft/monaco-editor

Javascript/Typescript does not replace word (with fix)

Open

#1.979 aberto em 24 de mai. de 2020

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (1.283 forks)batch import
feature-requesthelp wantedtypescript

Métricas do repositório

Stars
 (14.836 stars)
Métricas de merge de PR
 (Mesclagem média 6h 26m) (15 fundiu PRs em 30d)

Description

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!

Guia do colaborador