We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce4200f commit 450da98Copy full SHA for 450da98
1 file changed
extensions/ql-vscode/src/extension.ts
@@ -16,7 +16,6 @@ import {
16
import { LanguageClient } from 'vscode-languageclient';
17
import * as os from 'os';
18
import * as path from 'path';
19
-import process from 'process';
20
import { testExplorerExtensionId, TestHub } from 'vscode-test-adapter-api';
21
22
import { AstViewer } from './astViewer';
@@ -502,7 +501,7 @@ async function activateWithInstalledDistribution(
502
501
let resolved;
503
try {
504
let queryPath: string = selectedQuery.path;
505
- if (platform.process === 'win32') {
+ if (os.type() === 'Windows_NT') {
506
// replaces leading '/' in the query path if followed by a windows drive letter
507
queryPath = queryPath.replace(/^\/([a-zA-Z]:)/, '$1');
508
}
0 commit comments