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

Remove unsupported features #364

Merged
merged 3 commits into from
May 30, 2022
Merged

Remove unsupported features #364

merged 3 commits into from
May 30, 2022

Conversation

CGNonofr
Copy link
Collaborator

Some features are not supported at all:

  • WorkspaceSymbolFeature
  • TypeHierarchyFeature
  • CallHierarchyFeature
  • DidCreateFilesFeature, DidDeleteFilesFeature, DidRenameFilesFeature, WillCreateFilesFeature, WillDeleteFilesFeature, WillRenameFilesFeature
  • InlineValueFeature (for the moment)
  • NotebookDocumentSyncFeature
  • FileSystemWatcherFeature

Some require some code and are not builtin:

  • WillSaveFeature, WillSaveWaitUntilFeature, DidSaveTextDocumentFeature
  • ConfigurationFeature, SyncConfigurationFeature
  • ProgressFeature

Copy link
Collaborator

@kaisalmen kaisalmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how the "optional" feature should work.

this.registerFeature(new DiagnosticFeature(this));
}

public registerTextDocumentSaveFeatures() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who is responsible for calling three methods (registerTextDocumentSaveFeatures, registerConfigurationFeatures, registerProgressFeatures)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user who is using the MonacoLanguageClient, aka,

const languageClient = new MonacoLanguageClient(...)
languageClient.registerTextDocumentSaveFeatures()

Since these feature are builtin in vscode but NOT builtin in monaco (they require some additional code), I don't thing they belong in the registerBuiltinFeatures method

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thank you.

Copy link
Collaborator

@kaisalmen kaisalmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CGNonofr CGNonofr merged commit 88b63cc into main May 30, 2022
@CGNonofr CGNonofr deleted the remove-unsupported-features branch May 30, 2022 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants