Explorar el Código

Use wordInfo for word boundaries instead of current match

Sebastien Lebreton hace 5 años
padre
commit
f2ff31f411
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Playground/js/monacoCreator.js

+ 2 - 2
Playground/js/monacoCreator.js

@@ -135,8 +135,8 @@ class MonacoCreator {
                     markers.push({
                         startLineNumber: match.range.startLineNumber,
                         endLineNumber: match.range.endLineNumber,
-                        startColumn: match.range.startColumn,
-                        endColumn: match.range.endColumn,
+                        startColumn: wordInfo.startColumn,
+                        endColumn: wordInfo.endColumn,
                         message: deprecatedInfo.text,
                         severity: monaco.MarkerSeverity.Warning,
                         source: source,