-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Start moving the code for better sharing. (#2561)
- Loading branch information
Showing
132 changed files
with
10,240 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,3 @@ packages/*/out/** | |
.yarn | ||
packages/client/settingsViewer/ | ||
samples/php/**/vendor | ||
tsconfig*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
query CurrentUserForLayout { | ||
currentUser { | ||
login | ||
avatar_url | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// cSpell Settings | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json", | ||
// Version of the setting file. Always 0.1 or 0.2 | ||
"version": "0.2", | ||
// language - current active spelling language | ||
"language": "en", | ||
// words - list of words to be always considered correct | ||
"words": ["languageserver", "xregexp", "ramda", "gimuy", "gensequence"], | ||
"globRoot": "../../..", | ||
"ignorePaths": ["samples", "package-lock.json", ".eslintrc.js"], | ||
// flagWords - list of words to be always considered incorrect | ||
// This is useful for offensive words and common spelling errors. | ||
// For example "hte" should be "the" | ||
"flagWords": ["hte"], | ||
"dictionaryDefinitions": [ | ||
{ | ||
"name": "cpp2", | ||
"path": "../dictionaries/cpp.txt" | ||
} | ||
], | ||
"languageSettings": [ | ||
{ | ||
"languageId": "c", | ||
"dictionaries": ["cpp2"] | ||
}, | ||
{ | ||
"languageId": "cpp", | ||
"dictionaries": ["cpp2"] | ||
} | ||
], | ||
"overrides": [ | ||
{ | ||
"filename": "**/documentSettings.test.ts", | ||
"language": "en-gb" | ||
} | ||
], | ||
"import": ["./cspell-ext.json"] | ||
} |
31 changes: 31 additions & 0 deletions
31
fixtures/_server/sampleSourceFiles/cspell-exclude-tests.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json", | ||
"version": "0.2", | ||
"language": "en", | ||
"globRoot": "../../..", | ||
"words": ["languageserver", "xregexp", "ramda", "gimuy", "gensequence"], | ||
"ignorePaths": ["samples", "package-lock.json", ".eslintrc.js"], | ||
"flagWords": ["hte"], | ||
"dictionaryDefinitions": [ | ||
{ | ||
"name": "cpp2", | ||
"path": "../dictionaries/cpp.txt" | ||
} | ||
], | ||
"languageSettings": [ | ||
{ | ||
"languageId": "c", | ||
"dictionaries": ["cpp2"] | ||
}, | ||
{ | ||
"languageId": "cpp", | ||
"dictionaries": ["cpp2"] | ||
} | ||
], | ||
"overrides": [ | ||
{ | ||
"filename": "**/documentSettings.test.ts", | ||
"language": "en-gb" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"patterns": [{ "name": "test", "pattern": "TEST", "description": "Test Pattern from extension" }], | ||
"words": ["TestWord"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"name": "Override Typescript", | ||
"filename": "**/*.ts", | ||
"dictionaryDefinitions": [ | ||
{ | ||
"name": "Test Dictionary", | ||
"path": "./words.txt" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
encrypted | ||
toggle | ||
declare | ||
concepts | ||
NeXt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <stdio.h> | ||
int hcf(int n1, int n2); | ||
int main() | ||
{ | ||
int n1, n2; | ||
printf("Enter two positive integers: "); | ||
scanf("%d %d", &n1, &n2); | ||
|
||
printf("G.C.D of %d and %d is %d.", n1, n2, hcf(n1, n2)); | ||
return 0; | ||
} | ||
|
||
// cspell: disable-next-line | ||
// junkks | ||
|
||
int hcf(int n1, int n2) | ||
{ | ||
if (n2 != 0) | ||
return hcf(n2, n1 % n2); | ||
else | ||
return n1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
roots: ['./src'], | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
// verbose: true, | ||
testRegex: '(/__tests__/.*|\\.(test|spec|perf))\\.[jt]sx?$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
coverageReporters: ['html', 'json', ['lcov', { projectRoot: __dirname }], 'text'], | ||
// "coverageProvider": "v8", | ||
collectCoverageFrom: ['src/**/*.ts', '!**/*.test.helper.ts', '!**/node_modules/**', '!**/vendor/**'], | ||
moduleNameMapper: { | ||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/fileMock.js', | ||
'\\.(css|less)$': '<rootDir>/src/__mocks__/styleMock.js', | ||
}, | ||
maxConcurrency: 1, | ||
}; | ||
|
||
module.exports = config; |
11 changes: 11 additions & 0 deletions
11
modules/__locale-resolver/__snapshots__/index.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`index > index api 1`] = ` | ||
[ | ||
"formatLocale", | ||
"isValidCode", | ||
"lookupLocaleInfo", | ||
"normalizeCode", | ||
"parseLocale", | ||
] | ||
`; |
Oops, something went wrong.