Skip to content

Commit ab5b94d

Browse files
committed
1 parent 8508bb8 commit ab5b94d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/vs/base/common/objects.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export function deepClone<T>(obj: T): T {
1414
return obj as any;
1515
}
1616
const result: any = Array.isArray(obj) ? [] : {};
17-
Object.keys(obj as any).forEach((key: string) => {
18-
if (obj[key] && typeof obj[key] === 'object') {
19-
result[key] = deepClone(obj[key]);
17+
Object.keys(<any>obj).forEach((key: string) => {
18+
if ((<any>obj)[key] && typeof (<any>obj)[key] === 'object') {
19+
result[key] = deepClone((<any>obj)[key]);
2020
} else {
21-
result[key] = obj[key];
21+
result[key] = (<any>obj)[key];
2222
}
2323
});
2424
return result;

src/vs/editor/contrib/snippet/snippetVariables.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { IClipboardService } from 'vs/platform/clipboard/common/clipboardService
1414
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
1515
import { isSingleFolderWorkspaceIdentifier, toWorkspaceIdentifier, WORKSPACE_EXTENSION } from 'vs/platform/workspaces/common/workspaces';
1616

17-
export const KnownSnippetVariableNames = Object.freeze({
17+
export const KnownSnippetVariableNames: { [key: string]: true } = Object.freeze({
1818
'CURRENT_YEAR': true,
1919
'CURRENT_YEAR_SHORT': true,
2020
'CURRENT_MONTH': true,
@@ -275,4 +275,4 @@ export class WorkspaceBasedVariableResolver implements VariableResolver {
275275
}
276276
return filename;
277277
}
278-
}
278+
}

0 commit comments

Comments
 (0)