Comments (3)
This Is seems to InlineCompletion's inside strategy rather than a bug,When the current line is empty and your insertText is start with more than a tab size blank string(eg: text
), The cursor will close to your completion first rather then accept it, you should change your insertText at first tab to handle this situation.
from monaco-editor.
@qirong77 Yes, that's my first assumption. However, in the example I provided, if you change the initial code to be select\n
rather than select\n *
, then you will see tab can accept something with tab size blank string.
e.g. Is it because monaco detect size to be 4 then?
If that's the case, let me change the logic then
from monaco-editor.
@BeishaoCao-db Wow, You are right. May be because the initial code changes the editor's tab size in some case. When you set your insertText to a larger blank string like buhao
,you will find it don't work again.
e.g.
from monaco-editor.
Related Issues (20)
- [Bug] createScopedLocalize is undefined HOT 2
- [Bug] Crash / Slowness when JSON Schema is applied
- [Bug] Can't automatic init webworker
- [Bug] Sticky scroll toggle does not work
- [Bug] Trying to fetch loader script get 403/421 cloudflare cdn link is probably broken HOT 8
- [Bug] Inline Completions doesn't respect word wrapping when rendering (ghost text) parts of an inline suggestion as additional lines (using view line)
- [Bug] toolbar background of inline completion is broken
- [Bug] simpleWorker.nls.js fails to load if vs path does not end in 'vs' HOT 1
- [Bug] Safari: non-https site reports `undefined is not an object (evaluating 'navigator.clipboard.write')`
- [Feature Request] Can we have a predicate to decide if a completion popup should be displayed?
- [Bug] editor.EditorZoom.setZoomLevel doesn't set the scale for lightBulb icon
- [Bug] loadForeignModule error after I use editor with language json
- [Bug] tip position calculate error
- [Bug] when the option readOnly is true, the marker function is not running HOT 1
- [Question] findWithArgs searchString unable to use
- `csp.contribution.ts` is missing the file extension HOT 1
- Editor text is centered instead of left HOT 1
- [Bug] Syntax highlighting issue when typing quote character
- [Bug] Cannot redeclare block-scoped variable 'Map'.
- [Bug] Minimap sections visible only after text edit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor.