remove settings.ts file

This commit is contained in:
Simon Knott 2024-11-04 16:48:12 +01:00
parent 1569172d9e
commit c424ad6758
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
4 changed files with 4 additions and 22 deletions

View file

@ -1,18 +0,0 @@
/**
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const testServerBaseURL = new URL(window.location.href);
testServerBaseURL.port = testServerBaseURL.searchParams.get('testServerPort') ?? testServerBaseURL.port;

View file

@ -4,7 +4,6 @@
@trace/**
@web/**
../entries.ts
../settings.ts
../geometry.ts
../../../playwright/src/isomorphic/**
../third_party/devtools.ts

View file

@ -24,7 +24,7 @@ import type { ContextEntry } from '../types/entries';
import type { SourceLocation } from './modelUtil';
import { MultiTraceModel } from './modelUtil';
import { Workbench } from './workbench';
import { testServerBaseURL } from '../settings';
import { testServerBaseURL } from './uiModeView';
export const TraceView: React.FC<{
item: { treeItem?: TreeItem, testFile?: SourceLocation, testCase?: reporterTypes.TestCase },

View file

@ -37,7 +37,6 @@ import { FiltersView } from './uiModeFiltersView';
import { TestListView } from './uiModeTestListView';
import { TraceView } from './uiModeTraceView';
import { SettingsView } from './settingsView';
import { testServerBaseURL } from '../settings';
let xtermSize = { cols: 80, rows: 24 };
const xtermDataSource: XtermDataSource = {
@ -47,7 +46,9 @@ const xtermDataSource: XtermDataSource = {
resize: () => {},
};
const searchParams = new URLSearchParams(window.location.search);
export const testServerBaseURL = new URL(window.location.href);
const searchParams = testServerBaseURL.searchParams;
testServerBaseURL.port = searchParams.get('testServerPort') ?? testServerBaseURL.port;
const wsURL = new URL(`/${searchParams.get('ws')}`, testServerBaseURL);
wsURL.protocol = (window.location.protocol === 'https:' ? 'wss:' : 'ws:');
const queryParams = {