Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Commit

Permalink
Fixed broken setting in the server code
Browse files Browse the repository at this point in the history
  • Loading branch information
kofno committed Jul 30, 2016
1 parent f294ff1 commit e13cf36
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Ryan L. Bell",
"publisher": "goldenpointllc",
"license": "MIT",
"version": "0.0.1",
"version": "0.0.2",
"icon": "images/icon.png",
"repository": {
"type": "git",
Expand Down
7 changes: 5 additions & 2 deletions client/src/extension.ts
Expand Up @@ -19,14 +19,17 @@ export function activate(context: ExtensionContext) {
debug: { module: serverModule, transport: TransportKind.ipc, options: debugOptions }
}

// Try native server
// serverOptions = { command: "crystal", args: ["run", "/Users/ryan/Projects/scry/src/scry.cr"] };

// Options to control the language client
let clientOptions: LanguageClientOptions = {
// Register the server for plain text documents
// Register the server for Crystal source files
documentSelector: ['crystal'],
synchronize: {
// Synchronize the setting section to the server
configurationSection: 'crystal-ide',
// Notify the server about file changes to '.clientrc files contain in the workspace
// Notify the server about file changes to crystal files
fileEvents: workspace.createFileSystemWatcher('**/*.cr')
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
@@ -1,7 +1,7 @@
{
"name": "vscode-crystal-server",
"description": "Language server implementation for Crystal",
"version": "0.0.1",
"version": "0.0.2",
"author": "Ryan L. Bell",
"publisher": "goldenpointllc",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion server/src/server.ts
Expand Up @@ -62,7 +62,7 @@ let maxNumberOfProblems: number;
// as well.
connection.onDidChangeConfiguration((change) => {
let settings = <Settings>change.settings;
maxNumberOfProblems = settings.languageCrystalServer.maxNumberOfProblems || 100;
maxNumberOfProblems = settings["crystal-ide"].maxNumberOfProblems || 100;
// Revalidate any open text documents
documents.all().forEach(validateFile);
});
Expand Down

0 comments on commit e13cf36

Please sign in to comment.