Comments (6)
re: 1: that's funny. I went through and replaced all of my "/" characters with "path.separator" in an effort to be windows compatible. Clearly that was a mistake in this instance.
re: 2: is there any chance the code is public? I could take a look more easily if so.
I'll address (1) tonight.
Thanks for reporting this.
from tsunami.
actually 2) is very simple reproducable:
create following structure:
- src
- test1.ts
- test2.ts
tsconfig.json
tsconfig.json:
{
"compilerOptions": {
"target": "es5",
"lib": [
"es2015",
"dom"
],
"module": "es2015",
"moduleResolution": "node",
"jsx": "react",
"sourceMap": true,
"experimentalDecorators": true,
"removeComments": false,
"noEmitOnError": true,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"strictNullChecks": true,
"typeRoots": [
"types",
"node_modules/@types"
],
"types": [
],
"baseUrl": ".",
"paths": {
"*": [
"types/*"
]
}
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"public",
"compiled"
]
}
test1.ts
export function test1(a: string): boolean {
return false;
}
test2.ts:
test1<complete here>
Result:
import { test1 } from "c:/Users/asvet/work/test/src/test1";
from tsunami.
cool, thank you. I'll fix that too. I know what's wrong.
from tsunami.
Thanks. The completion popup actually displays correct relative name if it helps.
Also thanks for your plugin, your parser is pretty good from first view - works correctly and very fast for pretty large project.
from tsunami.
Hey -- I've gone ahead and released tsunami-code 0.5.2. If you update your extension (and maybe restart vscode) it should work. I tested it on a windows box on a small project.
Thanks for reporting this and please feel free to report any other bugs you encounter -- there are a few issues laying around on this github from people I know in real life that I haven't gotten around to but in general I try to fix bugs within about 24 hours.
from tsunami.
0.5.2 works, thanks!
from tsunami.
Related Issues (18)
- Please add auto-import! :) HOT 1
- Relative paths in quick pick have extra ../ sometimes
- `Move Symbol` support for code
- Support configurable namespace alias imports
- Remove trailing /index from imports in moduleResolution: node
- Add "import symbol at point" command
- Support importing from one-level nested files
- Import formatter is wrong if there is a file named the same as a folder
- Please add unused import deletion! :) HOT 1
- Completion popup is annyoing HOT 3
- Doesn't work if you open more than one repository in a single vscode window
- Support specifying the location of the project root for a given workspace
- Import preferentially from index files rather
- vscode word completion adds the suffix
- ER: Do not suggest imports when typing in comments HOT 1
- Doesn't import typings for npm modules without a typings key
- Importing a symbol in a file without imports mangles first character HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsunami.