Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 518039 - [lsp] Exception when trying to enter javadoc parameters
The content assist code expects a RegExp instance when analyzing
excluded styles. As such, the extra LSP provider should wrap its
excluded styles in a RegExp instance accordingly.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
  • Loading branch information
rcjsuen committed Jun 9, 2017
1 parent c9e3d53 commit 958b8fc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -474,7 +474,7 @@ define([
// check lsp implementation for the current content type
var lspServer = languageServerRegistry.getServerByContentType(fileContentType);
if (lspServer) {
providerInfoArray.push({provider: lspServer, id: lspServer._id, lspServer: true, excludedStyles: "(string.*)"});
providerInfoArray.push({provider: lspServer, id: lspServer._id, lspServer: true, excludedStyles: new RegExp("(string.*)")});
}
}

Expand Down

0 comments on commit 958b8fc

Please sign in to comment.