Comments (26)
I'm controlling this API but I know no straightforward way of removing _
layer.
But I'm certainly sure we are not the only API relying on this pattern.
So for all of these API we need to develop a tool to "clean" the definition file
from monaco-editor.
This might be helpful specifically for TypeScript.
from monaco-editor.
@jrieken @joaomoreno Do you know how/if this is feasible to add to the API ?
from monaco-editor.
That's not possible unless you tackle the provider of the suggestions, say TypeScript language service etc
from monaco-editor.
It was possible in the preview versions
from monaco-editor.
up?
from monaco-editor.
@deltakosh It is still not possible unless you use your own provider. Do you need help to implement/add your own provider?
from monaco-editor.
Any help would be greatly appreciated:) I just need the regular provider without _ properties and functions
from monaco-editor.
I just need the regular provider without _ properties and functions
Do I assume correctly that you have added a some_lib.d.ts
file that defines such symbols? Iff so why is it like that?
from monaco-editor.
We added a custom d.ts where _ define private properties and functions
from monaco-editor.
where _ define private properties and functions
So, why adding them and then filtering them again?
from monaco-editor.
Do you really suggest that I manually remove all _properties from my d.ts?
Here is the file: https://github.com/BabylonJS/Babylon.js/blob/master/dist/babylon.2.4.d.ts
from monaco-editor.
No, my question is why does the d.ts
contains symbols with _
if those aren't desired. Do you control that API? Is it just a file you need to process? Is the API two fold and public layer and a private aka _
layer?
You are failing to motivate why we should enable to filter suggestions globally in the editor while it seems to be you that's controlling those suggestions anyways?
from monaco-editor.
Note: Some _
must be flagged as public as there is no internal in TS
from monaco-editor.
Any thoughts?
from monaco-editor.
I guess I failed to explain my issue. Se please let me try again:
- we are generating our Babylon.d.ts from our typescript source files
- private properties are by convention preceded by a _
- unfortunately as there is no internal keyword in typescript, we have to flag some _ properties as public
Hopefully this is clearer now:)
from monaco-editor.
up?
from monaco-editor.
up?
from monaco-editor.
Do you have news on this?
from monaco-editor.
I'm also interested in this feature! Any news on that?
from monaco-editor.
Right ! Do you have any news about that ?
from monaco-editor.
I have the same issue, any ETA ?
from monaco-editor.
Note: Some _ must be flagged as public as there is no internal in TS
TypeScript compiler supports stripInternal option. It should work in your case.
http://www.typescriptlang.org/docs/handbook/compiler-options.html
from monaco-editor.
The problem is that babylon.js library is pretty big now and adding /** @internal */ JSDoc annotation to all _ properties and methods is not an option
from monaco-editor.
Apparently the 0.18 is now displaying properties flagged as private. Is that expected?
from monaco-editor.
In my case I just want to remove the undefined
option from the list, without disabling variables. Don't want to implement a completion provider just to filter out one item from the list.
from monaco-editor.
Related Issues (20)
- [Bug] Vite5+electron+monaco, load ts worker exception: Editor.vue:34 Uncaught TypeError: require2 is not a function HOT 1
- Add Touch Selection Support to Monaco Editor HOT 1
- [Bug] Create two editors on the same page, set different themes, and the themes are overwritten
- NVDA screen reader is announcing unnecessary information as "press ALT + F1 key to expand accessibility option" but nothing is happening when we hit these keys:A11y_MonacoEditor_Screenreader
- [Bug] Cannot find JS module imported from TS file (2307)
- [Feature Request] ESM build that can be loaded from CDNs HOT 1
- [Bug] - Viewport scrolling doesn't keep in perfect sync when Monaco editor has a small fixed height
- [Bug] Position sticky effect does not get honored for scrollbar backgrounds
- [mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`
- [Bug] css error
- [Bug] `Error`: cpp: an 'include' attribute must be a string at: tokenizer.root
- [Bug] Getting not iterable error, when key press HOT 1
- [Bug] `CompletionItem.range` has a default but is marked as required in the typings
- [Bug] ThirdPartyNotices.txt licensing error for Web Background Synchronization
- [Bug] Adding backtick to close open string adds two backticks instead of one
- [Bug] set 'diffEditor.insertedTextBackground': '#e1ffdd' and diff text Foreground missed
- [Bug] use side by side mode,delete texts are not high light
- [Bug] Cursor becomes misaligned when using custom font HOT 1
- [Bug] 0.51.0-rc2 only: Could not create web worker HOT 1
- [Bug] Overlapping ranges are not allowed!
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.