Skip to content

Commit

Permalink
Added file watch for changed json files for redhat-developer/yaml-lan…
Browse files Browse the repository at this point in the history
  • Loading branch information
JPinkney committed Jan 15, 2018
1 parent ddff447 commit ebe9602
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace SchemaAssociationNotification {
export function activate(context: ExtensionContext) {

// The server is implemented in node
let serverModule = context.extensionPath + '/node_modules/yaml-language-server/out/server/src/server.js';
let serverModule = context.extensionPath + '/work/yaml-language-server/out/server/src/server.js';

// The debug options for the server
let debugOptions = { execArgv: ["--nolazy", "--debug=6009"] };
Expand All @@ -42,7 +42,10 @@ export function activate(context: ExtensionContext) {
// Synchronize the setting section 'languageServerExample' to the server
configurationSection: ['yaml', 'http.proxy', 'http.proxyStrictSSL'],
// Notify the server about file changes to '.clientrc files contain in the workspace
fileEvents: workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml')
fileEvents: [
workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml'),
workspace.createFileSystemWatcher('**/*.json')
]
}
}

Expand Down

0 comments on commit ebe9602

Please sign in to comment.