Skip to content

Remove unsupported features - #364

Merged
CGNonofr merged 3 commits into
mainfrom
remove-unsupported-features
May 30, 2022
Merged

Remove unsupported features#364
CGNonofr merged 3 commits into
mainfrom
remove-unsupported-features

Conversation

@CGNonofr

Copy link
Copy Markdown
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

@kaisalmen kaisalmen left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@kaisalmen kaisalmen left a comment

Copy link
Copy Markdown
Collaborator

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.

2 participants