Skip to content

Commit d9dbc4d

Browse files
committed
Node.js outputs deprecation warnings using the error console, so silence them on order to be able to detect real errors when creating the process handler (#153)
1 parent 734657f commit d9dbc4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/com/intellij/lang/jsgraphql/languageservice/JSGraphQLNodeLanguageServiceInstance.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ private void createProcessHandler() {
124124
final GeneralCommandLine commandLine = new GeneralCommandLine(nodeInterpreter);
125125

126126
commandLine.withWorkDirectory(jsGraphQLNodeFile.getParent());
127+
128+
// Node.js outputs deprecation warnings using the error console, so silence them
129+
// on order to be able to detect real errors when creating the process handler
130+
commandLine.addParameter("--no-deprecation");
131+
127132
commandLine.addParameter(jsGraphQLNodeFile.getAbsolutePath());
128133

129134
commandLine.addParameter("--port=" + socketPort);

0 commit comments

Comments
 (0)