Skip to content

Commit bfe4aa3

Browse files
committed
Pass computeDefaultStrings to query server when compiling queries
1 parent f4624f3 commit bfe4aa3

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

extensions/ql-vscode/src/pure/messages.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ export interface CompilationOptions {
150150
* Whether to disable toString values in the results.
151151
*/
152152
noComputeToString: boolean;
153+
/**
154+
* Whether to ensure that elements that do not have a displayString
155+
* get reported anyway. Useful for universal compilation options.
156+
*/
157+
computeDefaultStrings: boolean;
153158
}
154159

155160
/**

extensions/ql-vscode/src/run-queries.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export class QueryInfo {
138138
localChecking: false,
139139
noComputeGetUrl: false,
140140
noComputeToString: false,
141+
computeDefaultStrings: true
141142
},
142143
extraOptions: {
143144
timeoutSecs: qs.config.timeoutSecs

extensions/ql-vscode/src/vscode-tests/no-workspace/query-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ describe('using the query server', function() {
168168
localChecking: false,
169169
noComputeGetUrl: false,
170170
noComputeToString: false,
171+
computeDefaultStrings: true
171172
},
172173
queryToCheck: qlProgram,
173174
resultPath: COMPILED_QUERY_PATH,

extensions/ql-vscode/src/vscode-tests/no-workspace/run-queries.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('run-queries', () => {
5252
localChecking: false,
5353
noComputeGetUrl: false,
5454
noComputeToString: false,
55+
computeDefaultStrings: true
5556
},
5657
extraOptions: {
5758
timeoutSecs: 5

0 commit comments

Comments
 (0)