Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async loading of models #1647

Closed
giladv opened this issue Feb 9, 2018 · 1 comment
Closed

async loading of models #1647

giladv opened this issue Feb 9, 2018 · 1 comment
Labels
feature-request Request for new features or functionality typescript typescript-multifile
Milestone

Comments

@giladv
Copy link

giladv commented Feb 9, 2018

https://stackoverflow.com/questions/48690192/async-loading-of-models-in-monaco-editor
i published this question on stackoverflow, but i might have narrowed down my question even more so i thought i'd try also here.

in the standalone editor, JS/TS mode:
i'm trying to make the default definition provider (goto declaration etc) load asynchronously
the models as they are required by using the textModelService.createModelReference override.
it works but only for same file declaration or external declaration which i preloaded and made into models.

is there a way to progressively load models as they are required by the intellisense/definition provider?

monaco.editor.create(this.refs.container, mergedOptions, {
	textModelService: {
		createModelReference: async (resource) => {
                         // only get called on same file definitions or of preloaded models
		},
		registerTextModelContentProvider: (scheme, provider) => {
			// never gets called
		}
	}
}

thanks!

@alexdima alexdima transferred this issue from microsoft/vscode Oct 25, 2019
@alexdima alexdima added the feature-request Request for new features or functionality label Dec 12, 2019
@alexdima alexdima added this to the Backlog milestone Dec 12, 2019
@hediet
Copy link
Member

hediet commented Feb 24, 2023

Duplicate of #291

@hediet hediet marked this as a duplicate of #291 Feb 24, 2023
@hediet hediet closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality typescript typescript-multifile
Projects
None yet
Development

No branches or pull requests

4 participants