My editor setup includes the following:
editor.create(this._element, {
language: "javascript",
minimap: { enabled: false },
automaticLayout: true,
readOnly: this.props.readOnly,
});
In order to define some specific typings, I can use the following syntax:
languages.typescript.javascriptDefaults.addExtraLib(...);
However, my goal is to add the typing library only to a single editor instance (the one mentioned above). I do not want it to be applied globally or as a default setting for all editors.
Is there a way to achieve this customization? If so, how?