MCPcopy Create free account
hub / github.com/facebook/pyrefly / constructor

Method constructor

lsp/src/python-environment.ts:27–36  ·  view source on GitHub ↗
(context: vscode.ExtensionContext)

Source from the content-addressed store, hash-verified

25 private context: vscode.ExtensionContext;
26
27 constructor(context: vscode.ExtensionContext) {
28 this.context = context;
29 this.provider = this.tryResolveProvider().then(provider => {
30 if (!provider) {
31 this.showInstallWarning();
32 }
33 return provider;
34 });
35 this.watchExtensionChanges();
36 }
37
38 private async tryResolveProvider(): Promise<InterpreterProvider | undefined> {
39 // Prefer vscode-python-environments if available

Callers

nothing calls this directly

Calls 3

tryResolveProviderMethod · 0.95
showInstallWarningMethod · 0.95
watchExtensionChangesMethod · 0.95

Tested by

no test coverage detected