Skip to content

Commit 43b8401

Browse files
committed
remove old generate-strings
1 parent fe1ba61 commit 43b8401

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

gulpfile.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ gulp.task('compile:build-scripts', () =>
135135
gulp.task('compile:dynamic', async () => {
136136
const [contributions, strings] = await Promise.all([
137137
runBuildScript('generate-contributions'),
138-
runBuildScript('generate-strings'),
139138
runBuildScript('documentReadme'),
140139
]);
141140

@@ -158,14 +157,25 @@ gulp.task('compile:dynamic', async () => {
158157

159158
gulp.task('compile:static', () =>
160159
merge(
161-
gulp.src(['LICENSE', 'resources/**/*', 'README.md', 'src/**/*.sh', '.vscodeignore'], { base: '.' }),
160+
gulp.src(
161+
[
162+
'LICENSE',
163+
'resources/**/*',
164+
'README.md',
165+
'package.nls.json',
166+
'src/**/*.sh',
167+
'.vscodeignore',
168+
],
169+
{
170+
base: '.',
171+
},
172+
),
162173
gulp
163174
.src(['node_modules/source-map/lib/*.wasm', 'node_modules/@c4312/chromehash/pkg/*.wasm'])
164175
.pipe(rename({ dirname: 'src' })),
165176
).pipe(gulp.dest(buildDir)),
166177
);
167178

168-
169179
const resolveDefaultExts = ['.tsx', '.ts', '.jsx', '.js', '.css', '.json'];
170180

171181
async function compileTs({

src/build/generate-contributions.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (C) Microsoft Corporation. All rights reserved.
33
*--------------------------------------------------------*/
44
import { JSONSchema6 } from 'json-schema';
5+
import type strings from '../../package.nls.json';
56
import {
67
allCommands,
78
allDebugTypes,
@@ -12,7 +13,7 @@ import {
1213
CustomViews,
1314
DebugType,
1415
IConfigurationTypes,
15-
preferredDebugTypes
16+
preferredDebugTypes,
1617
} from '../common/contributionUtils';
1718
import { knownToolToken } from '../common/knownTools';
1819
import { mapValues, sortKeys, walkObject } from '../common/objUtils';
@@ -42,7 +43,7 @@ import {
4243
nodeLaunchConfigDefaults,
4344
OutputSource,
4445
ResolvingConfiguration,
45-
terminalBaseDefaults
46+
terminalBaseDefaults,
4647
} from '../configuration';
4748

4849
const appInsightsKey = '0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255';
@@ -103,8 +104,8 @@ const forNodeDebugType = (contextKey: string, andExpr?: string) =>
103104
*/
104105
type MappedReferenceString = { __opaque: true } & string;
105106

106-
// eslint-disable-next-line
107-
const refString = (str: string): MappedReferenceString => `%${str}%` as any;
107+
const refString = (str: keyof typeof strings & string): MappedReferenceString =>
108+
`%${str}%` as unknown as MappedReferenceString;
108109

109110
/**
110111
* Type definition for a debugger section. VSCode doesn't publish these types,

src/build/generate-strings.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)