Skip to content

Commit

Permalink
Actually this is the right pattern, fix #131
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Apr 27, 2017
1 parent a989df4 commit 73a5ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/modes/javascriptMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function getJavascriptMode(documentRegions: LanguageModelCache<HTMLDocume
const configFilename = ts.findConfigFile(workspacePath, ts.sys.fileExists, 'tsconfig.json') ||
ts.findConfigFile(workspacePath, ts.sys.fileExists, 'jsconfig.json');
const configJson = configFilename && ts.readConfigFile(configFilename, ts.sys.readFile).config || {
exclude: ['**/node_modules']
exclude: ['node_modules', '**/node_modules/*']
};
const parsedConfig = ts.parseJsonConfigFileContent(configJson,
ts.sys,
Expand Down

0 comments on commit 73a5ec9

Please sign in to comment.