Skip to content

Commit

Permalink
TEMP STUFF - TODO MARKERS ETC
Browse files Browse the repository at this point in the history
  • Loading branch information
elibarzilay committed Jan 11, 2022
1 parent 91e115d commit f144c35
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const cmdLineOptions = require("./scripts/build/options");

const copyright = "CopyrightNotice.txt";
const testRoot = "built/local/testRunner/Harness.js";
//!!! const testRoot = "built/local/run.js";
const cleanTasks = [];

const buildScripts = () => buildProject("scripts");
Expand Down Expand Up @@ -126,6 +127,7 @@ const localPreBuild = parallel(generateLibs, series(buildScripts, generateDiagno
const preBuild = cmdLineOptions.lkg ? lkgPreBuild : localPreBuild;

const buildServices = (() => {
return cb => { console.log("!!!TODO!!! buildServices"); cb(); };
// build typescriptServices.out.js
const buildTypescriptServicesOut = () => buildProject("src/typescriptServices/tsconfig.json", cmdLineOptions);

Expand Down Expand Up @@ -250,6 +252,7 @@ task("watch-min").flags = {
};

const buildLssl = (() => {
return cb => { console.log("!!!TODO!!! buildLssl"); cb(); };
// build tsserverlibrary.out.js
const buildServerLibraryOut = () => buildProject("src/tsserverlibrary/tsconfig.json", cmdLineOptions);

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"convert-source-map": "latest",
"del": "5.1.0",
"diff": "^4.0.2",
"esbuild": "^0.13.8",
"eslint": "7.12.1",
"eslint-formatter-autolinkable-stylish": "1.1.4",
"eslint-plugin-import": "2.22.1",
Expand Down
2 changes: 2 additions & 0 deletions scripts/bisect-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//!!! should this be updated or removed?

/**
* You should have ts-node installed globally before executing this, probably!
* Otherwise you'll need to compile this script before you start bisecting!
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ export let sys: System = (() => {
}
},
getExecutingFilePath() {
return __filename;
return __filename; //!!!
},
getCurrentDirectory,
getDirectories,
Expand Down
2 changes: 1 addition & 1 deletion src/harness/virtualFileSystemWithWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const safeList = {
})
};

function getExecutingFilePathFromLibFile(): string {
function getExecutingFilePathFromLibFile(): string { //!!!
return combinePaths(getDirectoryPath(libFile.path), "tsc.js");
}

Expand Down
8 changes: 4 additions & 4 deletions src/server/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1493,8 +1493,8 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
// Search any globally-specified probe paths, then our peer node_modules
const searchPaths = [
...this.projectService.pluginProbeLocations,
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/ //!!!
combinePaths(this.projectService.getExecutingFilePath(), "../../.."), //!!!
];

if (this.projectService.globalPlugins) {
Expand Down Expand Up @@ -2171,8 +2171,8 @@ export class ConfiguredProject extends Project {
}

// Search our peer node_modules, then any globally-specified probe paths
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
const searchPaths = [combinePaths(this.projectService.getExecutingFilePath(), "../../.."), ...this.projectService.pluginProbeLocations];
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/ //!!!
const searchPaths = [combinePaths(this.projectService.getExecutingFilePath(), "../../.."), ...this.projectService.pluginProbeLocations]; //!!!

if (this.projectService.allowLocalPluginLoads) {
const local = getDirectoryPath(this.canonicalConfigFilePath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function filePath(fullPath: string) {
return path.join("/") + "/";
}

var typescriptServiceFileName = filePath(IO.getExecutingFilePath()) + "typescriptServices.js";
var typescriptServiceFileName = filePath(IO.getExecutingFilePath()) + "typescriptServices.js"; //!!!
var typescriptServiceFile = IO.readFile(typescriptServiceFileName);
if (typeof ActiveXObject === "function") {
eval(typescriptServiceFile);
Expand Down

0 comments on commit f144c35

Please sign in to comment.